curl --request POST \
--url https://us.api.flexprice.io/v1/workflows/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"end_time": "<string>",
"entity": "<string>",
"entity_id": "<string>",
"expand": "<string>",
"filters": [
{
"data_type": "string",
"field": "<string>",
"operator": "eq",
"value": {
"array": [
"<string>"
],
"boolean": true,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"limit": 500,
"offset": 1,
"order": "asc",
"sort": [
{
"direction": "asc",
"field": "<string>"
}
],
"start_time": "<string>",
"status": "published",
"task_queue": "<string>",
"workflow_id": "<string>",
"workflow_status": "<string>",
"workflow_type": "<string>"
}
'{
"items": [
{
"close_time": "<string>",
"created_by": "<string>",
"duration_ms": 123,
"entity": "<string>",
"entity_id": "<string>",
"run_id": "<string>",
"start_time": "<string>",
"status": "<string>",
"task_queue": "<string>",
"total_duration": "<string>",
"workflow_id": "<string>",
"workflow_type": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}Use when listing or auditing workflow runs (e.g. ops dashboard or debugging). Returns a paginated list; supports filtering by workflow type and status.
curl --request POST \
--url https://us.api.flexprice.io/v1/workflows/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"end_time": "<string>",
"entity": "<string>",
"entity_id": "<string>",
"expand": "<string>",
"filters": [
{
"data_type": "string",
"field": "<string>",
"operator": "eq",
"value": {
"array": [
"<string>"
],
"boolean": true,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"limit": 500,
"offset": 1,
"order": "asc",
"sort": [
{
"direction": "asc",
"field": "<string>"
}
],
"start_time": "<string>",
"status": "published",
"task_queue": "<string>",
"workflow_id": "<string>",
"workflow_status": "<string>",
"workflow_type": "<string>"
}
'{
"items": [
{
"close_time": "<string>",
"created_by": "<string>",
"duration_ms": 123,
"entity": "<string>",
"entity_id": "<string>",
"run_id": "<string>",
"start_time": "<string>",
"status": "<string>",
"task_queue": "<string>",
"total_duration": "<string>",
"workflow_id": "<string>",
"workflow_type": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}Enter your API key in the format x-api-key <api-key>*
Filter
e.g. plan, invoice, subscription
e.g. plan_01ABC123
filters allows complex filtering based on multiple fields (same as FeatureFilter)
Show child attributes
1 <= x <= 1000x >= 0asc, desc Show child attributes
published, deleted, archived Workflow-specific filters
e.g. Running, Completed, Failed