Skip to main content
POST
/
workflows
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"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

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

Body

name
string
required
fields
object[]
required
Minimum array length: 1
description
string
manual_fields
object[] | null

Response

201 - application/json
id
string
required
name
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
results
object[] | null
fields
object[] | null