Get an extraction
const url = 'https://app.docstosheets.com/api/Extractions/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.docstosheets.com/api/Extractions/example \ --header 'Authorization: Bearer <token>'Returns a single extraction by ID.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The extraction ID.
Query Parameters
Section titled “Query Parameters ”The mailbox ID (partition key).
Responses
Section titled “ Responses ”The extraction result.
The structured data extracted from one document.
object
The extraction ID.
The mailbox the document belongs to.
The document this extraction was produced from.
The extracted header values, keyed by the field keys of the mailbox config. Value types follow the field type (string, number, boolean, or null when not found).
object
Rows of each repeating section, keyed by the group ID of the mailbox config. Empty for mailboxes without repeating groups.
object
One row of a repeating section.
object
The row’s extracted values, keyed by the section’s field keys.
object
Validation problems in this row, if any.
A validation problem found in an extracted value.
object
The field the issue applies to.
The repeating section containing the field; null for header fields.
The zero-based row index within the section; null for header fields.
Machine-readable issue code.
Human-readable explanation.
When the extraction completed.
Field-level validation problems, if any.
A validation problem found in an extracted value.
object
The field the issue applies to.
The repeating section containing the field; null for header fields.
The zero-based row index within the section; null for header fields.
Machine-readable issue code.
Human-readable explanation.
Exceptional parsing observations from the extraction model; flag the record for review.
An exceptional parsing observation from the LLM; flags the record for review.
object
The field the note refers to; null when it concerns the whole document.
The observation text.
Example
{ "data": { "invoiceNumber": "INV-1042", "vendor": "Acme Corp", "total": 129.5 }, "sections": { "lineItems": [ { "data": { "description": "Consulting hours", "quantity": 4 }, "validationStatus": "valid", "validationIssues": [] } ] }, "validationStatus": "valid", "validationIssues": [ { "fieldKey": "total", "severity": "warning", "code": "required_missing", "message": "Required field has no value." } ], "notes": [ { "fieldKey": "total", "note": "The total is partially illegible; best-effort value extracted." } ]}object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}