Documents
Extract fields
Extracts structured fields from a document with a JSON schema.
- Schema: send it inline as schema, or save it with POST /v1/extraction-schemas and name it with schema_id. Add schema_version to pin one version.
- Body: the document service's request for this operation. Extract lists its options and result.
- source: a url, a parse_result of one of your own jobs, or a workspace_file you uploaded. Upload one with POST /v1/documents/upload-grants.
- Billing: admitted only with reserved free/prepaid credit or explicitly enabled pay-as-you-go. Execution stops at its funded limit. Final credits are charged once after successful completion. A job that fails or is cancelled before completion is not charged.
- Retries: the same Idempotency-Key with the same body returns the same job. With a different body, it answers 409.
post/v1/documents/extract
Request
- Base URLhttps://console.nace.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
wait_secondsinteger
Hold the request open until the job finishes, up to this many seconds. 0 (default) returns at once; a value above 60 waits 60.
Headers
Idempotency-Keystring
Up to 200 characters, unique per account. Retry with the same key and body to get the same job instead of a second one.
Request body
Response
The job finished within wait_seconds, or this is a replay of its Idempotency-Key.
Changes
No recorded changes to this operation across all 1 revision of this API.