> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendrealm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish Automation

> Publish an automation draft.

## 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

```json theme={null}
{
  "data": {
    "id": "aut_123",
    "status": "active",
    "current_published_version": {
      "id": "aut_ver_456",
      "version_number": 2,
      "state": "published"
    }
  }
}
```
