ENDPOINT | POST

Run an automation

Starts an automation that starts on “A webhook is called”. Send any JSON object: each top-level field is available to its steps as {webhook.<field>}.

POSThttps://api.cloverr.co.uk/v1/automations/{id}/run

Scope: writeSuccess: 201120 requests a minute per token

Path parameters

iduuidrequiredThe automation.

Body (JSON)

(any field)anyUp to 64 KB in total.

Example request & response

Send your token in the Authorization header. A successful response wraps the result in data.

curl -X POST https://api.cloverr.co.uk/v1/automations/3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e0f/run \
  -H "Authorization: Bearer $CLOVERR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","plan":"business"}'
201 · JSON
{
  "data": {
    "queued": true,
    "automation": {
      "id": "3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e0f",
      "name": "New lead → Slack"
    }
  }
}

Errors

StatusCodeWhen
404not_foundNo such automation.
409wrong_triggerIt doesn't start on “A webhook is called”.
409disabledIt's turned off.
413too_largeOver 64 KB.
401unauthorizedNo token, or it's invalid, expired, revoked, or its owner left the organisation.
403forbiddenThe token doesn't have this endpoint's scope.
403ip_not_allowedThe token only works from listed addresses, and this request came from another.
403two_factor_requiredThe organisation requires login verification and the token's owner hasn't set it up.
429rate_limitedMore than 120 requests in a minute with this token. Wait for Retry-After.
500server_errorSomething went wrong on our side. Safe to retry.

Errors look like { "error": { "code", "message" } }. All error codes.