Run Workflow
Submit a file or text for processing using a workflow
id is the file_collection_id; poll GET .../files/{file_collection_id}/results/ for the output.
Input Methods
You can submit content for processing in two ways:- File Upload - Upload a binary file directly via multipart form data
- Text Input - Send plain text for processing
file or text, not both.id returned in the response is the file_collection_id — not a file_id. Use it to poll for results via GET /v2/workflows/{workflow_id}/files/{id}/results/ (the path segment is named files, but it expects the collection id). The endpoint returns 412 while processing and 200 when results are ready. See Files and collections.Authorizations
API key issued from app.anyformat.ai/settings. Send as Authorization: Bearer <key>.
Path Parameters
Body
Response
Successful Response
Response after triggering a workflow run. Contains the collection ID to use for polling extraction results.
The collection UUID for this run. Use this ID to poll for results via GET /v2/workflows/{workflow_id}/files/{id}/results/.
"069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
Initial status of the run, typically success (meaning the run was accepted, not that extraction is complete).
"success"
The UUID of the workflow that was executed.
"0686bb97-8c30-70f0-8000-97669e000eb8"
The workflow version this run was bound to (the latest version at submission time). Lets callers verify which schema produced the results — useful right after an edit.
"FGaV4I2JAA"
