Passer au contenu principal
POST
https://{host}/me/v1
/
authentication-methods
curl --request POST \
  --url https://{host}/me/v1/authentication-methods \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "phone",
  "phone_number": "+15551234567",
  "preferred_authentication_method": "sms"
}
'
{
  "id": "phone|dev_XXXXXXXXXXXXXXXX",
  "auth_session": "Fe26.2**05c400ed..."
}

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorisations

Authorization
string
header
requis

Bearer and DPoP tokens are supported depending on the API configuration

Corps

application/json

Request content for creating an authentication method

type
string
défaut:passkey
requis

Authentication method type (factor)

Allowed value: "passkey"
connection
string

Name of the database connection

Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9-]+$
identity_user_id
string

Identity provider user ID

Required string length: 1 - 255
Pattern: ^\S+$
use_exclude_credentials
boolean

When enabled, Auth0 includes the user's existing credentials in the excludeCredentials field during passkey enrollment. This prevents users from accidentally registering multiple passkeys from the same authenticator, reducing credential clutter and avoiding confusion at sign-in.

Réponse

Enrollment started

auth_session
string
requis

The unique session identifier for the enrollment.

authn_params_public_key
object
requis