Skip to navigation

List automation workflows

View as Markdown

Returns the account’s automation workflows with their ID, name and status, newest first. Filter by part of the name with name and by status with status. At most limit workflows are returned (50 by default); when total_workflows_count is larger, page with offset.

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

OR
AuthorizationBearer

OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.

Query parameters

namestringOptional1-255 characters

Optional. Part of the automation’s name, case-insensitive (for example “welcome” finds “Welcome series”). A value made only of digits also matches the automation with that ID. 1 to 255 characters.

statusenumOptional

Optional. Only automations with this status. active, pause, or inactive (a draft or a stopped automation).

Allowed values:
limitlongOptional1-100

Optional. Number of automations to return, 1 to 100 (default 50). If total_workflows_count is larger than the number returned, page with offset or narrow with name.

offsetlongOptional>=0

Optional. Number of matching automations to skip, for paging with limit.

triggerTypesstringOptional

Optional. Comma-separated object types that start the automation, as the Brevo automation list filters them (contacts for automations on contacts). Usually leave it out.

Response

The matching automations
total_workflows_countlongOptional

Number of automations that match the filters, whatever limit and offset

workflowslist of objectsOptional
The matching automations, newest first

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error