Add a webhook endpoint to an inbox address
Add a webhook endpoint to an inbox address with the Mailly email API for AI agents: POST /inbox/webhook/endpoints. Parameters, request body, responses and code samples.
An address can have up to 10 endpoints; every active endpoint receives its own signed delivery. While an address has an active endpoint, its mail is no longer sent to the workspace default webhook. url must be public HTTPS and unique per address. A generated signing secret is returned only once.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
application/json- body
addressId?stringInbox address ID
url?stringactive?booleanbodyFormat?stringtext / html / markdown
stripQuotes?booleansigningSecret?stringheaders?array<>Custom request headers, at most 10. The list replaces all headers; values are stored encrypted and only returned masked.
payloadMode?stringraw sends the full email.received payload; template sends the rendered template
"raw""template"template?stringJSON template with {{variable}} placeholders: from, from_name, to, tag, subject, snippet, body_markdown, body_text, thread_id, message_id, internet_message_id, address_id, received_at, truncated, attachments_count, count, emails. Values are JSON-escaped, so put text variables inside quotes.
bodyMaxChars?integerTruncate the body to this many characters (100-20000, default 20000)
-9007199254740991 <= value <= 9007199254740991filters?Which mail to send; omitted lists keep their values, null clears all filters
maxPerMinute?integerAt most this many requests per minute (1-600); extra mail waits, it is not dropped
-9007199254740991 <= value <= 9007199254740991batchWindowSeconds?integerWait this many seconds (10-3600) and merge mail that arrives meanwhile into one request; 0 sends each email on its own
-9007199254740991 <= value <= 9007199254740991maxAttempts?integerAttempts before a delivery is marked failed (1-8, default 8)
-9007199254740991 <= value <= 9007199254740991[key: string]?unknownCreated
application/json- response
success*booleanendpoint*signingSecret?string[key: string]?unknowncurl -X POST 'https://api.mailly.site/inbox/webhook/endpoints' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "endpoint": { "property1": null, "property2": null }, "signingSecret": "string", "property1": null, "property2": null}Inbox
Inbound mail and threads: endpoints of the Mailly email API for AI agents, with parameters, responses and code samples.
All emails in a thread (with bodies, oldest first) GET
All emails in a thread (with bodies, oldest first) with the Mailly email API for AI agents: GET /inbox/threads/{threadId}. Parameters, request body, responses and code samples.