Get file metadata

Attention

The toloka.yandex.com domain will be disabled starting July 1, 2023. Please use the toloka.dev domain for API requests.

Gets the properties of a file attached to a task response.

Request

Tip

Try our new API reference: more parameter details, request/response examples, and code samples in various programming languages, including the Toloka-Kit usage samples.

Production version
Sandbox
GET https://toloka.dev/api/v1/attachments/<file_id>
Authorization: OAuth <OAuth token>

Path parameters

ParameterOverview
file_idFile ID.

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.

Response

Information about a file.

{
"id" : "0983459b-e26f-42f3-a5fd-6e3feee913e7",
"attachment_type" : "ASSIGNMENT_ATTACHMENT",
"name" : "ExampleAttachment.txt",
"details" : {
"user_id" : "ae1d5431cfc59e25b4abbbe75666d59b",
"assignment_id" : "5241f238-6640-43e4-80bb-3283893cd221",
"pool_id" : "154"
},
"created" : "2016-05-25T16:14:27.748",
"media_type" : "application/octet-stream"
}
ParameterOverview
idstring

File ID.
attachment_typestring

Attachment type. Currently the key can have only one value — ASSIGNMENT_ATTACHMENT.
namestring

File name.
detailsobject

Infomation about the pool, the task, and the Toloker who uploaded the file.
details.user_idstring

ID of the Toloker who uploaded the file.
details.assignment_idstring

ID of the task suite assignment to a Toloker.
details.pool_idstring

Pool ID.
createdstring

The date when the file was uploaded to Toloka.
media_typestring

MIME type of the data.
Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Bonuses
Messages for Tolokers
Various parameters
Libraries