List all waiting instances for an organization
Returns paginated list of workflow instances currently waiting for external events. Supports filtering by workflow_id and event_name. Pages by cursor with after_id or before_id. A wait state has no single id, so a cursor is "<instance_id>:<step_index>", the instance_id and step_index of a row from a previous response. The default order is timeout_at ascending with rows that have no timeout last; ties break on instance_id then step_index.
Request
- Base URLhttps://api.paymongo.com
- URLhttps://api.paymongo.com/v1/workflows/instances/waiting
- Authnone required
Query parameters
Filter by workflow ID
Filter by event name
Page size (default: 10, max: 100)
Return the page after this position: either the opaque next_cursor from a previous response, or a bare wait state row id of the form <instance_id>:<step_index>. Mutually exclusive with before_id
Return the page before this position: either the opaque prev_cursor from a previous response, or a bare wait state row id of the form <instance_id>:<step_index>. Mutually exclusive with after_id
Sort column (default: timeout_at ascending, rows without a timeout last)
Sort direction; requires sort_by
Superuser only: filter by internal flag
Response
List of waiting instances
Example response
{
"data": [
{
"definition_path": "0.then.1",
"description": "Waiting for payment confirmation",
"event_name": "payment.paid",
"instance_id": "inst_abc123",
"status": "waiting",
"step_index": 2,
"timeout_at": "2026-01-15 11:30:00+00:00"
}
],
"meta": {
"limit": 10
}
}Changes
No recorded changes to this operation across all 1 revision of this API.