Get the list of pools
Gets a list of created pools (including archived pools).
Request
GET https://toloka.yandex.com/api/v1/pools
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.yandex.com/api/v1/pools
Authorization: OAuth <OAuth token>
Headers
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Query parameters
Specified in the link after the question mark; separated by &
.
Parameter | Overview |
---|---|
status | string Status of the pool:
|
project_id | string ID of the project to which the pool is attached. |
sort | string Parameters to sort by:
To learn how to configure sorting, see Sorting the list of objects. |
Standard query parameters | limit, id_gt, id_gte, id_lt, id_lte, created_gt, created_gte, created_lt, created_ltelast_started_gt, last_started_gte, last_started_lt, last_started_lte |
Parameter | Overview |
---|---|
status | string Status of the pool:
|
project_id | string ID of the project to which the pool is attached. |
sort | string Parameters to sort by:
To learn how to configure sorting, see Sorting the list of objects. |
Standard query parameters | limit, id_gt, id_gte, id_lt, id_lte, created_gt, created_gte, created_lt, created_ltelast_started_gt, last_started_gte, last_started_lt, last_started_lte |
Query example
You can set up the display of the list of pools in parts (for example, 10 pools at a time):
- Show the first 10 pools, starting with the pool with the lowest ID.
- Show the remaining pools (10 at a time) in ascending order.
Response
Contains a list of pools and their properties in the items
array:
{"items": [{parameters_of_pool_1}, {parameters_of_pool_2}, ... {parameters_of_pool_n}], "has_more": false}