Scheduled Flows
Retrieves a paginated list of scheduled flow runs. Can be filtered by status and flow_version_id.
API key passed in the Authorization header. Format: <api-key>
Filter results by status.
Filter results by flow_version_id.
Comma-separated list of relationships to include. Available: flowVersion, payloadMetadata, flow, virtualEnvironmentVersion, virtualEnvironmentVersion.virtualEnvironment
Sort field. Prefix with - for descending. Available: status, created_at, updated_at, flow_version_id
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/scheduled-flows HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"flow_version_id": 1,
"flow_version": {},
"virtual_environment_version_id": 1,
"virtual_environment_version": {},
"payload_metadata_id": 1,
"payload_metadata": {},
"trigger": "API",
"status": "Draft",
"flow": {}
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/scheduled-flows",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/scheduled-flows?page=1",
"last": "https://api.example.com/api/v1/scheduled-flows?page=1",
"prev": null,
"next": null
}
}Permanently deletes all scheduled flow runs for the company.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/scheduled-flows HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Permanently deletes all scheduled flow runs for a specific flow.
API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/scheduled-flows/{flow}/delete HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Permanently deletes a specific scheduled flow run.
API key passed in the Authorization header. Format: <api-key>
The scheduled flow identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/scheduled-flows/{scheduled_flow} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Last updated
Was this helpful?