認証方法の一覧を取得
curl --request GET \
--url https://{host}/me/v1/authentication-methods \
--header 'Authorization: Bearer <token>'{
"authentication_methods": [
{
"confirmed": true,
"created_at": "2025-01-15T10:30:00.000Z",
"email": "user@example.com",
"id": "email|dev_XXXXXXXXXXXXXXXX",
"type": "email",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-01-16T14:00:00.000Z",
"id": "phone|dev_YYYYYYYYYYYYYYYY",
"phone_number": "+15551234567",
"preferred_authentication_method": "sms",
"type": "phone",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-02-01T09:15:00.000Z",
"id": "totp|dev_ZZZZZZZZZZZZZZZZ",
"type": "totp",
"usage": [
"secondary"
]
},
{
"created_at": "2025-03-10T08:00:00.000Z",
"credential_backed_up": true,
"credential_device_type": "multi_device",
"id": "passkey|dev_AAAAAAAAAAAAAAAA",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"key_id": "dGVzdC1rZXktaWQ",
"public_key": "pQECAyYgASFYI...",
"relying_party_id": "example.auth0.com",
"transports": [
"internal"
],
"type": "passkey",
"usage": [
"primary"
],
"user_agent": "Chrome 131.0.0 / Mac OS X 10.15.7",
"user_handle": "YXV0aDB8NTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDEx"
},
{
"created_at": "2024-06-01T12:00:00.000Z",
"id": "password|dXNlci0xMjM",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"type": "password",
"usage": [
"primary"
]
},
{
"confirmed": true,
"created_at": "2025-02-20T11:00:00.000Z",
"id": "webauthn-platform|dev_BBBBBBBBBBBBBBBB",
"key_id": "dGVzdC1wbGF0Zm9ybS1rZXk",
"public_key": "pQECAyYgASFYI...",
"type": "webauthn-platform",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-02-25T16:45:00.000Z",
"id": "webauthn-roaming|dev_CCCCCCCCCCCCCCCC",
"key_id": "dGVzdC1yb2FtaW5nLWtleQ",
"public_key": "pQECAyYgASFYI...",
"type": "webauthn-roaming",
"usage": [
"secondary"
]
}
]
}認証メソッドを取得
認証されたユーザーに紐づく認証方法の詳細な一覧を取得します。
GET
https://{host}/me/v1
/
authentication-methods
認証方法の一覧を取得
curl --request GET \
--url https://{host}/me/v1/authentication-methods \
--header 'Authorization: Bearer <token>'{
"authentication_methods": [
{
"confirmed": true,
"created_at": "2025-01-15T10:30:00.000Z",
"email": "user@example.com",
"id": "email|dev_XXXXXXXXXXXXXXXX",
"type": "email",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-01-16T14:00:00.000Z",
"id": "phone|dev_YYYYYYYYYYYYYYYY",
"phone_number": "+15551234567",
"preferred_authentication_method": "sms",
"type": "phone",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-02-01T09:15:00.000Z",
"id": "totp|dev_ZZZZZZZZZZZZZZZZ",
"type": "totp",
"usage": [
"secondary"
]
},
{
"created_at": "2025-03-10T08:00:00.000Z",
"credential_backed_up": true,
"credential_device_type": "multi_device",
"id": "passkey|dev_AAAAAAAAAAAAAAAA",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"key_id": "dGVzdC1rZXktaWQ",
"public_key": "pQECAyYgASFYI...",
"relying_party_id": "example.auth0.com",
"transports": [
"internal"
],
"type": "passkey",
"usage": [
"primary"
],
"user_agent": "Chrome 131.0.0 / Mac OS X 10.15.7",
"user_handle": "YXV0aDB8NTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDEx"
},
{
"created_at": "2024-06-01T12:00:00.000Z",
"id": "password|dXNlci0xMjM",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"type": "password",
"usage": [
"primary"
]
},
{
"confirmed": true,
"created_at": "2025-02-20T11:00:00.000Z",
"id": "webauthn-platform|dev_BBBBBBBBBBBBBBBB",
"key_id": "dGVzdC1wbGF0Zm9ybS1rZXk",
"public_key": "pQECAyYgASFYI...",
"type": "webauthn-platform",
"usage": [
"secondary"
]
},
{
"confirmed": true,
"created_at": "2025-02-25T16:45:00.000Z",
"id": "webauthn-roaming|dev_CCCCCCCCCCCCCCCC",
"key_id": "dGVzdC1yb2FtaW5nLWtleQ",
"public_key": "pQECAyYgASFYI...",
"type": "webauthn-roaming",
"usage": [
"secondary"
]
}
]
}承認
Bearer トークンと DPoP トークンは、API の設定に応じてサポートされます
クエリパラメータ
認証方法をタイプで絞り込む 認証方法のタイプ(認証要素)
利用可能なオプション:
password, passkey, webauthn-platform, webauthn-roaming, totp, phone, email, push-notification, recovery-code レスポンス
認証方法を正常に取得しました
authentication_methods
(password · object | passkey · object | recovery-code · object | push-notification · object | totp · object | webauthn-platform · object | webauthn-roaming · object | phone · object | email · object)[]
必須
Maximum array length:
20- password
- passkey
- recovery-code
- push-notification
- totp
- webauthn-platform
- webauthn-roaming
- phone
- email
Show child attributes
Show child attributes
⌘I