Retrieves the current state of a task and, when requested, waits briefly for completion.
Returns task details such as processing status, configuration, output (when
available), file metadata, and timestamps. If wait_for_completion=true
is
provided, the server will hold the request briefly. If the task does not
reach a terminal state during that window, the response will indicate a
retry with appropriate headers.
Typical uses:
Id of the task to retrieve
Whether to return base64 encoded URLs. If false, the URLs will be returned as presigned URLs.
Whether to include chunks in the output response
Whether to wait for the task to complete
Task details. Returned immediately if the task is terminal, or after a brief hold when wait_for_completion=true
and the task completes within the window.
The response is of type object
.