Get operation details

Attention

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

Gets operation details.

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/operations/<operation_id>
Authorization: OAuth <OAuth token>

Path parameters

ParameterOverview
operation_idOperation ID.

Headers

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

Response

Contains operation details in JSON format (see the example in the Operations section).

{
"id" : "57068577e4b0bf7b07a0256f",
"type" : "TASK_SUITE.BATCH_CREATE",
"status" : "FAIL",
"submitted" : "2016-04-07T16:06:15.902",
"started" : "2016-04-07T16:06:15.902",
"finished" : "2016-04-07T16:06:15.902",
"progress" : 100,
"parameters" : {
"open_pool" : false,
"allow_defaults" : false,
"skip_invalid_items" : false
},
"details" : {
"total_count" : 2,
"valid_count" : 0,
"failed_count" : 2,
"success_count" : 0,
"not_valid_count" : 2
}
}
ParameterOverview
idstring | required

Operation ID.
type

string | required

Operation type:

  • POOL.OPEN — Opening a pool.
  • POOL.CLOSE — Closing a pool.
  • PROJECT.ARCHIVE — Archiving a project.
  • POOL.ARCHIVE — Archiving a pool.
  • SOLUTION.AGGREGATE — Aggregating responses.
  • TASK_SUITE.BATCH_CREATE — Creating multiple task suites.
  • KNOWN_SOLUTIONS.GENERATE — Generating control tasks.
status

string | required

The status of the operation:

  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed successfully.
  • FAIL — Not completed.

    Displayed for all operations except poll creation.
submittedstring | required

The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
startedstring

The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
finishedstring

The UTC date and time the operation finished, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
progressinteger

The percentage of the operation completed.
parametersJSON

Operation parameters (depending on the operation type).
detailsJSON

Details of the operation completion.

The response doesn't provide a detailed error description. If an error has occurred, request the operation log.

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