curl -X POST 'https://api.anyformat.ai/workflows/' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00Z",
"updated_at": "2024-03-24T12:00:00Z",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}
Create a new workflow
curl -X POST 'https://api.anyformat.ai/workflows/' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00Z",
"updated_at": "2024-03-24T12:00:00Z",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}
curl -X POST 'https://api.anyformat.ai/workflows/' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Extraction",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00Z",
"updated_at": "2024-03-24T12:00:00Z",
"fields": [
{
"name": "invoice_number",
"description": "The unique invoice identifier",
"type": "string"
},
{
"name": "total_amount",
"description": "Total invoice amount including tax",
"type": "float"
}
]
}
API key authentication. Add your API key with the X-API-Key header.