Messages

Extract structured data from an attachment

{ schema: "invoice" | "receipt" | "tax_form" | {JSON Schema}, instructions? } → { schema, data, model, repaired, truncated, untrusted: true }, validated against the schema. Needs attachments:extract and AI processing full; counts toward structured_extractions_per_month.

Permission: attachments:extract.

post/v1/messages/{id}/attachments/{attachmentId}/extract

Request

  • Base URL: https://api.agentboxd.com
  • URL: https://api.agentboxd.com/v1/messages/{id}/attachments/{attachmentId}/extract
  • Auth: HTTP bearer

Path parameters

idstring uuid required
attachmentIdstring uuid required

Query parameters

include_unscreened'true' | 'false'
include_held'true' | 'false'

Request body

instructionsstring

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.