Quick Start (5 minutes)
Quick Start (5 minutes)
Quick Start (5 minutes)
Want to see how Extend works with your own documents? This guide will get you up and running in under 5 minutes to test extraction on your files, using the API.
If you don’t have a document handy, use this Sample Invoice. We’ll reference it throughout the steps.
Open the Extend Studio. In the Extractor card, click Create new and choose one of:

Now that we have created our Extractor, we will run a document against it, via the API.
We will copy a pre-generated code snippet to execute your Extractor against a file you provide:
In the builder tab of the Extractor, click View code in the top-right. In the modal, pick your preferred language tab and copy the snippet.
Replace YOUR_API_KEY with your actual key, available in the Developers page.
If you have unsaved changes (there will be a warning), first click Save at the bottom right, so the code snippet reflects your latest config.
If you’re using the JavaScript or Python SDK snippets, install the SDKs first from our SDKs page.
We have provided example code snippets below, which look similar to what you will find on the UI using the “View code” button.

If you are following along with the sample invoice, your extractor’s config should look something like this. When using an extractor (as shown above), the config is already saved in your extractor. If you need to override specific options at runtime, use extractor.overrideConfig:
If you do not have a file URL for your document already, and are not following along with the sample invoice document, you can upload your document into Extend using the upload file endpoint. We will return to you a fileId which you can then use to process your document.
Now we will run our Extractor against our document, using the code snippet from step 2.
If you have a URL for your file, or are following along with our sample invoice document, you should replace YOUR_FILE_URL with that URL, and delete the YOUR_FILE_ID option.
If you uploaded a file into Extend with the upload file endpoint, you should replace YOUR_FILE_ID with the id returned from that endpoint, and delete the YOUR_FILE_URL section.
Also, be sure to replace YOUR_API_KEY_HERE and YOUR_EXTRACTOR_ID with the appropriate values.
Execute the code in your environment. You should see the extracted data in your console! To interpret the response structure, see Extractor output type.
See the below snippets which put everything together (uploading the file and running the Extractor).