Write DNS records in one click
Write DNS records in one click with the Mailly email API for AI agents: POST /sender-domains/{id}/apply-dns. Parameters, request body, responses and code samples.
Writes the DNS records Mailly needs directly into your zone using the Cloudflare token (saved or passed in this request); idempotent, and conflicting records are not overwritten. The body is optional.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
id*stringDomain record ID
application/json- body
provider?stringOnly cloudflare is supported for now
scope?stringDefault all
"outbound""inbound""all"apiToken?stringCloudflare token for this request (takes precedence over the saved one)
[key: string]?unknownDNS write result
application/json- response
success*boolean[key: string]?unknowncurl -X POST 'https://api.mailly.site/sender-domains/string/apply-dns' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "property1": null, "property2": null}Submit a custom domain request POST
Submit a custom domain request with the Mailly email API for AI agents: POST /sender-domains. Parameters, request body, responses and code samples.
Delivery
Delivery events and webhooks: endpoints of the Mailly email API for AI agents, with parameters, responses and code samples.