Get the status of a task
GET/v1/status/:task_id
Get the status of a task (parsing, extraction).
Request
Path Parameters
task_id Task Idrequired
Responses
- 200
- 403
- 422
The status of the task.
- application/json
- Schema
- Example (from schema)
Schema
status ResourceStatusrequired
Possible values: [COMPLETED
, FAILED
, BUILDING
, WAITING
]
Status of a task.
result_url Result Url (string)
A URL to access the results (e.g., parsed file, extracted information).
error Error (string)
An error message if the task failed.
{
"result_url": "string",
"error": "string"
}
The user is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...