Poll CLI authorization status
Poll CLI authorization status with the Mailly email API for AI agents: POST /cli/auth/poll. Parameters, request body, responses and code samples.
Returns 202 while pending; when approved, returns apiKey and deletes the KV record once; returns 410 when expired.
application/json- body
deviceToken*string32-128 character hexadecimal token generated by the CLI
[key: string]?unknownApproved (returns apiKey)
application/json- response
success*booleanstatus?stringapiKey?stringemail?stringerror?string[key: string]?unknowncurl -X POST 'https://api.mailly.site/cli/auth/poll' \ -H 'Content-Type: application/json' \ -d '{ "deviceToken": "string", "property1": null, "property2": null}'{ "success": true, "status": "string", "apiKey": "string", "email": "string", "error": "string", "property1": null, "property2": null}Human confirmation: prepare an inbox without granting agent access POST
Human confirmation: prepare an inbox without granting agent access with the Mailly email API for AI agents: POST /onboarding/{id}/decision. Parameters, request body, responses and code samples.
Read the draft a review link points to GET
Read the draft a review link points to with the Mailly email API for AI agents: GET /draft-review/view. Parameters, request body, responses and code samples.