MailboxesDomains

Add mailboxes to a domain

POST
/v1/mailbox-domains/{id}/mailboxes

Orders mailboxes on a connected domain by its id: the same as POST /v1/mailboxes naming the domain. The first ones or more later, up to 10 in all. Each month is held from your wallet now and only taken once that mailbox is set up, so one that fails costs nothing. The first mailbox on a domain administers its Google account. Follow mailbox.active or poll each mailbox; then read its sign-in details from the credentials route. Send an Idempotency-Key header so a retry never orders twice.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

A value unique to this request, such as a UUID. A retry with the same key within 24 hours returns the first outcome instead of running again.

Length8 <= length <= 200

Request Body

application/json
  1. body
mailboxes*array<>
Items1 <= items <= 10

Response Body

Created

application/json
  1. response

Created

data*array<>
curl -X POST "https://example.com/v1/mailbox-domains/mdm_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/mailboxes" \  -H "Idempotency-Key: 2f1c9a52-7d0e-4a8e-9a53-0c1f6f3f2b11" \  -H "Content-Type: application/json" \  -d '{    "mailboxes": [      {        "username": "jo",        "firstName": "Jo",        "lastName": "Bloggs"      }    ]  }'
{  "data": [    {      "id": "mbx_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "mailboxDomainId": "mdm_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "email": "[email protected]",      "username": "jo",      "firstName": "Jo",      "lastName": "Bloggs",      "profilePictureUrl": "string",      "isAdmin": true,      "status": "queued",      "setupStage": "configuring_dns",      "failure": {        "code": "DOMAIN_IN_USE_GOOGLE",        "message": "Domain is already in use in Google Workspace."      },      "customerId": "cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "activatedAt": "2026-10-07T11:04:31.000Z",      "actor": {        "kind": "user",        "label": "string"      },      "createdAt": "2026-10-07T11:04:31.000Z"    }  ]}