v34

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-09194386949.7 KB
LlamaExtract

Extract Stateless

Stateless extraction using a default agent in the user's default project; requires data_schema, config, and one of file_id / text / base64 file data.

post/api/v1/extraction/run

Query parameters

project_idstring uuid nullable
organization_idstring uuid nullable

Cookies

sessionstring nullable

Request body

file_idstring uuid nullable

The ID of the file to extract from

textstring nullable

The text content to extract from

Example request

{
  "webhook_configurations": [
    {
      "webhook_url": "https://example.com/webhooks/llamacloud",
      "webhook_headers": {
        "Authorization": "Bearer sk-..."
      },
      "webhook_events": [
        "parse.success",
        "parse.error"
      ],
      "webhook_output_format": "json"
    }
  ]
}

Response

Successful Response

idstring uuid required

The id of the extraction job

status'PENDING' | 'SUCCESS' | 'ERROR' | 'PARTIAL_SUCCESS' | 'CANCELLED' required

The status of the extraction job

errorstring nullable

The error that occurred during extraction

file_idstring uuid nullable

The id of the file that the extract was extracted from