Extract data from a local document synchronously.

To get a quick "hello world" response to this endpoint:

  • See the quickstart, or
  • Use this interactive API explorer:
    1. Paste your API key into the Bearer field in the right pane of this interactive explorer.
    2. For the type path parameter, scroll down, right-click the field, and select Use Example Value.
    3. For the document body parameter, scroll down, right-click the field, and select Use Example Value.
    4. Click Try It! in the right pane. In the right pane, you should see a 200 response that includes a parsed_document object.

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.

  1. (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.
  2. Base64 encode the document bytes, specify them in a body "document" field, and specify application/json for the content type.
Language
Authentication
Bearer
Click Try It! to start a request and see the response here!