GET /mail-pro/domains
List Mail Pro domains
Scopes mailpro:read / mailpro:write. Galon Mail Pro (hosted mailboxes) is served only when the service is open to the account (404 not_found otherwise). Errors: envelope {"error": {code, message_key, retryable, ...}}, mailpro.* codes.
API key (Bearer), on the public API endpoint.
Responses
| Status | Description | Body |
|---|---|---|
200 | Project domains | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/mail-pro/domains" \
-H "Authorization: Bearer $GALON_API_KEY"POST /mail-pro/domains
Attach a Mail Pro domain
Scopes mailpro:read / mailpro:write. Galon Mail Pro (hosted mailboxes) is served only when the service is open to the account (404 not_found otherwise). Errors: envelope {"error": {code, message_key, retryable, ...}}, mailpro.* codes. Returns the TXT proof and the DNS lines to publish.
API key (Bearer), on the public API endpoint.
Request body
application/json
| Field | Type | Description |
|---|---|---|
domain | string · required |
Responses
| Status | Description | Body |
|---|---|---|
201 | Domain attached | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/mail-pro/domains" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "string"}'