Skip to main content
GET
/
v1
/
automations
Get automations
curl --request GET \
  --url https://brew.new/api/v1/automations \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "automationId": "auto_abc",
      "automationVersionId": "av_v1",
      "triggerEventId": "tri_signup",
      "name": "Welcome flow",
      "version": "latest",
      "published": true,
      "emailIds": [
        "eml_welcome"
      ],
      "updatedAt": "2026-04-08T12:00:00.000Z"
    }
  ],
  "pagination": {
    "limit": 100,
    "cursor": null,
    "hasMore": false
  }
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Query Parameters

automationId
string

Fetch a single automation by id (detail mode → { data: [row] }). Omit to list.

Required string length: 1 - 64
include
string

Detail-only expansions (comma-separated): graph inlines nodes/connections; versions inlines the lean version history. Rejected without automationId.

Example:

"graph,versions"

limit
integer

Page size (1–100). Defaults to 100.

Required range: 1 <= x <= 100
cursor
string

Opaque pagination cursor echoed from the previous page’s pagination.cursor. Omit for the first page.

Required string length: 1 - 512

Response

A page of lean automation rows (list mode), or { data: [row] } (detail mode).

data
object[]
required
pagination
object