Update a webhook endpoint
Update a webhook endpoint with the Mailly email API for AI agents: PATCH /inbox/webhook/endpoints/{endpointId}. Parameters, request body, responses and code samples.
Omitted fields keep their current values; null resets a delivery option to its default. Use either signingSecret or rotateSecret; a generated secret is returned only once.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
endpointId*stringWebhook endpoint ID
application/json- body
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 <= 9007199254740991rotateSecret?boolean[key: string]?unknownUpdated
application/json- response
success*booleanendpoint*signingSecret?string[key: string]?unknowncurl -X PATCH 'https://api.mailly.site/inbox/webhook/endpoints/string' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "endpoint": { "property1": null, "property2": null }, "signingSecret": "string", "property1": null, "property2": null}Translate text segments of an email POST
Translate text segments of an email with the Mailly email API for AI agents: POST /inbox/messages/{id}/translations. Parameters, request body, responses and code samples.
Update email translation settings PUT
Update email translation settings with the Mailly email API for AI agents: PUT /translation-settings. Parameters, request body, responses and code samples.