Documents
Classify a document
Classifies a document, or each page, into your classes.
- Body: the document service's request for this operation. Classify lists its options and result.
- source: a url, or a workspace_file you uploaded. Classify reads the original file, so a parse_result source answers 422. 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/classify
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.