Skip to main content

Delete Automation

Delete an automation. It stops letting contacts in, and the runs in progress end. Their history stays.

A deleted automation and its runs can no longer be read through the API.

Endpoint​

DELETE /automations/:id

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe automation ID

Response​

{
"object": "automation",
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"deleted": true
}

To stop new entries but let the runs in progress finish, disable the automation with Update Automation instead.


Examples​

curl -X DELETE "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"
}