Skip to content

List Workflow Executions

Request

Retrieves a workflow's executions, most recently updated first, optionally filtered by status, outcome or when they were last updated. Use Get a Workflow Execution for an execution's steps, booking link and appointment.

Security
apiKeyAuth and practiceGroupId
Path
workflow_idstringrequired

The workflow's ID, from List Workflows.

Query
statusstring
Enum:"scheduled""in_progress""completed""cancelled""failed"
outcomestring

How the execution ended, such as booked or not_booked.

updated_atArray of strings, (date-time)

[start, end] as ISO 8601 date-times. The end is optional.

page_indexinteger
Default:0
page_sizeinteger, <= 100
Default:20
curl -i -X GET \
  'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/workflows/{workflow_id}/executions?status=scheduled&outcome=string&updated_at=2019-08-24T14%3A15%3A22Z&page_index=0&page_size=20' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-practice-group-id: YOUR_API_KEY_HERE'

Responses

Ok

Bodyapplication/json
dataArray of objectsrequired
countnumberrequired
Response
{ "data": [ { … } ], "count": 0 }