Webhooks
Aivyro avisa a tu HTTPS cuando cambia el CRM o el inbox. Sin polling.
Suscribe un endpoint HTTPS. La URL debe ser HTTPS y no puede apuntar a una red privada.
| HTTP | Path | Scope |
|---|---|---|
| GET | /api/v1/webhooks | rest.crm.webhooks.read |
| POST | /api/v1/webhooks | rest.crm.webhooks.write |
| GET | /api/v1/webhooks/{id} | rest.crm.webhooks.read |
| PATCH | /api/v1/webhooks/{id} | rest.crm.webhooks.write |
| DELETE | /api/v1/webhooks/{id} | rest.crm.webhooks.write |
| GET | /api/v1/webhooks/{id}/deliveries | rest.crm.webhooks.read |
| POST | /api/v1/webhooks/{id}/rotate_secret | rest.crm.webhooks.write |
GET /api/v1/webhooks devuelve un array JSON, no una página de cursor. Workspace vacío: []. signing_secret aparece solo en create y rotate.
Campos
| Campo | Tipo | Notas |
|---|---|---|
| id | UUID | Inmutable. |
| url | string | HTTPS. Sin red privada. |
| events | string[] | Al menos uno en create. |
| active | boolean | PATCH para pausar. |
| signing_secret | string | Solo en create y rotate. |