Configuration catalog and per-level overrides.
GET /v1/api-keys
List the API keys of the tenant
Metadata only; neither secrets nor hashes are ever returned.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
apikeys:read, apikeys:write
- operationId:
listApiKeys
Responses
| Code | Description | Schema |
|---|
200 | The keys. | object |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/api-keys
Issue an API key
The secret and the full token appear only in this response; only a SHA-256 of the secret is
stored. A key can never carry scopes its issuer does not hold, and platform:admin is never
granted through the API.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
apikeys:write
- operationId:
createApiKey
Request body (application/json)
| Field | Type | Required | Description |
|---|
label | string | Yes | Name that identifies the key, for example the system that will use it (1 to 80 characters). |
scopes | list of ApiKeyScope | No | Defaults to messages:read and messages:write. Never more than the issuing key holds. |
environment | string (live or test) | No | Environment of the token: live or test. It becomes the prefix of the generated token. |
expiresAt | Timestamp | No | RFC 3339 instant in UTC. |
Responses
| Code | Description | Schema |
|---|
201 | The key with its secret. | ApiKeyIssued |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/api-keys/{keyId}/rotate
Rotate an API key
Issues a replacement with the same label, scopes and expiry, and retires the old key:
immediately, or after graceDays so clients can switch without downtime.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
apikeys:write
- operationId:
rotateApiKey
Parameters
| Name | In | Type | Required | Description |
|---|
keyId | path | string | Yes | Identifier of the API key (the keyId part of its token). |
Request body (application/json)
| Field | Type | Required | Description |
|---|
graceDays | integer | No | Days the old key keeps working after its replacement is issued (0 to 30). With 0 it is retired immediately. |
environment | string (live or test) | No | Environment of the replacement token: live or test. |
Responses
| Code | Description | Schema |
|---|
201 | The new key; rotatedFrom names the old one. | ApiKeyIssued |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
DELETE /v1/api-keys/{keyId}
Revoke an API key
Idempotent. The last active key of a tenant cannot be revoked (409 last_active_key); rotate it instead.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
apikeys:write
- operationId:
revokeApiKey
Parameters
| Name | In | Type | Required | Description |
|---|
keyId | path | string | Yes | Identifier of the API key (the keyId part of its token). |
Responses
| Code | Description | Schema |
|---|
204 | Revoked. | — |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/domains
List the domains of the tenant
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:read, domains:write
- operationId:
listDomains
Responses
| Code | Description | Schema |
|---|
200 | Every registered domain with its status. | object |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/domains
Register a sending domain
Creates the SES identity (Easy DKIM RSA-2048, custom MAIL FROM bounce.{domain}), binds it to
the tenant's SES tenant and configuration set and returns the exact DNS records to publish.
The domain stays PENDING until SES verifies DKIM (polled automatically, at most 72 hours),
then becomes ACTIVE, or FAILED with a diagnosis. A FAILED or removed domain can be
registered again. Registering is not idempotent: a second call answers 409 domain_exists.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:write
- operationId:
createDomain
Request body (application/json)
| Field | Type | Required | Description |
|---|
domain | string | Yes | Bare host name, for example example.com. Internationalized names are stored as punycode. |
Responses
| Code | Description | Schema |
|---|
201 | The domain with its DNS wizard. | Domain |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
502 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
503 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
GET /v1/domains/{domain}
Read a domain with its DNS records and status
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:read, domains:write
- operationId:
getDomain
Parameters
| Name | In | Type | Required | Description |
|---|
domain | path | string | Yes | Domain name registered by the tenant, for example example.com. |
Responses
| Code | Description | Schema |
|---|
200 | The domain. | Domain |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/domains/{domain}
Choose whether you will publish the optional SPF and DMARC records
With publishSpfDmarc: true the optional SPF and DMARC records are also checked in public
DNS (on this call and on every verification) and reported with warnings; with false (the
default) they are neither checked nor insisted upon. It never changes the domain status: only
DKIM gates ACTIVE.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:write
- operationId:
updateDomain
Parameters
| Name | In | Type | Required | Description |
|---|
domain | path | string | Yes | Domain name registered by the tenant, for example example.com. |
Request body (application/json)
| Field | Type | Required | Description |
|---|
publishSpfDmarc | boolean | Yes | true to also check the optional SPF and DMARC records in public DNS; false to stop checking them. |
Responses
| Code | Description | Schema |
|---|
200 | The domain with its refreshed DNS wizard. | Domain |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
DELETE /v1/domains/{domain}
Remove a domain
Deletes the SES identity and retires the domain; it stops being usable to send.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:write
- operationId:
deleteDomain
Parameters
| Name | In | Type | Required | Description |
|---|
domain | path | string | Yes | Domain name registered by the tenant, for example example.com. |
Responses
| Code | Description | Schema |
|---|
204 | Removed. | — |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
502 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
503 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
POST /v1/domains/{domain}/verify
Check the DNS records now
Asks SES for the current DKIM and MAIL FROM status and updates the domain. Safe to repeat.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
domains:write
- operationId:
verifyDomain
Parameters
| Name | In | Type | Required | Description |
|---|
domain | path | string | Yes | Domain name registered by the tenant, for example example.com. |
Responses
| Code | Description | Schema |
|---|
200 | The domain after the check. | Domain |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
502 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
503 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
GET /v1/sender-policy
Read the sender policy and Fast Onboarding switch
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:read, senders:write
- operationId:
getSenderPolicy
Responses
| Code | Description | Schema |
|---|
200 | The policy in force (smtp.senderPolicy, smtp.fastOnboarding.enabled). | SenderPolicy |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/sender-policy
Change the sender policy and/or Fast Onboarding
Writes tenant-level overrides (they appear in the settings history). WHOLE_DOMAIN needs at
least one ACTIVE domain. Fast Onboarding sends through the shared platform domain, with the
original address in Reply-To, while the tenant's own domain is not verified.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:write
- operationId:
putSenderPolicy
Request body (application/json)
| Field | Type | Required | Description |
|---|
policy | SenderPolicyName | No | ALLOWLIST only addresses registered as senders may use the tenant; WHOLE_DOMAIN any address of a verified domain (registered senders can still be disabled). |
fastOnboarding | boolean | No | Turns Fast Onboarding on or off: while the tenant's own domain is not verified, mail goes out through the shared platform domain. |
Responses
| Code | Description | Schema |
|---|
200 | The policy after the change. | SenderPolicy |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/senders
List the authorized senders
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:read, senders:write
- operationId:
listSenders
Responses
| Code | Description | Schema |
|---|
200 | The senders and the policy in force. | SenderPolicy |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/senders/{email}
Read one sender and its verification status
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:read, senders:write
- operationId:
getSender
Parameters
| Name | In | Type | Required | Description |
|---|
email | path | string (email) | Yes | Sender address, percent-encoded. |
Responses
| Code | Description | Schema |
|---|
200 | The sender, with verification.status (PENDING, VERIFIED or EXPIRED). | Sender |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/senders/{email}
Authorize or update a sender address
The address must belong to a domain registered by the tenant (or, with Fast Onboarding, to a
domain nobody else owns). An empty body authorizes the sender; enabled: false blocks it
under any policy. Under Fast Onboarding, a signed one-time mailbox verification link is sent
to the real address (or re-sent via sendVerification: true). 201 when created, 200 when updated.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:write
- operationId:
putSender
Parameters
| Name | In | Type | Required | Description |
|---|
email | path | string (email) | Yes | Sender address, percent-encoded. |
Request body (application/json)
| Field | Type | Required | Description |
|---|
enabled | boolean | No | false blocks the sender under any policy. Defaults to true. |
displayName | string | No | Display name of the sender (up to 200 characters). |
sendVerification | boolean | No | Trigger sending a signed mailbox verification e-mail to the real sender address. |
Responses
| Code | Description | Schema |
|---|
200 | Updated. | Sender |
201 | Created. | Sender |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
502 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
503 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
DELETE /v1/senders/{email}
Remove a sender address
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
senders:write
- operationId:
deleteSender
Parameters
| Name | In | Type | Required | Description |
|---|
email | path | string (email) | Yes | Sender address, percent-encoded. |
Responses
| Code | Description | Schema |
|---|
204 | Removed. | — |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /public/v1/senders/verify
Confirm mailbox ownership for Fast Onboarding
Public. Validates the signed token sent to the sender's real e-mail address and marks the
tenant sender record (SENDER#) verified with its configured expiration.
- Authentication: public, no API key required
- operationId:
verifySenderEmail
Parameters
| Name | In | Type | Required | Description |
|---|
token | query | string | Yes | Signed HMAC verification token delivered to the sender's mailbox. |
Responses
| Code | Description | Schema |
|---|
200 | Mailbox verified cleanly. | SenderVerifyResponse |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
503 | SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After). | Problem |
GET /v1/settings/catalog
Read the catalog of parameters
Types, ranges, defaults and the levels at which each parameter can be overridden, filtered
to what the caller may see: tenant credentials do not see infrastructure parameters.
Every item states which levels this caller may edit through the API (editableLevels;
empty means read-only, e.g. platform-level parameters for a tenant), so a console can mirror
the validation rules without hard-coding them.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
messages:read, settings:read
- operationId:
getSettingsCatalog
Responses
| Code | Description | Schema |
|---|
200 | The catalog. | SettingsCatalog |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/tenants/{tenantId}/settings
Read the settings of a tenant
A tenant credential can read only its own tenant; a platform administrator any tenant.
With effective=true every visible key is returned with its resolved value, the level
that set it, the explanation (reason), the value originally requested and, when a ceiling
of a higher level capped it, which level imposed it. The ETag is the settings version.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
settings:read
- operationId:
getTenantSettings
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
effective | query | boolean | No | Also return the resolved value of every key and the level it comes from. |
Responses
| Code | Description | Schema |
|---|
200 | Tenant-level overrides and, on request, effective values. | SettingsDocument |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/tenants/{tenantId}/settings
Replace the tenant-level overrides
Validated against the catalog and the ceilings of the plan and the platform.
Creates a new audited version (author, date, comment). Not retroactive unless the catalog
says so. Infrastructure parameters are rejected (infra_parameter).
Optimistic concurrency: send expectedVersion in the body or the ETag of a previous read
as If-Match; a mismatch answers 409 with the current ETag. When both are present they
must agree.
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
settings:write
- operationId:
putTenantSettings
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
If-Match | header | string | No | ETag of the version being replaced, e.g. "v3". |
Request body (application/json)
| Field | Type | Required | Description |
|---|
settings | SettingsOverrides | Yes | Map of catalog key to value. Unknown keys are rejected. |
expectedVersion | integer | No | Optimistic lock; the update fails with 409 if the current version differs. |
comment | string | No | Reason for the change, recorded in the settings history (up to 500 characters). |
Responses
| Code | Description | Schema |
|---|
200 | New version stored, with the resolved values and what changed. | SettingsDocument |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | expectedVersion does not match the current version. | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/tenants/{tenantId}/settings/history
List the versions of the tenant settings
Newest first. Each version carries who changed it (updatedBy), when (updatedAt), the
reason (comment) and the old to new difference against the previous version (changes).
- Authentication: API key in the
Authorization: Bearer header
- Scopes: at least one of
settings:read
- operationId:
listTenantSettingsHistory
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
cursor | query | Cursor | No | Opaque pagination token. Do not parse or build it. |
limit | query | integer | No | Maximum number of items per page, from 1 to 200 (default 50). |
Responses
| Code | Description | Schema |
|---|
200 | A page of versions. | SettingsHistoryPage |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/admin/plans
List the commercial plans
Platform administrators only (platform:admin scope). Lists the plans configured at
deployment (source: config, read-only) and the ones created through this API
(source: api).
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
listPlans
Responses
| Code | Description | Schema |
|---|
200 | The plans with the version of their settings. | object |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/admin/plans
Create a commercial plan
Platform administrators only. Stores the plan in the configuration table; plans configured
at deployment keep their ids reserved. A new plan has no overrides until its settings are
written; tenants can be created on it or moved to it right away.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
createPlan
Request body (application/json)
| Field | Type | Required | Description |
|---|
planId | string | Yes | Identifier of the new plan: lowercase letters, digits and hyphens. |
name | string | Yes | Display name of the plan (1 to 100 characters). |
description | string | No | Free-text description of the plan (up to 500 characters). |
Responses
| Code | Description | Schema |
|---|
201 | The stored plan. | object |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/admin/plans/{planId}/settings
Read the settings of a plan
Platform administrators only. The ETag is the settings version.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
getPlanSettings
Parameters
| Name | In | Type | Required | Description |
|---|
planId | path | string | Yes | Identifier of the plan. |
Responses
| Code | Description | Schema |
|---|
200 | Plan-level overrides. | SettingsDocument |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/admin/plans/{planId}/settings
Replace the plan-level overrides
Platform administrators only. Validated against the platform ceilings; for numeric
parameters the plan value is in turn the ceiling of its tenants. Same concurrency rules
as the tenant update.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
putPlanSettings
Parameters
| Name | In | Type | Required | Description |
|---|
planId | path | string | Yes | Identifier of the plan. |
If-Match | header | string | No | ETag of the settings version being replaced, e.g. "v3". |
Request body (application/json)
| Field | Type | Required | Description |
|---|
settings | SettingsOverrides | Yes | Map of catalog key to value. Unknown keys are rejected. |
expectedVersion | integer | No | Optimistic lock; the update fails with 409 if the current version differs. |
comment | string | No | Reason for the change, recorded in the settings history (up to 500 characters). |
Responses
| Code | Description | Schema |
|---|
200 | New version stored. | SettingsDocument |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | expectedVersion does not match the current version. | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/admin/plans/{planId}/settings/history
List the versions of the plan settings
Platform administrators only. Newest first, with the old to new changes.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
listPlanSettingsHistory
Parameters
| Name | In | Type | Required | Description |
|---|
planId | path | string | Yes | Identifier of the plan. |
cursor | query | Cursor | No | Opaque pagination token. Do not parse or build it. |
limit | query | integer | No | Maximum number of items per page, from 1 to 200 (default 50). |
Responses
| Code | Description | Schema |
|---|
200 | A page of versions. | SettingsHistoryPage |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/admin/tenants/{tenantId}/plan
Assign a plan to a tenant
Platform administrators only. The tenant's overrides are kept; those above the ceilings of
the new plan are listed in clampedKeys and resolve to the ceiling. Optimistic concurrency
on the tenant record through expectedVersion or If-Match.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
assignTenantPlan
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
If-Match | header | string | No | ETag of the tenant record version returned by a previous read. Alternative to expectedVersion. |
Request body (application/json)
| Field | Type | Required | Description |
|---|
planId | string | Yes | Plan to assign to the tenant. It must exist. |
expectedVersion | integer | No | Version of the tenant record the caller read; the change fails with 409 if the current version differs. |
comment | string | No | Reason for the change (up to 500 characters). |
Responses
| Code | Description | Schema |
|---|
200 | Plan assigned. | object |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | expectedVersion does not match the current version. | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/admin/tenants
List tenants (platform administrator)
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
listTenants
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | TenantLifecycleStatus | No | Administrative lifecycle of a tenant. DELETED is terminal. |
cursor | query | Cursor | No | Opaque pagination token. Do not parse or build it. |
limit | query | integer | No | Maximum number of items per page, from 1 to 200 (default 50). |
Responses
| Code | Description | Schema |
|---|
200 | A page of tenants. | object |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/admin/tenants
Create a tenant (platform administrator)
Creates an ACTIVE tenant. With apiKey (an object, possibly empty) the first key is issued
and returned once in the response; it defaults to every tenant scope so the tenant can
onboard itself (domains, senders, keys). The plan must exist (404 plan_not_found).
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
createTenant
Request body (application/json)
| Field | Type | Required | Description |
|---|
name | string | Yes | Display name of the tenant (1 to 120 characters). |
planId | string | Yes | Plan the tenant starts on. It must exist. |
tenantId | string | No | Generated when omitted. |
apiKey | ApiKeyRequestOptional | No | Like ApiKeyRequest for the first key of a tenant; label defaults to initial and scopes to every tenant scope. |
Responses
| Code | Description | Schema |
|---|
201 | The tenant, with apiKey when requested. | Tenant |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
GET /v1/admin/tenants/{tenantId}
Read a tenant (platform administrator)
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
getTenant
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
Responses
| Code | Description | Schema |
|---|
200 | The tenant, including a deleted one. | Tenant |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
PUT /v1/admin/tenants/{tenantId}/status
Suspend, reactivate or delete a tenant (platform administrator)
SUSPENDED and DELETED make the authorizer reject the tenant's keys. DELETED is terminal
and also deletes the tenant's SES identities. Repeating the current status is a no-op.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
setTenantStatus
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
Request body (application/json)
| Field | Type | Required | Description |
|---|
status | TenantLifecycleStatus | Yes | Administrative lifecycle of a tenant. DELETED is terminal. |
reason | string | No | Reason for the change (up to 500 characters). |
Responses
| Code | Description | Schema |
|---|
200 | The tenant after the change. | Tenant |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
POST /v1/admin/tenants/{tenantId}/api-keys
Issue an API key for a tenant (platform administrator)
Recovery path for a tenant that lost every credential. The secret is shown once.
- Authentication: API key in the
Authorization: Bearer header
- Scopes:
platform:admin only
- operationId:
createTenantApiKey
Parameters
| Name | In | Type | Required | Description |
|---|
tenantId | path | string | Yes | Identifier of the tenant. |
Request body (application/json)
| Field | Type | Required | Description |
|---|
label | string | Yes | Name that identifies the key, for example the system that will use it (1 to 80 characters). |
scopes | list of ApiKeyScope | No | Defaults to messages:read and messages:write. Never more than the issuing key holds. |
environment | string (live or test) | No | Environment of the token: live or test. It becomes the prefix of the generated token. |
expiresAt | Timestamp | No | RFC 3339 instant in UTC. |
Responses
| Code | Description | Schema |
|---|
201 | The key with its secret. | ApiKeyIssued |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
409 | The request conflicts with the current state (duplicate, claimed domain, last key). | Problem |
413 | The body exceeds the allowed size (payload_too_large). | Problem |
422 | The request is well formed but cannot be accepted. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |