๐งช Sandbox only for now. This endpoint is currently available in the sandbox environment only; live access is coming soon.
mailboxes buys one new seat and creates one mailbox. Seat purchase is confirmed synchronously; the actual mailbox creation processes in the background.active and the admin mailbox must be active. A past_due workspace is rejected with 409; renew it first with POST /gws/renew.mailboxes:writecurl --location 'https://api.resellerstack.ai/api/v1/create-mailbox' \
--header 'rs-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"domain": "example.com",
"mailboxes": [
{
"username": "alice",
"firstName": "Alice",
"lastName": "Smith",
"password": "Str0ng!Pass#2024"
}
],
"collectionMethod": "MANUAL",
"paymentReference": "order-9871"
}'{
"status": 202,
"message": "Seats and mailboxes queued",
"data": {
"domain": "example.com",
"status": "provisioning",
"invoiceUrl": null,
"invoiceNumber": null,
"mailboxes": [
{
"email": "alice@example.com",
"isAdmin": false,
"status": "provisioning"
}
],
"checkoutUrl": null
}
}