Cancel Parsing Job
PATCH/v1/parsing/jobs/{job_id}
Authorization
Authorizationstringrequired
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Path Parameters
job_idstringrequired
The ID of the parse job to cancel
Response Body
idstringrequired
The ID of the job
file_idstringrequired
The ID of the file to parse
filenamestring
The name of the file
statusenumrequired
ParsingJobStatus
Possible values
pendingin_progresscancelledcompletedfailederrorobject
The error of the job
resultDocumentParserResult
The result of the job
started_atstring
The started time of the job
finished_atstring
The finished time of the job
created_atstring(date-time)
The creation time of the job
updated_atstring
The updated time of the job
objectstringdefault:
parsing_jobThe type of the object
Request
PATCH/v1/parsing/jobs/{job_id}
from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
response = mxbai.parsing.jobs.cancel(job_id="job_xyz789")
print(response)Response
JSON
{
"id": "job_xyz789",
"file_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"status": "cancelled",
"error": null,
"result": null,
"started_at": "2025-01-15T17:00:30.000Z",
"finished_at": "2025-01-15T17:00:45.000Z",
"created_at": "2025-01-15T17:00:00.000Z",
"updated_at": "2025-01-15T17:00:45.000Z",
"object": "parsing_job"
}Last updated: January 7, 2026