Skip to main content
POST
/
v2
/
workflows
/
{workflow_id}
/
upload
curl -X POST 'https://api.anyformat.ai/v2/workflows/550e8400-e29b-41d4-a716-446655440000/upload/' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@/path/to/document.pdf'
{
  "status": "uploaded",
  "filename": "document.pdf"
}
Useful when you want to stage files now and process them in a separate batch later.
curl -X POST 'https://api.anyformat.ai/v2/workflows/550e8400-e29b-41d4-a716-446655440000/upload/' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'file=@/path/to/document.pdf'
{
  "status": "uploaded",
  "filename": "document.pdf"
}

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/settings. Send as Authorization: Bearer <key>.

Path Parameters

workflow_id
string
required

Body

multipart/form-data
file
string | null
text
string | null

Response

Successful Response

Confirmation that a file was uploaded successfully without triggering extraction.

status
string
required

Upload result: uploaded on success.

Example:

"uploaded"

filename
string | null

Name of the uploaded file.

Example:

"invoice.pdf"