Skip to main content
POST

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Optional client key for safely retrying the same logical request. A key is scoped to the customer, product, and operation. Reusing it with a different request returns 409.

Required string length: 1 - 255

Body

application/json
documentUrl
string<uri>
required

Absolute HTTP or HTTPS URL retrievable by The Wo.

Minimum string length: 1
Example:

"https://example.com/documents/sample-invoice.pdf"

expectedType
enum<string>

Optional expected type hint. Does not force the detected response type.

Available options:
invoice,
receipt
language
enum<string>

Optional supported source-language hint. It does not localize the canonical response vocabulary.

Available options:
en,
pt,
es

Response

Extraction completed and usage recorded.

id
string
required
status
any
required
documentType
enum<string>
required
Available options:
invoice,
receipt
extracted
object
required
missingFields
enum<string>[]
required
Available options:
document_number,
issued_at,
supplier_name,
supplier_tax_identifier,
buyer_name,
buyer_tax_identifier,
merchant_name,
merchant_tax_identifier,
purchased_at,
subtotal,
tax,
total,
line_items
riskFlags
enum<string>[]
required
Available options:
document_type_mismatch,
low_confidence_critical_field,
inconsistent_totals,
unreadable_section,
incomplete_line_items
confidence
number
required
Required range: 0 <= x <= 1
usage
object
required
createdAt
string<date-time>
required