To run an API call and return extracted, structured data from a downloaded example document:
Get an account at sensible.so.
NOTE In the Sensible app, don’t rename the default doc type (senseml_basics) or delete the 1_extract_your_first_data config, or this example fails.
Run the code sample in a command prompt. The code downloads an example document (1_extract_your_first_data.pdf ) and runs it against an example document type (senseml_basics). The following excerpt of the API response shows the extracted document text in the parsed_document object:
JSON
Copy
Ask AI
{ "parsed_document":{ "your_first_extracted_field":{ "type":"string", "value":"Welcome to your first document" } }}
Visually examine the example document (middle pane), config (left pane), and extracted data (right pane) to better understand the API call you just ran: