Skip to main content
POST
/
pipeline_async
Run Pipeline (Async)
curl --request POST \
  --url https://platform.aifano.com/pipeline_async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "pipeline_id": "<string>",
  "async": {
    "priority": false,
    "webhook": {
      "mode": "svix",
      "url": "<string>"
    },
    "metadata": "<unknown>"
  }
}
'
{
  "job_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use your Aifano API key (starts with ak_live_) as the Bearer token.

Body

application/json
input
required

The document to process. Accepts: (1) a public URL, (2) a presigned S3 URL, (3) an aifano://file_id from /upload, or (4) a jobid://job_id from a previous /parse call.

pipeline_id
string
required
async
object

Response

Job created

job_id
string
required

Job ID for polling via GET /job/{job_id}.