Skip to main content
POST
/
automations
/
{id}
/
publish
Publish an automation
curl --request POST \
  --url https://api.sendrealm.com/automations/{id}/publish \
  --header 'Authorization: Bearer <token>'
{
  "status": 123,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": null
  }
}

Publish validation

  • Exactly one trigger
  • Reachable graph
  • No cycles in v1
  • Published template versions only
  • Valid branches for condition and wait_for_event

Example publish response

{
  "data": {
    "id": "aut_123",
    "status": "active",
    "current_published_version": {
      "id": "aut_ver_456",
      "version_number": 2,
      "state": "published"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Response

Automation published