Public API
Automations

On this page
Saved automations that still send when an event matches. Pause or resume one.
These routes are the public API. Send Authorization: Bearer with a workspace server API key. The key can act on every app in the workspace. A route that names an app uses that app id. environment is development or production.
GET /api/v1/public/apps/{app}/environments/{environment}/automations
The automations were listed.
Path
app— App id in this workspace.environment—developmentorproduction.
Responses
200AUTOMATIONS_LISTED— The automations were listed.401INVALID_API_KEY— The API key is invalid.404APP_NOT_FOUND— The app could not be found.429RATE_LIMIT_EXCEEDED— Too many requests. Please try again later.500SERVER_ERROR— Something went wrong. Please try again.
PATCH /api/v1/public/apps/{app}/environments/{environment}/automations/{automation}
The automation was updated.
Path
app— App id in this workspace.environment—developmentorproduction.automation— Automation id.
Body
enabled(boolean, required)
Responses
200AUTOMATION_UPDATED— The automation was updated.id(string, required)enabled(boolean, required)
401INVALID_API_KEY— The API key is invalid.404RESOURCE_NOT_FOUND— The requested resource could not be found.422VALIDATION_FAILED— The request contains invalid fields.429RATE_LIMIT_EXCEEDED— Too many requests. Please try again later.500SERVER_ERROR— Something went wrong. Please try again.
