Skip to navigation

Get an automation workflow

View as Markdown

Returns how an automation workflow is built: its name, status, editor_url (the link that opens it in the Brevo automation editor), re-entry, and its triggers and steps in order, with their settings under the same names as POST /automation/workflows takes. It also returns version, which PUT /automation/workflows/{workflowId} needs.

Step IDs are the ones Brevo assigned, not the labels sent at creation. Secrets are never returned: webhook auth and headers are left out, and a webhook url reads back as its origin only (https://host), because its path and query can hold a secret. Settings that are not stored are left out, and a trigger with incomplete: true (a custom event with no event picked, or a list trigger with no list) starts nothing. A go_to_step reads back with next: null and go_to_step.step; a start_another_workflow with the target’s workflow_name and step_name; a percentage_split as split.variants and as percentage_split. Each email step’s message has the template_name and subject of the email it sends.

To edit a workflow, call this with format=request: request is the body to edit and send to PUT /automation/workflows/{workflowId}, with the integer IDs of the existing triggers and steps.

The read view also returns steps set in the Brevo editor that the API cannot create, such as conditions and WhatsApp messages; their type is listed in the schema.

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.

Path parameters

workflowIdlongRequired>=1
ID of the automation workflow

Query parameters

formatenumOptional

request returns the workflow as an editable body for PUT /automation/workflows/{workflowId} (version, request, templates, unsupported, preserved) instead of the read view.

Allowed values:

Response

The workflow; with format=request, as an editable body

automationWorkflowDefinitionobject

An automation workflow as GET /automation/workflows/{workflowId} returns it

OR
automationWorkflowEditableobject

An automation workflow as an editable body, returned with format=request

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error