Skip to main content
The companion to Upload File. Once a file is staged, call this to process it — pass the file_id you got back from the upload response as the file_id path parameter. The run is asynchronous — poll GET /v2/workflows/{workflow_id}/files/{collection_id}/results/ (using the collection id from the response below) for the output.
file_id is the file_id from the upload response — the individual file handle, not the file_collection_id. See Files and collections. For upload-and-process in one call, use Run Workflow instead.
curl -X POST 'https://api.anyformat.ai/v2/workflows/550e8400-e29b-41d4-a716-446655440000/files/a1b2c3d4-e5f6-7890-abcd-ef1234567890/run/' \
  -H 'Authorization: Bearer YOUR_API_KEY'
{
  "id": "c0ffee00-0000-4000-8000-000000000000",
  "status": "pending",
  "workflow_id": "550e8400-e29b-41d4-a716-446655440000",
  "version_id": "FGaV4I2JAA"
}