curl -X GET 'https://api.anyformat.ai/v2/workflows/?page=1&page_size=20' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
url = "https://api.anyformat.ai/v2/workflows/"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {"page": 1, "page_size": 20}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
interface Workflow {
id: string;
name: string;
description: string | null;
created_at: string;
updated_at: string;
}
interface WorkflowListResponse {
count: number;
page: number;
page_size: number;
results: Workflow[];
}
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const data: WorkflowListResponse = await response.json();
console.log(data.results);
{
"count": 2,
"page": 1,
"page_size": 20,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Processing",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00.000Z",
"updated_at": "2024-03-24T12:00:00.000Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Receipt Processing",
"description": null,
"created_at": "2024-03-24T13:00:00.000Z",
"updated_at": "2024-03-24T13:00:00.000Z"
}
]
}
Workflows
List Workflows
List workflows with pagination and optional filtering
GET
/
v2
/
workflows
/
curl -X GET 'https://api.anyformat.ai/v2/workflows/?page=1&page_size=20' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
url = "https://api.anyformat.ai/v2/workflows/"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {"page": 1, "page_size": 20}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
interface Workflow {
id: string;
name: string;
description: string | null;
created_at: string;
updated_at: string;
}
interface WorkflowListResponse {
count: number;
page: number;
page_size: number;
results: Workflow[];
}
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const data: WorkflowListResponse = await response.json();
console.log(data.results);
{
"count": 2,
"page": 1,
"page_size": 20,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Processing",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00.000Z",
"updated_at": "2024-03-24T12:00:00.000Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Receipt Processing",
"description": null,
"created_at": "2024-03-24T13:00:00.000Z",
"updated_at": "2024-03-24T13:00:00.000Z"
}
]
}
The maximum
page_size is 100. Requests exceeding this value are silently capped at 100.curl -X GET 'https://api.anyformat.ai/v2/workflows/?page=1&page_size=20' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
url = "https://api.anyformat.ai/v2/workflows/"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
params = {"page": 1, "page_size": 20}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
interface Workflow {
id: string;
name: string;
description: string | null;
created_at: string;
updated_at: string;
}
interface WorkflowListResponse {
count: number;
page: number;
page_size: number;
results: Workflow[];
}
const response = await fetch('https://api.anyformat.ai/v2/workflows/?page=1&page_size=20', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const data: WorkflowListResponse = await response.json();
console.log(data.results);
{
"count": 2,
"page": 1,
"page_size": 20,
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Invoice Processing",
"description": "Extract data from invoice documents",
"created_at": "2024-03-24T12:00:00.000Z",
"updated_at": "2024-03-24T12:00:00.000Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Receipt Processing",
"description": null,
"created_at": "2024-03-24T13:00:00.000Z",
"updated_at": "2024-03-24T13:00:00.000Z"
}
]
}
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 1Response
Successful Response
Paginated list of workflows.
⌘I
