Query Document Parsing Task Status
Use this API to query document parsing task status and results
GET/v1/files/parser/tasks/{task_id}
Authorization
AuthorizationstringheaderRequired
HTTP: Bearer Auth
- Security Scheme Type: http
- HTTP Authorization Scheme: Bearer API_key,Used to verify account information, can be viewed in Pay-as-you-go > API Key Management .
Path Parameters
task_id string Required
Task ID, information returned when submitting the task.
Response Body Structure
statusenum<string>
Current task status:
- Waiting: Task in queue
- Processing: Task is processing
- Success: Task completed
- Failed: Task failed
createdlong
OCR task start time (millisecond timestamp)
md_file_idstring
Markdown result file ID (returned after task completes)
md_file_urlstring
Markdown result file URL (returned after task completes)
json_file_idstring
JSON result file ID (returned after task completes)
json_file_urlstring
JSON result file URL (returned after task completes)
data_infoobject
OCR recognition result information
data_info.num_pagesinteger
Total number of document or image pages
usageobject
Model usage
usage.prompt_tokensinteger
Input tokens count
usage.completion_tokensinteger
Output tokens count
usage.prompt_tokens_detailsobject
Input tokens count details (cached_tokens)
usage.total_tokensinteger
Total tokens count
base_respobject
Status code and details of this request
base_resp.status_codeinteger
Status code (0=normal; 100001=parameter error; 100101=authentication failed; 100501=triggered RPM rate limit; 100999=internal system error)
base_resp.status_msgstring
Status details