MethodPathSummaryAuth
GET/v1/admin/system-mail-settingsRead platform mail settingsSession
PUT/v1/admin/system-mail-settingsUpdate platform mail settingsSession

Contract file:api/control-system-mail-settings.openapi.yaml

Operation details

GET /v1/admin/system-mail-settings

Read platform mail settings

operationId
getPlatformSystemMailSettings
Auth
  • Session: the Bearer session of a signed-in control plane user, used by the customer in their own control plane; a plugin must never ask for it.
Required permissions

All of:system_configuration.read

Responses

getPlatformSystemMailSettings Responses
StatusDescription
200Current mail settings

Fields:schema: const cdnca.platform-system-mail-settings/v1 revision: integer updated_at?: string(date-time) value: Settings mail_secret_configured?: boolean mail_secret_provider?: string: aliyun / sendgrid mail_secret_fingerprint?: string

401Unauthenticated
403Permission denied
500Unexpected internal failure
503Settings storage or policy is unavailable

What to do on failure

  • 401 Check the credential format and whether it expired or was rotated.
  • 403 Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.
  • 500 Outcome unknown: read back by ID or list first, then decide whether to retry with the original Idempotency-Key.
  • 503 A dependency is unavailable: retry later with the original Idempotency-Key.

↑ Back to list

PUT /v1/admin/system-mail-settings

Update platform mail settings

operationId
updatePlatformSystemMailSettings
Auth
  • Session: the Bearer session of a signed-in control plane user, used by the customer in their own control plane; a plugin must never ask for it.
Required permissions

All of:system_configuration.manage

Description (from the contract)

Persists configuration only. Runtime settings are applied at process startup when the notification runtime is enabled; saving does not enable or reload a provider.

Parameters

updatePlatformSystemMailSettings Parameters
NameInTypeRequiredDescription
If-MatchheaderstringYes—
Idempotency-KeyheaderstringYes—
X-Request-IDheaderstringYes—

Request body

application/json · Required:Yes

updatePlatformSystemMailSettings Request body
NameTypeRequiredDescription
mail_secretstringNoOfficial mail service credential (DirectMail AccessKeySecret or SendGrid API key) for value.mail_provider. Omitted keeps the stored one; required when choosing an official provider whose credential is not stored.
valueobjectYes—

Responses

updatePlatformSystemMailSettings Responses
StatusDescription
200Saved mail settings

Fields:schema: const cdnca.platform-system-mail-settings/v1 revision: integer updated_at?: string(date-time) value: Settings mail_secret_configured?: boolean mail_secret_provider?: string: aliyun / sendgrid mail_secret_fingerprint?: string

400Validation error
401Unauthenticated
403Permission denied
409Revision or idempotency conflict
500Unexpected internal failure
503Settings storage or policy is unavailable

What to do on failure

  • 400 Fix the parameters or body per the field list; do not retry unchanged.
  • 401 Check the credential format and whether it expired or was rotated.
  • 403 Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.
  • 409 Read the current state first; a retry of the same operation keeps the original Idempotency-Key and body.
  • 500 Outcome unknown: read back by ID or list first, then decide whether to retry with the original Idempotency-Key.
  • 503 A dependency is unavailable: retry later with the original Idempotency-Key.

↑ Back to list