Flows
Get Flow Runs by Flow
Get a list of flow runs for a specific flow
GET
/
v2
/
flows
/
{id}
/
runs
Copy
curl --request GET \
--url https://api.tableflow.com/v2/flows/dk4g1tUg1uHLs8YU/runs \
--header 'Authorization: Bearer YOUR_API_KEY'
Copy
[
{
"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": "failed",
"status_history": [
{
"status": "processing",
"time": 1682365228,
"message": "Flow started via manual"
},
{
"status": "failed",
"time": 1682365258,
"message": "Extraction step 'Extract Invoice' failed: Template not found"
}
],
"error": "Extraction step 'Extract Invoice' failed: Template not found",
"metadata": {
"customer_id": "54321"
},
"trigger_method": "manual",
"start_time": 1682365228,
"end_time": 1682365258,
"duration": 30000,
"drive_files": {},
"created_at": 1682365228,
"updated_at": 1682365258
}
]
Retrieves all flow runs for a specific flow.
Usage Notes
- Returns all runs without pagination
- Results are ordered by creation date (newest first)
- The flow must belong to your workspace
Request
The ID of the flow
Response
Copy
[
{
"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": "failed",
"status_history": [
{
"status": "processing",
"time": 1682365228,
"message": "Flow started via manual"
},
{
"status": "failed",
"time": 1682365258,
"message": "Extraction step 'Extract Invoice' failed: Template not found"
}
],
"error": "Extraction step 'Extract Invoice' failed: Template not found",
"metadata": {
"customer_id": "54321"
},
"trigger_method": "manual",
"start_time": 1682365228,
"end_time": 1682365258,
"duration": 30000,
"drive_files": {},
"created_at": 1682365228,
"updated_at": 1682365258
}
]
Copy
curl --request GET \
--url https://api.tableflow.com/v2/flows/dk4g1tUg1uHLs8YU/runs \
--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 of the flow run
processing
- Flow is currently executingreview
- Flow is paused for human reviewcompleted
- Flow completed successfullyfailed
- Flow failed (check error field)
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 (if Google Drive integration is enabled)
Unix timestamp when the flow run was created
Unix timestamp when the flow run was last updated
Copy
curl --request GET \
--url https://api.tableflow.com/v2/flows/dk4g1tUg1uHLs8YU/runs \
--header 'Authorization: Bearer YOUR_API_KEY'
Copy
[
{
"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": "failed",
"status_history": [
{
"status": "processing",
"time": 1682365228,
"message": "Flow started via manual"
},
{
"status": "failed",
"time": 1682365258,
"message": "Extraction step 'Extract Invoice' failed: Template not found"
}
],
"error": "Extraction step 'Extract Invoice' failed: Template not found",
"metadata": {
"customer_id": "54321"
},
"trigger_method": "manual",
"start_time": 1682365228,
"end_time": 1682365258,
"duration": 30000,
"drive_files": {},
"created_at": 1682365228,
"updated_at": 1682365258
}
]
Assistant
Responses are generated using AI and may contain mistakes.