Create or update the inbound webhook
Create or update the inbound webhook with the Mailly email API for AI agents: PUT /inbox/webhook. Parameters, request body, responses and code samples.
url must be public HTTPS. Omitted fields (bodyFormat, stripQuotes, headers, template and other delivery options) keep their current values; null resets an option to its default. Use either signingSecret (32-256 characters) or rotateSecret; a generated secret is returned only once in the response.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
application/json- body
url?stringactive?booleanbodyFormat?stringtext / html / markdown
stripQuotes?booleansigningSecret?stringrotateSecret?booleanheaders?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]?unknownUpdated
application/json- response
success*booleanwebhook*signingSecret?string[key: string]?unknowncurl -X PUT 'https://api.mailly.site/inbox/webhook' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "webhook": { "property1": null, "property2": null }, "signingSecret": "string", "property1": null, "property2": null}Create an inbox address POST
Create an inbox address with the Mailly email API for AI agents: POST /inbox/addresses. Parameters, request body, responses and code samples.
Delete a webhook endpoint DELETE
Delete a webhook endpoint with the Mailly email API for AI agents: DELETE /inbox/webhook/endpoints/{endpointId}. Parameters, request body, responses and code samples.