List Automation Steps
Changed onLists automation steps. With automation_id, lists one version of that automation in the order its steps run: the draft version unless version names another. Without it, lists the steps of every version of every automation, newest first. Steps get new IDs at every publish, so list them again afterwards and match them up by key.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
Only this automation's steps, in run order, prefixed ato_. order doesn't apply.
With automation_id, the version to list, such as its published_version. Defaults to its draft_version.
Without automation_id, only this account's steps, prefixed biz_. Defaults to the credential's account, or every account a user can read.
Field to sort by.
Sort direction.
Number of results to return from the start of the range.
Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.
Number of results to return from the end of the range.
Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.
Headers
Pins the request to a dated API version.
Response
A published version
Example response
{
"data": [
{
"action_type": "email",
"automation_id": "ato_xxxxxxxxxxxxxx",
"config": {
"delay_seconds": 86400
},
"created_at": "2026-01-01T12:00:00.000Z",
"id": "atos_xxxxxxxxxxxxxx",
"key": 2,
"previous_step_id": "atos_xxxxxxxxxxxxxx",
"purpose": "transactional",
"sender": {
"type": "email_address"
},
"source_code": "export default () => message.skip();",
"updated_at": "2026-01-01T12:00:00.000Z",
"version": 1
}
],
"page_info": {
"start_cursor": "MQ"
}
}Changes
- info
added the required property
data/items/purposeto the response with the status
- info
- info
added the optional property
data/items/config/anyOf[subschema #2: Email]/attachment_idsto the response with the status - info
added the optional property
data/items/config/anyOf[subschema #3: Message]/attachment_idsto the response with the status
- info