Saltar al contenido principal

Settings

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​

CodeDescriptionSchema
200The keys.object
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
500Unexpected 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)​

FieldTypeRequiredDescription
labelstringYesName that identifies the key, for example the system that will use it (1 to 80 characters).
scopeslist of ApiKeyScopeNoDefaults to messages:read and messages:write. Never more than the issuing key holds.
environmentstring (live or test)NoEnvironment of the token: live or test. It becomes the prefix of the generated token.
expiresAtTimestampNoRFC 3339 instant in UTC.

Responses​

CodeDescriptionSchema
201The key with its secret.ApiKeyIssued
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected 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​

NameInTypeRequiredDescription
keyIdpathstringYesIdentifier of the API key (the keyId part of its token).

Request body (application/json)​

FieldTypeRequiredDescription
graceDaysintegerNoDays the old key keeps working after its replacement is issued (0 to 30). With 0 it is retired immediately.
environmentstring (live or test)NoEnvironment of the replacement token: live or test.

Responses​

CodeDescriptionSchema
201The new key; rotatedFrom names the old one.ApiKeyIssued
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected 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​

NameInTypeRequiredDescription
keyIdpathstringYesIdentifier of the API key (the keyId part of its token).

Responses​

CodeDescriptionSchema
204Revoked.—
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
500Unexpected 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​

CodeDescriptionSchema
200Every registered domain with its status.object
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
500Unexpected 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)​

FieldTypeRequiredDescription
domainstringYesBare host name, for example example.com. Internationalized names are stored as punycode.

Responses​

CodeDescriptionSchema
201The domain with its DNS wizard.Domain
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
502SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After).Problem
503SES 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​

NameInTypeRequiredDescription
domainpathstringYesDomain name registered by the tenant, for example example.com.

Responses​

CodeDescriptionSchema
200The domain.Domain
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
500Unexpected 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​

NameInTypeRequiredDescription
domainpathstringYesDomain name registered by the tenant, for example example.com.

Request body (application/json)​

FieldTypeRequiredDescription
publishSpfDmarcbooleanYestrue to also check the optional SPF and DMARC records in public DNS; false to stop checking them.

Responses​

CodeDescriptionSchema
200The domain with its refreshed DNS wizard.Domain
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
500Unexpected 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​

NameInTypeRequiredDescription
domainpathstringYesDomain name registered by the tenant, for example example.com.

Responses​

CodeDescriptionSchema
204Removed.—
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
502SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After).Problem
503SES 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​

NameInTypeRequiredDescription
domainpathstringYesDomain name registered by the tenant, for example example.com.

Responses​

CodeDescriptionSchema
200The domain after the check.Domain
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
502SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After).Problem
503SES 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​

CodeDescriptionSchema
200The policy in force (smtp.senderPolicy, smtp.fastOnboarding.enabled).SenderPolicy
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
500Unexpected 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)​

FieldTypeRequiredDescription
policySenderPolicyNameNoALLOWLIST only addresses registered as senders may use the tenant; WHOLE_DOMAIN any address of a verified domain (registered senders can still be disabled).
fastOnboardingbooleanNoTurns Fast Onboarding on or off: while the tenant's own domain is not verified, mail goes out through the shared platform domain.

Responses​

CodeDescriptionSchema
200The policy after the change.SenderPolicy
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected 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​

CodeDescriptionSchema
200The senders and the policy in force.SenderPolicy
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
500Unexpected 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​

NameInTypeRequiredDescription
emailpathstring (email)YesSender address, percent-encoded.

Responses​

CodeDescriptionSchema
200The sender, with verification.status (PENDING, VERIFIED or EXPIRED).Sender
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
500Unexpected 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​

NameInTypeRequiredDescription
emailpathstring (email)YesSender address, percent-encoded.

Request body (application/json)​

FieldTypeRequiredDescription
enabledbooleanNofalse blocks the sender under any policy. Defaults to true.
displayNamestringNoDisplay name of the sender (up to 200 characters).
sendVerificationbooleanNoTrigger sending a signed mailbox verification e-mail to the real sender address.

Responses​

CodeDescriptionSchema
200Updated.Sender
201Created.Sender
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
502SES rejected the operation (ses_error) or is unavailable (ses_unavailable, 503 with Retry-After).Problem
503SES 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​

NameInTypeRequiredDescription
emailpathstring (email)YesSender address, percent-encoded.

Responses​

CodeDescriptionSchema
204Removed.—
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tokenquerystringYesSigned HMAC verification token delivered to the sender's mailbox.

Responses​

CodeDescriptionSchema
200Mailbox verified cleanly.SenderVerifyResponse
400The 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
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503SES 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​

CodeDescriptionSchema
200The catalog.SettingsCatalog
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.
effectivequerybooleanNoAlso return the resolved value of every key and the level it comes from.

Responses​

CodeDescriptionSchema
200Tenant-level overrides and, on request, effective values.SettingsDocument
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.
If-MatchheaderstringNoETag of the version being replaced, e.g. "v3".

