Automações (BETA)
Workflows, publish, runs e logs — API avançada com risco de breaking change.
BETA — API avançada. Estes endpoints podem mudar sem major version e têm efeitos
colaterais (publish, test com dryRun: false). Use sandbox e trate breaking changes.
Automações reagem a eventos do CRM (card.created, phase_changed, message.received…)
e executam ações (task.create, http.request, channel.send_message…).
Fluxo seguro
POST /automations— cria inactive (active: trueé rejeitado no create)- Edite o grafo / ações
POST /automations/{id}/validate-graph— sem side-effectPOST /automations/{id}/publish— cria versão publicadaPOST /automations/{id}/toggle— liga/desligaPOST /automations/{id}/testcomdryRun: trueantes de qualquer teste real
Endpoints
| Método | Path | Notas |
|---|---|---|
| GET/POST | /automations | Listar / criar |
| GET/PUT/DELETE | /automations/{id} | CRUD |
| POST | /automations/{id}/publish | Efeito colateral |
| POST | /automations/{id}/test | dryRun default true |
| POST | /automations/{id}/toggle | Exige publish prévio para ativar |
| GET | /automations/{id}/runs | Histórico |
| GET | /automation-logs | Logs |
Referência completa: API Reference → Automações.