Skip to main content
POST
/
workflows
/
{id}
/
upload
curl -X POST 'https://api.anyformat.ai/workflows/550e8400-e29b-41d4-a716-446655440000/upload/' \
  -H 'x-api-key: YOUR_API_KEY' \
  -F 'file=@/path/to/document.pdf'
{
  "filename": "document.pdf",
  "status": "uploaded"
}
Upload a file to a workflow without immediately running extraction. This is useful when you want to batch upload files and process them later.
curl -X POST 'https://api.anyformat.ai/workflows/550e8400-e29b-41d4-a716-446655440000/upload/' \
  -H 'x-api-key: YOUR_API_KEY' \
  -F 'file=@/path/to/document.pdf'
{
  "filename": "document.pdf",
  "status": "uploaded"
}

Optional Parameters

ParameterTypeDescription
file_collection_idstring (UUID)Associate the uploaded file with a specific file collection

Authorizations

X-API-Key
string
header
required

API key authentication. Add your API key with the X-API-Key header.

Path Parameters

id
string
required

Body

multipart/form-data
file
string<uri> | null
file_base64
string | null

Base64 encoded file content

filename
string | null

Original filename when using file_base64

content_type
string | null

MIME type when using file_base64

text
string | null
file_collection_id
string<uuid> | null
manual_field_values
unknown

Response

201 - application/json
status
string
required
filename
string