API reference
Identity and sessions API reference descriptions are provided in English to preserve the exact published contract.
Get organization authentication policy Replace organization authentication policy List the signed-in user's MFA credentials Revoke one MFA credential Start WebAuthn or TOTP enrollment Complete WebAuthn or TOTP enrollment Replace recovery codes and return the new codes once List the signed-in user's factors and start a WebAuthn step-up ceremony List organization identity providers Stage an identity provider configuration Verify and activate an identity provider Suspend an identity provider Exchange verified MFA or a one-use recovery code for a step-up token Reset all MFA factors for a user Revoke every active browser session for a user List active role bindings in the account scope Create an immutable role binding Revoke an immutable role binding List authoritative customer roles and permissions Discover the API key's account and region Get organization authentication policy GET /v1/accounts/{AC}/identity/auth-policy
getV1AccountsByAcIdentityAuthPolicy200
Required scope: any one of `roles:write`, `audit:read`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors .
Replace organization authentication policy PUT /v1/accounts/{AC}/identity/auth-policy
putV1AccountsByAcIdentityAuthPolicyIdempotency-Key required 200
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (9 fields) Request body Name Type Required Description autoDisableInactiveApiKeysboolean yes expectedVersioninteger (1–) yes mfaRequiredForAllRolesboolean yes passwordLoginEnabledboolean yes recoveryRevokesMfaboolean yes sessionAbsoluteTimeoutHoursinteger (1–2160) yes sessionIdleTimeoutMinutesinteger (15–1440) yes ssoEnforcedboolean yes 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
getV1AccountsByAcIdentityMfaCredentialsPaginated 200
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description limitquery · integer (1–100) cursorquery · string (max 2048 chars) ACpath · string (AC… SID) yes Account 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}
deleteV1AccountsByAcIdentityMfaCredentialsByCredentialid204
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID credentialIdpath · string (uuid) yes
Request body (1 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityMfaEnrollmentsIdempotency-Key required 201
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (3 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityMfaEnrollmentsByEnrollmentidCompleteIdempotency-Key required 201
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID enrollmentIdpath · string (uuid) yes
Request body (2 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityMfaRecoveryCodesRotateIdempotency-Key required 201
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (1 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityMfaVerificationOptionsIdempotency-Key required 200
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (1 fields) Request body Name Type Required Description 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
getV1AccountsByAcIdentityProvidersPaginated 200
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description limitquery · integer (1–100) cursorquery · string (max 2048 chars) ACpath · string (AC… SID) yes Account SID
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors .
Stage an identity provider configuration POST /v1/accounts/{AC}/identity/providers
postV1AccountsByAcIdentityProvidersIdempotency-Key required 201
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (6 fields) Request body Name Type Required Description credentialRefstring (max 512 chars) protocol"OIDC" | "SAML" | "SCIM" | "WEBAUTHN" | "TOTP" yes providerKeystring (pattern ^[a-z0-9][a-z0-9_-]*$, max 64 chars) yes publicConfigobject yes 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
postV1AccountsByAcIdentityProvidersByProvideridActivateIdempotency-Key required 200
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID providerIdpath · string (uuid) yes
Request body (2 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityProvidersByProvideridSuspendIdempotency-Key required 200
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 Name Type Required Description ACpath · string (AC… SID) yes Account SID providerIdpath · string (uuid) yes
Request body (2 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityStepUpIdempotency-Key required Paginated 201
Required scope: `api:access`.
Parameters
Parameters Name Type Required Description limitquery · integer (1–100) cursorquery · string (max 2048 chars) ACpath · string (AC… SID) yes Account SID
Request body (5 fields) Request body Name Type Required Description actionstring (max 256 chars) yes The 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
postV1AccountsByAcIdentityUsersByUsersidMfaResetIdempotency-Key required 200
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID userSidpath · string (US… SID) yes
Request body (1 fields) Request body Name Type Required Description 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
postV1AccountsByAcIdentityUsersByUsersidSessionsRevokeAllIdempotency-Key required 200
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID userSidpath · string (US… SID) yes
Request body (1 fields) Request body Name Type Required Description 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
getV1AccountsByAcRoleBindingsPaginated 200
Required scope: any one of `roles:write`, `audit:read`.
Parameters
Parameters Name Type Required Description limitquery · integer (1–100) cursorquery · string (max 2048 chars) ACpath · string (AC… SID) yes Account SID
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors .
Create an immutable role binding POST /v1/accounts/{AC}/role-bindings
postV1AccountsByAcRoleBindingsIdempotency-Key required 201
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID
Request body (8 fields) Request body Name Type Required Description 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}
deleteV1AccountsByAcRoleBindingsByBindingid204
Required scope: `roles:write`.
Parameters
Parameters Name Type Required Description ACpath · string (AC… SID) yes Account SID bindingIdpath · string (uuid) yes
Request body (2 fields) Request body Name Type Required Description 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
getV1AccountsByAcRolesPaginated 200
Required scope: any one of `roles:write`, `audit:read`.
Parameters
Parameters Name Type Required Description limitquery · integer (1–100) cursorquery · string (max 2048 chars) ACpath · string (AC… SID) yes Account SID
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors .
Discover the API key's account and region GET /v1/me
getV1Me200
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors .