The user object represents a user that has successfully signed up to your application.
Returns a list of all users. The users are returned sorted by creation date, with the newest users appearing first.
Success
Request was not successful
Authentication invalid
Invalid request parameters
[- {
- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
]
Creates a new user. Your user management settings determine how you should setup your user model.
Any email address and phone number created using this method will be marked as verified.
Note: If you are performing a migration, check out our guide on zero downtime migrations.
A rate limit rule of 20 requests per 10 seconds is applied to this endpoint.
external_id | string or null The ID of the user as used in your external systems or your previous authentication solution. Must be unique across your instance. |
first_name | string or null The first name to assign to the user |
last_name | string or null The last name to assign to the user |
email_address | Array of strings Email addresses to add to the user. Must be unique across your instance. The first email address will be set as the user's primary email address. |
phone_number | Array of strings Phone numbers to add to the user. Must be unique across your instance. The first phone number will be set as the user's primary phone number. |
web3_wallet | Array of strings Web3 wallets to add to the user. Must be unique across your instance. The first wallet will be set as the user's primary wallet. |
username | string or null The username to give to the user. It must be unique across your instance. |
password | string or null The plaintext password to give the user. Must be at least 8 characters long, and can not be in any list of hacked passwords. |
password_digest | string In case you already have the password digests and not the passwords, you can use them for the newly created user via this property.
The digests should be generated with one of the supported algorithms.
The hashing algorithm can be specified using the |
password_hasher | string (PasswordHasher) The hashing algorithm that was used to generate the password digest. The algorithms we support at the moment are Each of the supported hashers expects the incoming digest to be in a particular format. See the Clerk docs for more information. |
skip_password_checks | boolean When set to |
skip_password_requirement | boolean When set to |
totp_secret | string In case TOTP is configured on the instance, you can provide the secret to enable it on the newly created user without the need to reset it. Please note that currently the supported options are:
|
backup_codes | Array of strings If Backup Codes are configured on the instance, you can provide them to enable it on the newly created user without the need to reset them. You must provide the backup codes in plain format or the corresponding bcrypt digest. |
object Metadata saved on the user, that is visible to both your Frontend and Backend APIs | |
object Metadata saved on the user, that is only visible to your Backend API | |
object Metadata saved on the user, that can be updated from both the Frontend and Backend APIs. Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. | |
delete_self_enabled | boolean or null If enabled, user can delete themselves via FAPI. |
legal_accepted_at | string or null A custom timestamp denoting when the user accepted legal requirements, specified in RFC3339 format (e.g. |
skip_legal_checks | boolean or null When set to |
create_organization_enabled | boolean or null If enabled, user can create organizations via FAPI. |
create_organizations_limit | integer or null The maximum number of organizations the user can create. 0 means unlimited. |
created_at | string A custom date/time denoting when the user signed up to the application, specified in RFC3339 format (e.g. |
Success
Request was not successful
Authentication invalid
Authentication invalid
Invalid request parameters
{- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "email_address": [
- "string"
], - "phone_number": [
- "string"
], - "web3_wallet": [
- "string"
], - "username": "string",
- "password": "string",
- "password_digest": "string",
- "password_hasher": "string",
- "skip_password_checks": true,
- "skip_password_requirement": true,
- "totp_secret": "string",
- "backup_codes": [
- "string"
], - "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "delete_self_enabled": true,
- "legal_accepted_at": "string",
- "skip_legal_checks": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "created_at": "string"
}
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Returns a total count of all users that match the given filtering criteria.
Success
Invalid request parameters
{- "object": "total_count",
- "total_count": 0
}
Retrieve the details of a user
Success
Request was not successful
Authentication invalid
Resource not found
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Update a user's attributes.
You can set the user's primary contact identifiers (email address and phone numbers) by updating the primary_email_address_id
and primary_phone_number_id
attributes respectively.
Both IDs should correspond to verified identifications that belong to the user.
You can remove a user's username by setting the username attribute to null or the blank string "". This is a destructive action; the identification will be deleted forever. Usernames can be removed only if they are optional in your instance settings and there's at least one other identifier which can be used for authentication.
This endpoint allows changing a user's password. When passing the password
parameter directly you have two further options.
You can ignore the password policy checks for your instance by setting the skip_password_checks
parameter to true
.
You can also choose to sign the user out of all their active sessions on any device once the password is updated. Just set sign_out_of_other_sessions
to true
.
external_id | string or null The ID of the user as used in your external systems or your previous authentication solution. Must be unique across your instance. |
first_name | string or null The first name to assign to the user |
last_name | string or null The last name to assign to the user |
primary_email_address_id | string The ID of the email address to set as primary. It must be verified, and present on the current user. |
notify_primary_email_address_changed | boolean Default: false If set to |
primary_phone_number_id | string The ID of the phone number to set as primary. It must be verified, and present on the current user. |
primary_web3_wallet_id | string The ID of the web3 wallets to set as primary. It must be verified, and present on the current user. |
username | string or null The username to give to the user. It must be unique across your instance. |
profile_image_id | string or null The ID of the image to set as the user's profile image |
password | string or null The plaintext password to give the user. Must be at least 8 characters long, and can not be in any list of hacked passwords. |
password_digest | string In case you already have the password digests and not the passwords, you can use them for the newly created user via this property.
The digests should be generated with one of the supported algorithms.
The hashing algorithm can be specified using the |
password_hasher | string (PasswordHasher) The hashing algorithm that was used to generate the password digest. The algorithms we support at the moment are Each of the supported hashers expects the incoming digest to be in a particular format. See the Clerk docs for more information. |
skip_password_checks | boolean or null Set it to |
sign_out_of_other_sessions | boolean or null Set to |
totp_secret | string In case TOTP is configured on the instance, you can provide the secret to enable it on the specific user without the need to reset it. Please note that currently the supported options are:
|
backup_codes | Array of strings If Backup Codes are configured on the instance, you can provide them to enable it on the specific user without the need to reset them. You must provide the backup codes in plain format or the corresponding bcrypt digest. |
object Metadata saved on the user, that is visible to both your Frontend and Backend APIs | |
object Metadata saved on the user, that is only visible to your Backend API | |
object Metadata saved on the user, that can be updated from both the Frontend and Backend APIs. Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. | |
delete_self_enabled | boolean or null If true, the user can delete themselves with the Frontend API. |
create_organization_enabled | boolean or null If true, the user can create organizations with the Frontend API. |
legal_accepted_at | string or null A custom timestamps denoting when the user accepted legal requirements, specified in RFC3339 format (e.g. |
skip_legal_checks | boolean or null When set to |
create_organizations_limit | integer or null The maximum number of organizations the user can create. 0 means unlimited. |
created_at | string A custom date/time denoting when the user signed up to the application, specified in RFC3339 format (e.g. |
Success
Request was not successful
Authentication invalid
Resource not found
Invalid request parameters
{- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "primary_email_address_id": "string",
- "notify_primary_email_address_changed": false,
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "profile_image_id": "string",
- "password": "string",
- "password_digest": "string",
- "password_hasher": "string",
- "skip_password_checks": true,
- "sign_out_of_other_sessions": true,
- "totp_secret": "string",
- "backup_codes": [
- "string"
], - "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "legal_accepted_at": "string",
- "skip_legal_checks": true,
- "create_organizations_limit": 0,
- "created_at": "string"
}
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Marks the given user as banned, which means that all their sessions are revoked and they are not allowed to sign in again.
Success
Payment required
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Removes the ban mark from the given user.
Success
Payment required
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Marks the given user as locked, which means they are not allowed to sign in again until the lock expires. Lock duration can be configured in the instance's restrictions settings.
Success
Authorization invalid
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Removes the lock from the given user.
Success
Authorization invalid
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Update a user's profile image
Success
Request was not successful
Request was not successful
Request was not successful
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Delete a user's profile image
Success
Request was not successful
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Update a user's metadata attributes by merging existing values with the provided parameters.
This endpoint behaves differently than the Update a user endpoint. Metadata values will not be replaced entirely. Instead, a deep merge will be performed. Deep means that any nested JSON objects will be merged as well.
You can remove metadata keys at any level by setting their value to null
.
object Metadata saved on the user, that is visible to both your frontend and backend. The new object will be merged with the existing value. | |
object Metadata saved on the user that is only visible to your backend. The new object will be merged with the existing value. | |
object Metadata saved on the user, that can be updated from both the Frontend and Backend APIs. The new object will be merged with the existing value. Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. |
Success
Request was not successful
Authentication invalid
Resource not found
Invalid request parameters
{- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { }
}
{- "id": "string",
- "object": "user",
- "external_id": "string",
- "primary_email_address_id": "string",
- "primary_phone_number_id": "string",
- "primary_web3_wallet_id": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "public_metadata": { },
- "private_metadata": { },
- "unsafe_metadata": { },
- "email_addresses": [
- {
- "id": "string",
- "object": "email_address",
- "email_address": "string",
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "created_at": 0,
- "updated_at": 0
}
], - "phone_numbers": [
- {
- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
], - "web3_wallets": [
- {
- "id": "string",
- "object": "web3_wallet",
- "web3_wallet": "string",
- "verification": {
- "status": "unverified",
- "strategy": "web3_metamask_signature",
- "nonce": "string",
- "message": "string",
- "attempts": 0,
- "expire_at": 0
}, - "created_at": 0,
- "updated_at": 0
}
], - "passkeys": [
- {
- "id": "string",
- "object": "passkey",
- "name": "string",
- "last_used_at": 0,
- "verification": {
- "status": "verified",
- "strategy": "passkey",
- "nonce": "nonce",
- "attempts": 0,
- "expire_at": 0
}
}
], - "password_enabled": true,
- "two_factor_enabled": true,
- "totp_enabled": true,
- "backup_code_enabled": true,
- "mfa_enabled_at": 0,
- "mfa_disabled_at": 0,
- "external_accounts": [
- { }
], - "saml_accounts": [
- {
- "id": "string",
- "object": "saml_account",
- "provider": "string",
- "active": true,
- "email_address": "string",
- "first_name": "string",
- "last_name": "string",
- "provider_user_id": "string",
- "public_metadata": { },
- "verification": {
- "status": "unverified",
- "strategy": "saml",
- "external_verification_redirect_url": "string",
- "error": {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}, - "expire_at": 0,
- "attempts": 0
}, - "saml_connection": {
- "id": "string",
- "name": "string",
- "domain": "string",
- "active": true,
- "provider": "string",
- "sync_user_attributes": true,
- "allow_subdomains": true,
- "allow_idp_initiated": true,
- "disable_additional_identifications": true,
- "created_at": 0,
- "updated_at": 0
}
}
], - "last_sign_in_at": 0,
- "banned": true,
- "locked": true,
- "lockout_expires_in_seconds": 0,
- "verification_attempts_remaining": 0,
- "updated_at": 0,
- "created_at": 0,
- "delete_self_enabled": true,
- "create_organization_enabled": true,
- "create_organizations_limit": 0,
- "last_active_at": 1700690400000,
- "legal_accepted_at": 1700690400000
}
Fetch the corresponding OAuth access token for a user that has previously authenticated with a particular OAuth provider. For OAuth 2.0, if the access token has expired and we have a corresponding refresh token, the access token will be refreshed transparently the new one will be returned.
The OAuth access token of the user, if any.
Request was not successful
Invalid request parameters
[- {
- "object": "string",
- "external_account_id": "string",
- "provider_user_id": "string",
- "token": "string",
- "provider": "string",
- "public_metadata": { },
- "label": "string",
- "scopes": [
- "string"
], - "token_secret": "string",
- "expires_at": 0
}
]
Retrieve a paginated list of the user's organization memberships
A list of organization memberships
Request was not successful
{- "data": [
- {
- "id": "string",
- "object": "organization_membership",
- "role": "string",
- "role_name": "string",
- "permissions": [
- "string"
], - "public_metadata": { },
- "private_metadata": { },
- "organization": {
- "object": "organization",
- "id": "string",
- "name": "string",
- "slug": "string",
- "members_count": 0,
- "max_allowed_memberships": 0,
- "admin_delete_enabled": true,
- "public_metadata": { },
- "private_metadata": { },
- "created_by": "string",
- "created_at": 0,
- "updated_at": 0
}, - "public_user_data": {
- "user_id": "string",
- "first_name": "string",
- "last_name": "string",
- "profile_image_url": "string",
- "image_url": "string",
- "has_image": true,
- "identifier": "string"
}, - "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Retrieve a paginated list of the user's organization invitations
A list of organization invitations with public organization data
Request was not successful
Request was not successful
Resource not found
{- "data": [
- {
- "id": "string",
- "object": "organization_invitation",
- "email_address": "string",
- "role": "string",
- "role_name": "string",
- "organization_id": "string",
- "status": "string",
- "public_metadata": { },
- "private_metadata": { },
- "public_organization_data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "image_url": "string",
- "has_image": true
}, - "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Check that the user's password matches the supplied input. Useful for custom auth flows and re-verification.
The provided password was correct.
The user does not have a password set.
The user does not exist.
The provided password was incorrect.
Request was not successful
{- "password": "string"
}
{- "verified": true
}
Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e. it will become invalid). Useful for custom auth flows and re-verification.
The provided TOTP or backup code was correct.
The user does not have TOTP configured for their account.
The user does not exist.
The provided TOTP or backup code was incorrect.
Request was not successful
{- "code": "string"
}
{- "verified": true,
- "code_type": "totp"
}
Disable all of a user's MFA methods (e.g. OTP sent via SMS, TOTP on their authenticator app) at once.
Successful operation.
Resource not found
Request was not successful
{- "user_id": "string"
}
Delete the passkey identification for a given user and notify them through email.
Deleted Object
Authorization invalid
Resource not found
Request was not successful
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}
Delete the web3 wallet identification for a given user.
Deleted Object
Request was not successful
Authorization invalid
Resource not found
Request was not successful
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}
Creates a TOTP (Time-based One-Time Password) for a given user, returning both the TOTP secret and the URI.
A TOTP (Time-based One-Time Password)
Request was not successful
Resource not found
Request was not successful
{- "object": "string",
- "id": "string",
- "secret": "string",
- "uri": "string",
- "verified": true,
- "backup_codes": [
- "string"
]
}
Delete an external account by ID.
Deleted Object
Request was not successful
Request was not successful
Resource not found
Request was not successful
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}