Get Flow Runs
Get a list of all flow runs in your workspace
curl --request GET \
--url 'https://api.tableflow.com/v2/flows/runs?status=completed&limit=50' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"flow_runs": [
{
"id": "fr_abc123def456",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "Flow started via api"
},
{
"status": "completed",
"time": 1682366258,
"message": "Flow completed successfully"
}
],
"error": null,
"metadata": {
"customer_id": "12345",
"order_number": "PO-2024-001"
},
"trigger_method": "api",
"start_time": 1682366228,
"end_time": 1682366258,
"duration": 30000,
"drive_files": {},
"created_at": 1682366228,
"updated_at": 1682366258
},
{
"id": "fr_def456ghi789",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "processing",
"status_history": [
{
"status": "processing",
"time": 1682366328,
"message": "Flow started via api"
}
],
"error": null,
"metadata": {
"customer_id": "67890"
},
"trigger_method": "api",
"start_time": 1682366328,
"end_time": null,
"duration": 0,
"drive_files": {},
"created_at": 1682366328,
"updated_at": 1682366328
}
],
"pagination": {
"total": 250,
"limit": 100,
"offset": 0,
"next_offset": 100,
"filter": "all"
}
}
Retrieves a paginated list of flow runs with optional filtering by flow ID or status.
Usage Notes
- Results are paginated with a default limit of 100
- Results are ordered by creation date (newest first)
- Use filters to narrow down results by flow or status
- The response includes complete flow run details
Request
Filter by flow ID
Filter by status: processing, review, completed, or failed
Maximum number of results to return (default: 100, max: 1000)
Number of results to skip (default: 0)
Response
{
"flow_runs": [
{
"id": "fr_abc123def456",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "Flow started via api"
},
{
"status": "completed",
"time": 1682366258,
"message": "Flow completed successfully"
}
],
"error": null,
"metadata": {
"customer_id": "12345",
"order_number": "PO-2024-001"
},
"trigger_method": "api",
"start_time": 1682366228,
"end_time": 1682366258,
"duration": 30000,
"drive_files": {},
"created_at": 1682366228,
"updated_at": 1682366258
},
{
"id": "fr_def456ghi789",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "processing",
"status_history": [
{
"status": "processing",
"time": 1682366328,
"message": "Flow started via api"
}
],
"error": null,
"metadata": {
"customer_id": "67890"
},
"trigger_method": "api",
"start_time": 1682366328,
"end_time": null,
"duration": 0,
"drive_files": {},
"created_at": 1682366328,
"updated_at": 1682366328
}
],
"pagination": {
"total": 250,
"limit": 100,
"offset": 0,
"next_offset": 100,
"filter": "all"
}
}
curl --request GET \
--url 'https://api.tableflow.com/v2/flows/runs?status=completed&limit=50' \
--header 'Authorization: Bearer YOUR_API_KEY'
Array of flow run objects
The unique identifier for the flow run
The ID of the flow being executed
The workspace ID
Current status: processing, review, completed, or failed
History of status changes
Error message if the flow run failed
Custom metadata provided when running the flow
How the flow was triggered: api or manual
Unix timestamp when the flow run started
Unix timestamp when the flow run completed
Duration of the flow run in milliseconds
Google Drive files created during the flow
Unix timestamp when created
Unix timestamp when last updated
curl --request GET \
--url 'https://api.tableflow.com/v2/flows/runs?status=completed&limit=50' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"flow_runs": [
{
"id": "fr_abc123def456",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "completed",
"status_history": [
{
"status": "processing",
"time": 1682366228,
"message": "Flow started via api"
},
{
"status": "completed",
"time": 1682366258,
"message": "Flow completed successfully"
}
],
"error": null,
"metadata": {
"customer_id": "12345",
"order_number": "PO-2024-001"
},
"trigger_method": "api",
"start_time": 1682366228,
"end_time": 1682366258,
"duration": 30000,
"drive_files": {},
"created_at": 1682366228,
"updated_at": 1682366258
},
{
"id": "fr_def456ghi789",
"flow_id": "dk4g1tUg1uHLs8YU",
"workspace_id": "uT2bJNWN75YPU95r",
"status": "processing",
"status_history": [
{
"status": "processing",
"time": 1682366328,
"message": "Flow started via api"
}
],
"error": null,
"metadata": {
"customer_id": "67890"
},
"trigger_method": "api",
"start_time": 1682366328,
"end_time": null,
"duration": 0,
"drive_files": {},
"created_at": 1682366328,
"updated_at": 1682366328
}
],
"pagination": {
"total": 250,
"limit": 100,
"offset": 0,
"next_offset": 100,
"filter": "all"
}
}