Create a webhook
POST
https://myagentmail.com/v1/webhooksFor agents View as Markdown
Request body
Content-Type: application/json
urlrequired string | format: uri |
eventsrequired "message.received" | "message.sent" | "message.bounced"[] |
Responses
201application/jsonCreated
idstring | format: uuid |
urlstring | format: uri |
events"message.received" | "message.sent" | "message.bounced"[] | |
secretstring | HMAC-SHA256 secret. Only returned on creation. |
isActiveboolean | |
createdAtstring | format: date-time |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.