Create Webhook
Webhooks
Create Webhook
Register a new webhook endpoint — the signing secret is returned once. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response.
POST
Create Webhook
Register a URL to receive real-time event notifications. The HMAC signing secret is returned once in the response. Save it immediately — you can’t retrieve it later.
Authentication
Request body
HTTPS endpoint URL that will receive webhook POSTs.
Event types to subscribe to. At least one required.
| Event | When fired |
|---|---|
message.sent | Message accepted by Tuco |
message.failed | Message failed after retries |
message.fallback | Recipient has no iMessage |
message.reply | Lead replied |
message.opened | Message read (read receipt) |
User-friendly name for this webhook.
Optional description.
Response
Webhook ID
HMAC-SHA256 signing secret. Shown once. Use this to verify
X-Tuco-Signature on incoming webhooks.Endpoint URL
Subscribed events
Webhook name
Creation timestamp (ISO UTC)
Reminder to save the secret
Examples
201 Response
Errors
| Status | When |
|---|---|
400 | URL missing, invalid URL format, no events, invalid event types, name missing |
401 | Invalid or missing API key |
402 | Subscription past due (workspace is read-only) |