Skip to main content
GET
/
workflows
/
{id}
/
results
curl -X GET 'https://api.anyformat.ai/workflows/550e8400-e29b-41d4-a716-446655440000/results/?output_format=json' \
  -H 'x-api-key: YOUR_API_KEY'
{
  "invoice-001.pdf": {
    "file_name": "invoice-001.pdf",
    "status": "processed",
    "results": {
      "invoice_number": {
        "value": "INV-12345",
        "confidence": 95,
        "evidence": [{"text": "Invoice #INV-12345", "page_number": 1}]
      },
      "total_amount": {
        "value": "1250.00",
        "confidence": 92,
        "evidence": [{"text": "Total: $1,250.00", "page_number": 1}]
      }
    }
  },
  "invoice-002.pdf": {
    "file_name": "invoice-002.pdf",
    "status": "processed",
    "results": {
      "invoice_number": {
        "value": "INV-12346",
        "confidence": 98,
        "evidence": [{"text": "Invoice Number: INV-12346", "page_number": 1}]
      },
      "total_amount": {
        "value": "875.50",
        "confidence": 94,
        "evidence": [{"text": "Amount Due: $875.50", "page_number": 2}]
      }
    }
  }
}
Retrieve extraction results for all files processed with a specific workflow. This endpoint supports multiple output formats and filtering options.

Output Formats

FormatDescription
csvComma-separated values (default)
jsonStructured JSON with full metadata
jsonlJSON Lines format (one object per line)
curl -X GET 'https://api.anyformat.ai/workflows/550e8400-e29b-41d4-a716-446655440000/results/?output_format=json' \
  -H 'x-api-key: YOUR_API_KEY'
{
  "invoice-001.pdf": {
    "file_name": "invoice-001.pdf",
    "status": "processed",
    "results": {
      "invoice_number": {
        "value": "INV-12345",
        "confidence": 95,
        "evidence": [{"text": "Invoice #INV-12345", "page_number": 1}]
      },
      "total_amount": {
        "value": "1250.00",
        "confidence": 92,
        "evidence": [{"text": "Total: $1,250.00", "page_number": 1}]
      }
    }
  },
  "invoice-002.pdf": {
    "file_name": "invoice-002.pdf",
    "status": "processed",
    "results": {
      "invoice_number": {
        "value": "INV-12346",
        "confidence": 98,
        "evidence": [{"text": "Invoice Number: INV-12346", "page_number": 1}]
      },
      "total_amount": {
        "value": "875.50",
        "confidence": 94,
        "evidence": [{"text": "Amount Due: $875.50", "page_number": 2}]
      }
    }
  }
}

Query Parameters

Output Formatting

ParameterTypeDefaultDescription
output_formatstringcsvResponse format: csv, json, or jsonl
as_listsbooleanfalseTransform all extracted fields to arrays for consistent formatting (JSON only)

File Name Filters

ParameterDescription
file__name__iexactExact file name match (case-insensitive)
file__name__icontainsFile name contains (case-insensitive)
file__name__not_icontainsFile name does not contain
file__name__not_iexactFile name does not match exactly
file__name__istartswithFile name starts with
file__name__iendswithFile name ends with

Date Filters

ParameterDescription
file__created_atExact creation date
file__created_at__gtCreated after date
file__created_at__ltCreated before date
file__created_at__gteCreated on or after date
file__created_at__lteCreated on or before date
file__last_processed_atLast processing date
file__last_processed_at__gtLast processed after date
file__last_processed_at__ltLast processed before date
file__last_processed_at__gteLast processed on or after date
file__last_processed_at__lteLast processed on or before date
Date parameters accept ISO 8601 format (e.g., 2024-01-15 or 2024-01-15T10:30:00Z).

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

Query Parameters

file__created_at
string

Filter by file__created_at (ISO 8601 format: YYYY-MM-DD)

file__created_at__gt
string

Filter by file__created_at gt (ISO 8601 format: YYYY-MM-DD)

file__created_at__gte
string

Filter by file__created_at gte (ISO 8601 format: YYYY-MM-DD)

file__created_at__lt
string

Filter by file__created_at lt (ISO 8601 format: YYYY-MM-DD)

file__created_at__lte
string

Filter by file__created_at lte (ISO 8601 format: YYYY-MM-DD)

file__last_processed_at
string

Filter by file__last_processed_at (ISO 8601 format: YYYY-MM-DD)

file__last_processed_at__gt
string

Filter by file__last_processed_at gt (ISO 8601 format: YYYY-MM-DD)

file__last_processed_at__gte
string

Filter by file__last_processed_at gte (ISO 8601 format: YYYY-MM-DD)

file__last_processed_at__lt
string

Filter by file__last_processed_at lt (ISO 8601 format: YYYY-MM-DD)

file__last_processed_at__lte
string

Filter by file__last_processed_at lte (ISO 8601 format: YYYY-MM-DD)

file__name__icontains
string

Filter file__name icontains

file__name__iendswith
string

Filter file__name iendswith

file__name__iexact
string

Filter file__name iexact

file__name__istartswith
string

Filter file__name istartswith

file__name__not_icontains
string

Filter file__name not_icontains

file__name__not_iexact
string

Filter file__name not_iexact

output_format
enum<string>
default:csv

Response format (csv or jsonl)

Available options:
csv,
jsonl

Response

200 - 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