Approve and send a reviewed draft version
Approve and send a reviewed draft version with the Mailly email API for AI agents: POST /mail-drafts/{id}/approve. Parameters, request body, responses and code samples.
POST
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
id*stringLength
1 <= length <= 128application/json- body
revision*integerRange
0 < valuetext*stringLength
1 <= length <= 524288Draft action succeeded
application/json- response
success*boolean[key: string]?unknowncurl -X POST 'https://api.mailly.site/mail-drafts/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "revision": 1, "text": "string"}'{ "success": true, "property1": null, "property2": null}