Automation Steps

List Automation Steps

Changed on

Lists 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.

get/automation_steps

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

automation_id, string

Only this automation's steps, in run order, prefixed ato_. order doesn't apply.

version, integer

With automation_id, the version to list, such as its published_version. Defaults to its draft_version.

account_id, string

Without automation_id, only this account's steps, prefixed biz_. Defaults to the credential's account, or every account a user can read.

order, 'created_at'

Field to sort by.

direction, 'asc' | 'desc'

Sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

A published version

object required
data, AutomationStep[] required
page_info, object required

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/purpose to the response with the status

    • info

      added the optional property data/items/config/anyOf[subschema #2: Email]/attachment_ids to the response with the status

    • info

      added the optional property data/items/config/anyOf[subschema #3: Message]/attachment_ids to the response with the status