Write DNS records in one click
POST
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.
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
id*stringDomain record ID
application/json- body
provider?stringOnly cloudflare is supported for now
scope?stringDefault all
Value in
"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}