email.received, your handler resumes the agent.
Events
Naive emits these events today (subscribe to any subset):| Event | Fires when |
|---|---|
email.received | An inbound email arrives at one of the tenant’s managed inboxes |
approval.resolved | An approval is approved, denied, or fails (payload includes status) |
The advertised event list always matches what Naive actually emits.
GET /v1/webhooks/event-types is the source of truth.Subscribe
A subscription created on the root client is company-wide (tenant_user_id null, receives events for all tenants); created via forUser(id) it’s scoped to that tenant. The returned secret is shown once — store it to verify signatures.
Verify deliveries
Each POST carriesX-Naive-Signature (HMAC-SHA256 of the raw body) and X-Naive-Event. Verify with the helper:
REST
/v1/users/:user_id/webhooks. See the Webhooks API reference and the webhooks sub-client.