Endpoint
Authentication
This endpoint requires API key authentication via theAuthorization header:
Path Parameters
string
required
The unique identifier of the task to retrieve
Query Parameters
boolean
default:false
Whether to return base64 encoded URLs. If false, the URLs will be returned as presigned URLs.
boolean
default:true
Whether to include chunks in the output response. Set to false for faster responses when you only need task metadata.
Response
string
The unique identifier for the task
enum
The current status of the task:
Starting: Task is queued and waiting to beginProcessing: Task is currently being processedSucceeded: Task completed successfullyFailed: Task failed during processingCancelled: Task was cancelled
string
The date and time when the task was created and queued (ISO 8601 format)
string
The date and time when the task started processing (ISO 8601 format)
string
The date and time when the task was finished (ISO 8601 format)
string
The date and time when the task will expire (ISO 8601 format)
string
A message describing the task’s status or any errors that occurred
string
The presigned URL of the task
object
The complete task configuration including:
object
Output data (only present when
status is Succeeded and include_chunks is true)Status Codes
- 200: Task retrieved successfully
- 404: Task not found or expired
- 500: Internal server error
Examples
Use Cases
This endpoint can be used to:- Poll task status during processing - Check if a task has moved from
Starting→Processing→Succeeded - Retrieve final output - Get processed chunks, segments, and metadata once processing is complete
- Access task metadata - Get file information, page count, timestamps, and configuration
- Monitor task progress - Track when tasks were created, started, and finished
Notes
- Set
include_chunks=falsefor faster responses when you only need status information - The
outputfield is only populated when the task status isSucceeded - Expired tasks will return a 404 error
- Use base64_urls=true if you need to embed resources directly in your application
- For long-running tasks, implement exponential backoff in your polling logic