Task
Retrieve task
Get a task object.
Response Behavior:
- If the task has status running or failed, the endpoint returns status 200 with the task object.
- If the task has status succeeded and no_redirect parameter is not set or is false, the endpoint redirects with status 303 to the newly created object (URL provided in result_url).
- If the task has status succeeded and no_redirect=true is passed, the endpoint returns the task object with status 200.
get/api/v1/tasks/{taskID}
Path parameters
taskIDinteger required
Task ID.
Query parameters
no_redirectboolean
If true, prevents redirect to the created object and returns the task object instead.
Response
OK - Returns the task object. This response is returned when:
- Task status is running or failed
- Task status is succeeded and no_redirect=true parameter was passed
Example response
{
"id": 1,
"url": "https://example.rossum.app/api/v1/tasks/1",
"type": "documents_download",
"status": "succeeded",
"expires_at": "2021-09-11T09:59:00.000000Z",
"content": {
"file_name": "my-archive.zip"
},
"result_url": "https://example.rossum.app/api/v1/documents/456700"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.