The toloka.yandex.com
domain will be disabled starting April 1, 2023. Please use the toloka.dev
domain for API requests.
Gets responses for all the pool's task suites.
GET https://toloka.dev/api/v1/assignmentsAuthorization: OAuth <OAuth token>
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Specified in the link after the question mark; separated by &
.
Parameter | Overview |
---|---|
status | string
|
task_id | string You must specify either task_id ,pool_id , or task_suite_id .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 task_id ,pool_id , or task_suite_id .ID of a task suite. |
pool_id | string You must specify either task_id ,pool_id , or task_suite_id .Pool ID. |
user_id | string Toloker ID. |
sort | string
Note All dates use the ISO 8601 format 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_lte, submit_gt, submit_gte, submit_lt, submit_lte, acceptedt_gt, accepted_gte, accepted_lt, accepted_lte, rejected_gt, rejected_gte, rejected_lt, rejected_lte, skipped_gt, skipped_gte, skipped_lt, skipped_lte, expired_gt, expired_gte, expired_lt, expired_lte. |
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
GET https://toloka.dev/api/v1/assignments?sort=id&limit=10Authorization: OAuth <OAuth token>
Show the remaining tasks sorted by ascending ID
GET https://toloka.dev/api/v1/assignments?sort=id&limit=10&id_gt=<ID of the last task suite from the previous response>Authorization: OAuth <OAuth token>
{"items" : [{task suite #1}, {task suite #2}, ... {task suite #n}], "has_more": true}
Property | Description |
---|---|
items[] | array of objects Contains information about responses. |
has_more | boolean Shows whether the list is complete. Acceptable values:
|