Extract fields from an attached document
dokyumi_extract_documentExtract an authorized attached PDF or image using a saved Dokyumi schema. Prefer the host-provided file download_url/file_id. If unavailable, file_inline accepts canonical base64 computed from exact user-uploaded bytes with original file_name and matching supported mime_type, at most 32 KiB. Supply exactly one of file or file_inline; never reconstruct a document from text. This stores the document/result. For subscription workspaces, obtain user agreement to use existing credits before setting use_existing_credits=true (one credit per up-to-five pages). BYOK lifetime workspaces have no monthly extraction cap: first run preflight, obtain agreement to separate OpenRouter charges, and set confirm_provider_charges=true. BYOK supports PDF, JPEG, PNG and WebP within the workspace storage limit, with 30-day retention. Reuse the same request_key for a retry; never automatically start a new extraction after a timeout. Review confidence and validation errors before using fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| file_inline | No | ||
| request_key | Yes | ||
| schema_slug | Yes | ||
| use_existing_credits | No | ||
| confirm_provider_charges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes |