Create a plan subscription Checkout
Create a plan subscription Checkout with the Mailly email API for AI agents: POST /billing/subscription/checkout. Parameters, request body, responses and code samples.
POST
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
idempotency-key*stringMatch
^[a-zA-Z0-9_-]{16,100}$application/json- body
plan_id*stringLength
1 <= length <= 40Stripe Checkout URL
application/json- response
success*booleanid*stringurl*string[key: string]?unknowncurl -X POST 'https://api.mailly.site/billing/subscription/checkout' \ -H 'idempotency-key: string' \ -H 'Content-Type: application/json' \ -d '{ "plan_id": "string"}'{ "success": true, "id": "string", "url": "string", "property1": null, "property2": null}Create a custom-amount USD top-up order (amount in cents, minimum 500) POST
Create a custom-amount USD top-up order (amount in cents, minimum 500) with the Mailly email API for AI agents: POST /billing/checkout. Parameters, request body, responses and code samples.
Download usage logs as CSV GET
Download usage logs as CSV with the Mailly email API for AI agents: GET /logs/download. Parameters, request body, responses and code samples.