Skip to main content

Get Automation

Retrieve an automation with its latest steps, and what is left to fix before it can be enabled.

issues is computed on each request. A tag, template or sending domain that a step uses and that has since been deleted shows up here, even on an automation that is already enabled.

Endpoint​

GET /automations/:id

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe automation ID

Response​

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "Welcome series",
"status": "draft",
"created_at": "2026-03-08T12:00:00.000Z",
"updated_at": "2026-03-08T12:10:00.000Z",
"steps": [
{
"key": "trigger",
"type": "trigger",
"name": "Joined the newsletter",
"config": {
"event": "list_added",
"list_id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f72",
"reentry": { "mode": "once" }
}
},
{
"key": "welcome_email",
"type": "send_email",
"name": "Welcome email",
"config": {
"template_id": null,
"from_domain": "mail.example.com",
"from_prefix": "hello",
"from_name": "Acme"
}
}
],
"connections": [
{ "from": "trigger", "to": "welcome_email", "type": "default" }
],
"issues": [
{
"step_key": "welcome_email",
"path": "template_id",
"message": "Choose an email template"
}
]
}

See List Automations for the field reference, and Automation Steps for steps and connections.


Examples​

curl "https://api.arsel.sa/v1/automations/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 403,
"name": "forbidden",
"message": "Automations are not available for this organization"
}