Request body (application/json)​

FieldTypeRequiredDescription
settingsSettingsOverridesYesMap of catalog key to value. Unknown keys are rejected.
expectedVersionintegerNoOptimistic lock; the update fails with 409 if the current version differs.
commentstringNoReason for the change, recorded in the settings history (up to 500 characters).

Responses​

CodeDescriptionSchema
200New version stored, with the resolved values and what changed.SettingsDocument
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409expectedVersion does not match the current version.Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.
cursorqueryCursorNoOpaque pagination token. Do not parse or build it.
limitqueryintegerNoMaximum number of items per page, from 1 to 200 (default 50).

Responses​

CodeDescriptionSchema
200A page of versions.SettingsHistoryPage
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

CodeDescriptionSchema
200The plans with the version of their settings.object
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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)​

FieldTypeRequiredDescription
planIdstringYesIdentifier of the new plan: lowercase letters, digits and hyphens.
namestringYesDisplay name of the plan (1 to 100 characters).
descriptionstringNoFree-text description of the plan (up to 500 characters).

Responses​

CodeDescriptionSchema
201The stored plan.object
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
planIdpathstringYesIdentifier of the plan.

Responses​

CodeDescriptionSchema
200Plan-level overrides.SettingsDocument
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
planIdpathstringYesIdentifier of the plan.
If-MatchheaderstringNoETag of the settings version being replaced, e.g. "v3".

Request body (application/json)​

FieldTypeRequiredDescription
settingsSettingsOverridesYesMap of catalog key to value. Unknown keys are rejected.
expectedVersionintegerNoOptimistic lock; the update fails with 409 if the current version differs.
commentstringNoReason for the change, recorded in the settings history (up to 500 characters).

Responses​

CodeDescriptionSchema
200New version stored.SettingsDocument
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409expectedVersion does not match the current version.Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
planIdpathstringYesIdentifier of the plan.
cursorqueryCursorNoOpaque pagination token. Do not parse or build it.
limitqueryintegerNoMaximum number of items per page, from 1 to 200 (default 50).

Responses​

CodeDescriptionSchema
200A page of versions.SettingsHistoryPage
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.
If-MatchheaderstringNoETag of the tenant record version returned by a previous read. Alternative to expectedVersion.

Request body (application/json)​

FieldTypeRequiredDescription
planIdstringYesPlan to assign to the tenant. It must exist.
expectedVersionintegerNoVersion of the tenant record the caller read; the change fails with 409 if the current version differs.
commentstringNoReason for the change (up to 500 characters).

Responses​

CodeDescriptionSchema
200Plan assigned.object
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409expectedVersion does not match the current version.Problem
413The body exceeds the allowed size (payload_too_large).Problem
429Rate limit or quota exceeded.Problem
500Unexpected 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​

NameInTypeRequiredDescription
statusqueryTenantLifecycleStatusNoAdministrative lifecycle of a tenant. DELETED is terminal.
cursorqueryCursorNoOpaque pagination token. Do not parse or build it.
limitqueryintegerNoMaximum number of items per page, from 1 to 200 (default 50).

Responses​

CodeDescriptionSchema
200A page of tenants.object
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
500Unexpected 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)​

FieldTypeRequiredDescription
namestringYesDisplay name of the tenant (1 to 120 characters).
planIdstringYesPlan the tenant starts on. It must exist.
tenantIdstringNoGenerated when omitted.
apiKeyApiKeyRequestOptionalNoLike ApiKeyRequest for the first key of a tenant; label defaults to initial and scopes to every tenant scope.

Responses​

CodeDescriptionSchema
201The tenant, with apiKey when requested.Tenant
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.

Responses​

CodeDescriptionSchema
200The tenant, including a deleted one.Tenant
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.

Request body (application/json)​

FieldTypeRequiredDescription
statusTenantLifecycleStatusYesAdministrative lifecycle of a tenant. DELETED is terminal.
reasonstringNoReason for the change (up to 500 characters).

Responses​

CodeDescriptionSchema
200The tenant after the change.Tenant
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
500Unexpected 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​

NameInTypeRequiredDescription
tenantIdpathstringYesIdentifier of the tenant.

Request body (application/json)​

FieldTypeRequiredDescription
labelstringYesName that identifies the key, for example the system that will use it (1 to 80 characters).
scopeslist of ApiKeyScopeNoDefaults to messages:read and messages:write. Never more than the issuing key holds.
environmentstring (live or test)NoEnvironment of the token: live or test. It becomes the prefix of the generated token.
expiresAtTimestampNoRFC 3339 instant in UTC.

Responses​

CodeDescriptionSchema
201The key with its secret.ApiKeyIssued
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
409The request conflicts with the current state (duplicate, claimed domain, last key).Problem
413The body exceeds the allowed size (payload_too_large).Problem
422The request is well formed but cannot be accepted.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem