Skip to main content
GET
Get a parse job

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

jobId
string<uuid>
required

The jobId returned by POST /parse or POST /parse/batch.

Query Parameters

pages
boolean
default:false

Set to true to add pages, with each page's Markdown, page number and how it was read. includePages=true works too.

Response

The job's status, and its result once it has finished.

A parse job, with its result once it has finished.

jobId
string<uuid>

The job's ID. Use it with GET /parse/{jobId}.

status
enum<string>
  • queued: waiting to start.
  • running: being parsed. progress says how far it has got.
  • completed: finished. The result is in markdown, and json when you asked for extraction.
  • failed: couldn't be parsed. error says why, and you aren't charged.
Available options:
queued,
running,
completed,
failed
fileName
string

The document's file name, or the last part of the link it came from.

sourceUrl
string | null

The link the document was downloaded from, after redirects. null for uploads.

fileId
string<uuid>

The stored document's ID. Send it as fileId to parse the same document again for 24 hours without uploading or downloading it again.

format
string | null

The document's format, such as PDF, Word, Excel or PowerPoint.

totalPages
integer | null

How many pages the document has. For formats without pages, an estimate of one page per 3,000 characters of text.

pagesParsed
integer | null

How many pages were read and charged. null until the job finishes.

creditsUsed
integer

Credits charged for this job, including AI credits for extraction. 0 until the job has completed, and for a failed job.

error
string

Only when status is failed. Why the document couldn't be parsed, such as "This PDF is password protected. Remove the password and try again."

progress
object

Only while the job is queued or running, once it has started reading pages.

markdown
string

Once completed. The whole document as Markdown, pages joined by blank lines.

pages
object[]

Only when you asked for it (includePages, or ?pages=true when polling). Each page on its own.

json
any

Only when you sent a prompt or schema. The extracted data.

warnings
string[]

Once completed. Anything worth knowing about the result, such as "2 of 15 pages couldn't be read and aren't charged." or that page selection was ignored for a non-PDF document. Empty when there's nothing to report.

metadata
object

Once completed. Facts about the parsed document.

durationMs
integer | null

Once completed. How long parsing took, in milliseconds.