Extract Custom Metadata
Authorizations
Body
The ordered document content sources to extract metadata from. If omitted, attachment-only extraction is used for backward compatibility. Description sources are opt-in.
1- DescriptionExtractionSource
- AttachmentsExtractionSource
Whether to calculate and return page locations (bounding boxes) for the quote supporting each extracted field. Quotes are matched against textual and scanned PDF attachments plus PNG, JPEG, and WebP images without changing extracted values. Unsupported attachment types and quotes that do not occur verbatim after normalization do not produce boxes.
How to coerce a decimal value the LLM returns for any integer-typed field in the schema: truncate drops the fractional part (3.7 → 3), round rounds to the nearest integer (3.5 → 4, 3.4 → 3), roundup always rounds up toward positive infinity (3.2 → 4), error raises an extraction error (default — current behavior). Applies uniformly to all integer fields in the JSON schema.
truncate, round, roundup, error Response
Successful Response
The response is of type Response Extract Custom Metadata Assistant Api V1 Tenants Tenant Metadata Extractcustom Post · object.