Contents

API reference

Identity and sessions

API reference descriptions are provided in English to preserve the exact published contract.

Get organization authentication policy

GET /v1/accounts/{AC}/identity/auth-policy

Required scope: any one of `roles:write`, `audit:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Replace organization authentication policy

PUT /v1/accounts/{AC}/identity/auth-policy

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (9 fields)
Request body
NameTypeRequiredDescription
autoDisableInactiveApiKeysbooleanyes
expectedVersioninteger (1–)yes
mfaRequiredForAllRolesbooleanyes
passwordLoginEnabledbooleanyes
recoveryRevokesMfabooleanyes
sessionAbsoluteTimeoutHoursinteger (1–2160)yes
sessionIdleTimeoutMinutesinteger (15–1440)yes
ssoEnforcedbooleanyes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List the signed-in user's MFA credentials

GET /v1/accounts/{AC}/identity/mfa/credentials

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Revoke one MFA credential

DELETE /v1/accounts/{AC}/identity/mfa/credentials/{credentialId}

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
credentialIdpath · string (uuid)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Start WebAuthn or TOTP enrollment

POST /v1/accounts/{AC}/identity/mfa/enrollments

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (3 fields)
Request body
NameTypeRequiredDescription
displayNamestring (max 128 chars)
method"WEBAUTHN" | "TOTP"yes
providerKeystring (pattern ^[a-z0-9][a-z0-9_-]*$, max 64 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Complete WebAuthn or TOTP enrollment

POST /v1/accounts/{AC}/identity/mfa/enrollments/{enrollmentId}/complete

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
enrollmentIdpath · string (uuid)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
ceremonyRefstring (max 1024 chars)yes
responsestring (max 32768 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Replace recovery codes and return the new codes once

POST /v1/accounts/{AC}/identity/mfa/recovery-codes/rotate

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (1 fields)
Request body
NameTypeRequiredDescription
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List the signed-in user's factors and start a WebAuthn step-up ceremony

POST /v1/accounts/{AC}/identity/mfa/verification-options

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (1 fields)
Request body
NameTypeRequiredDescription
actionstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List organization identity providers

GET /v1/accounts/{AC}/identity/providers

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Stage an identity provider configuration

POST /v1/accounts/{AC}/identity/providers

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (6 fields)
Request body
NameTypeRequiredDescription
credentialRefstring (max 512 chars)
protocol"OIDC" | "SAML" | "SCIM" | "WEBAUTHN" | "TOTP"yes
providerKeystring (pattern ^[a-z0-9][a-z0-9_-]*$, max 64 chars)yes
publicConfigobjectyes
reasonstring (max 2000 chars)yes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Verify and activate an identity provider

POST /v1/accounts/{AC}/identity/providers/{providerId}/activate

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
providerIdpath · string (uuid)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
reasonstring (max 2000 chars)yes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Suspend an identity provider

POST /v1/accounts/{AC}/identity/providers/{providerId}/suspend

Deprovisioning: the provider stops backing sign-in, MFA or SCIM at once, every browser session it authenticated is revoked, and it can be re-verified and activated later. Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
providerIdpath · string (uuid)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
reasonstring (max 2000 chars)yes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Exchange verified MFA or a one-use recovery code for a step-up token

POST /v1/accounts/{AC}/identity/step-up

Required scope: `api:access`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID
Request body (5 fields)
Request body
NameTypeRequiredDescription
actionstring (max 256 chars)yesThe action the grant is for, exactly as a STEP_UP_REQUIRED refusal names it in details[path=stepUpAction] (for example API_KEY_CREATE, API_KEY_ROTATE, WEBHOOK_ENDPOINT_CREATE, WEBHOOK_URL_CHANGE, WEBHOOK_SECRET_ROTATE, WEBHOOK_ENDPOINT_REENABLE). A grant for another name is not accepted. Step-up is for people signed in to the console; an API key with webhooks:write manages webhook endpoints without it.
assertionstring (max 32768 chars)yes
challengestring (max 256 chars)
method"WEBAUTHN" | "TOTP" | "RECOVERY_CODE"yes
providerKeystring (pattern ^[a-z0-9][a-z0-9_-]*$, max 64 chars)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Reset all MFA factors for a user

POST /v1/accounts/{AC}/identity/users/{userSid}/mfa/reset

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
userSidpath · string (US… SID)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Revoke every active browser session for a user

POST /v1/accounts/{AC}/identity/users/{userSid}/sessions/revoke-all

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
userSidpath · string (US… SID)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List active role bindings in the account scope

GET /v1/accounts/{AC}/role-bindings

Required scope: any one of `roles:write`, `audit:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Create an immutable role binding

POST /v1/accounts/{AC}/role-bindings

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (8 fields)
Request body
NameTypeRequiredDescription
environment"live" | "sandbox" | "both"
expiresAtstring (date-time)
inboxSidstring (IB… SID)
principalRefstring (max 128 chars)yes
principalType"USER" | "API_KEY"yes
rolestring (max 64 chars)yes
scopeKind"ORGANIZATION" | "ACCOUNT" | "SUBACCOUNT" | "INBOX"yes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Revoke an immutable role binding

DELETE /v1/accounts/{AC}/role-bindings/{bindingId}

Required scope: `roles:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
bindingIdpath · string (uuid)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
reasonstring (max 1000 chars)yes
stepUpTokenstring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List authoritative customer roles and permissions

GET /v1/accounts/{AC}/roles

Required scope: any one of `roles:write`, `audit:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Discover the API key's account and region

GET /v1/me

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.