Automations

List Automations

Changed on

Lists automations, newest first.

get/automations

Request

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

Query parameters

account_id, string

Only this account's automations, prefixed biz_. Defaults to the credential's account, or every account a user can read.

status, 'active' | 'closed' | 'stopped'

Only automations with this status.

trigger_event, 'payment.succeeded' | 'payment.failed' | 'membership.activated' | 'membership.trial_ending_soon' | 'membership.cancel_at_period_end_changed' | 'member.created' | 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'refund.created' | 'dispute.created' | 'resolution_center_case.created' | 'resolution_center_case.decided' | 'course_lesson_interaction.completed'

Only automations this webhook event enrolls into.

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

Automation list

object required
data, Automation[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "created_at": "2026-01-01T12:00:00.000Z",
      "created_by_actor": {
        "id": "biz_xxxxxxxxxxxxxx",
        "resource_type": "account"
      },
      "draft_version": 2,
      "id": "ato_xxxxxxxxxxxxxx",
      "name": "After an order",
      "published_at": "2026-01-01T12:00:00.000Z",
      "published_by_actor": {
        "id": "biz_xxxxxxxxxxxxxx",
        "resource_type": "account"
      },
      "published_version": 1,
      "secret_names": [
        "SHOP_TOKEN"
      ],
      "status": "active",
      "trigger_event": "payment.succeeded",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • warning

      added the new membership.cancel_at_period_end_changed enum value to the data/items/trigger_event response property for the response status

    • info

      added the new enum value membership.cancel_at_period_end_changed to the query request parameter trigger_event

    • breaking

      removed the required property data/items/created_by_actor/object from the response with the status

    3 more changes in this revision