Extract data from a local document synchronously.
To get a quick "hello world" response to this endpoint, see the quickstart.
For a more detailed, step-by-step tutorial on calling this endpoint, see Try synchronous extraction.
There are two options for posting the document bytes.
- (often preferred) specify the non-encoded document bytes as the entire request body,
and specify the content-type as one of "application/pdf", "image/jpeg", or "image/png", as appropriate.
- Base64 encode the document bytes, specify them in a body "document" field, and specify application/json for the content type.