The toloka.yandex.com
domain will be disabled starting April 1, 2023. Please use the toloka.dev
domain for API requests.
Gets the list of files saved in Toloka.
Files are downloaded not in the order in which they were uploaded to the server.
GET https://toloka.dev/api/v1/attachmentsAuthorization: OAuth <OAuth token>
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Query parameters are specified in the link after the question mark and separated by &
.
Parameter | Overview |
---|---|
pool_id | string Pool ID. |
assignment_id | string ID of the task suite assignment. |
name | string File name. |
type | string Attachment type. Currently the key can have only one value — ASSIGNMENT_ATTACHMENT . |
user_id | string ID of the Toloker who uploaded the file(s). |
sort | string
|
Standard query parameters | limit, id_gt, id_gte, id_lt, id_lte, created_gt, created_gte, created_lt, created_lte. |
You can set up the display of the list of files in parts (for example, 10 files at a time):
Show the first 10 files
GET https://toloka.dev/api/v1/attachments?sort=id&limit=10Authorization: OAuth <OAuth token>
Show the remaining tasks sorted by ascending ID
GET https://toloka.dev/api/v1/attachments?sort=id&limit=10&id_gt=<ID of the last file from the previous response>Authorization: OAuth <OAuth token>
{"items" : [{file #1}, {file #2}, ... {file #n}], "has_more": false}
Property | Description |
---|---|
items[] | array of objects Contains information about files. |
has_more | boolean Shows whether the list is complete. Acceptable values:
|