/ai/extract_structuredExtract structured metadata with Box AI
Extracts structured metadata from one or more files using a metadata template or a custom field definition. Supply items and exactly one of metadata_template or fields to define the extraction structure, and optionally provide taxonomy sources, confidence scores, references, or an AI agent. Use taxonomy_sources only with custom fields definitions.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional structured metadata extraction request containing source files and either a metadata template or custom fields. items is required, and exactly one of metadata_template or fields must be provided.
items is required and must contain 1 to 25 unique file items with id and type set to file. Provide either metadata_template or fields, but not both; fields must contain at least one field and each field requires key. Use taxonomy_sources only with fields, and a 500 is returned for an unexpected server error.