- Provide your own URLs for your documents.
- Use URLs provided by Sensible for your documents.
Extract from a URL you provide
Prerequisites
See prerequisites.Extract the data
To try out the extract_from_url endpoint, let’s use an example document hosted in GitHub:- Copy the following code sample and replace
*YOUR_API_KEY*
with your API key:
- In your Postman workspace, click Import, select Raw text, paste the code sample, and follow the prompts to import to code sample.

- Click Send, and you should see a response like:
JSON
1040_2021
) in this call. Sensible looks at all the configs for the document type (tax_forms
), and automatically chooses the one that fits best!
Retrieve extraction
To retrieve the extraction results for the sample document, you have two options:- Use the
/documents
endpoint. See the following steps. - Use a webhook. See Try a webhook.
/documents
endpoint, take the following steps:
- In a previous step on this page, you got back a result that included an extraction ID:
JSON
id
from that response. You’ll use it to download the document extraction.
2. Copy the following code sample and replace *YOUR_EXTRACTION_ID*
and *YOUR_API_KEY*
:
- In your Postman workspace, click Import, select Raw text, paste the code sample, and follow the prompts to import to code sample.

- Click Send. The response includes a
parsed_document
object that looks something like the following:
JSON