Get responses
Gets responses for all the pool's task suites.
Request
GET https://toloka.yandex.com/api/v1/assignments
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.yandex.com/api/v1/assignments
Authorization: OAuth <OAuth token>
Headers
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 an assigned task suite. If you need to list multiple statuses, separate them with commas:
|
task_id |
string You must specify either The task ID in the suites that were generated automatically using "smart mixing". You will get responses for task suites that contain the specified task. |
task_suite_id |
string You must specify either ID of a task suite. |
pool_id |
string You must specify either Pool ID. |
user_id |
string Toloker ID. |
sort |
string Parameters to sort by:
Note All dates use the ISO 8601 format To learn how to configure sorting, see Sorting the list of objects. |
Standard query parameters |
|
Query example
You can set up the display of the list of responses in parts (for example, 10 responses at a time):
- Show the first 10 responses, starting with the one with the lowest ID.
- Show the remaining responses (10 at a time) in ascending order.
Show the first 10 responses
GET https://toloka.yandex.com/api/v1/assignments?sort=id&limit=10
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.yandex.com/api/v1/assignments?sort=id&limit=10
Authorization: OAuth <OAuth token>
Show the remaining tasks sorted by ascending ID
GET https://toloka.yandex.com/api/v1/assignments?sort=id&limit=10&id_gt=<ID of the last task suite from the previous response>
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.yandex.com/api/v1/assignments?sort=id&limit=10&id_gt=<ID of the last task suite from the previous response>
Authorization: OAuth <OAuth token>
Response
Information about responses in the items
array:
{"items" : [{task suite #1}, {task suite #2}, ... {task suite #n}], "has_more": true}