List extractions
const url = 'https://app.docstosheets.com/api/Extractions?page=1&pageSize=25';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?page=1&pageSize=25' \ --header 'Authorization: Bearer <token>'Returns paginated extraction results for a mailbox.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The mailbox ID to get extractions for.
Page number (1-based). Defaults to 1.
Number of items per page (1-100). Defaults to 25.
Responses
Section titled “ Responses ”Paginated list of extractions.
One page of extraction results.
object
The extractions on this page.
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.
Total number of extractions matching the query.
The current page number (1-based).
The requested page size.
Whether another page exists after this one.
Example
{ "items": [ { "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"}