Skip to navigation

Create an automation

Save a new automation. It is created switched off unless enabled is true. The response carries warnings for steps that look incomplete; they don’t block the save.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired1-200 characters
agent_idstringRequiredformat: "uuid"

The agent it belongs to (yours)

triggerobjectRequired

What starts it: {type, …}

enabledbooleanOptionalDefaults to false

Created switched off unless true: switching on lets it act

stepslist of objectsOptional
delay_secondsinteger or nullOptional>=0
dedupobject or nullOptional
approvalobject or nullOptional
limitsobject or nullOptional
success_metricobject or nullOptional
stop_conditionslist of objects or nullOptional

Response

Successful Response

Errors

422
Unprocessable Entity Error