Get a list of authentication methods
curl --request GET \
--url https://{host}/me/v1/authentication-methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/me/v1/authentication-methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/me/v1/authentication-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/me/v1/authentication-methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/me/v1/authentication-methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/me/v1/authentication-methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/me/v1/authentication-methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"authentication_methods": [
{
"id": "email|dev_XXXXXXXXXXXXXXXX",
"type": "email",
"confirmed": true,
"email": "user@example.com",
"usage": [
"secondary"
],
"created_at": "2025-01-15T10:30:00.000Z"
},
{
"id": "phone|dev_YYYYYYYYYYYYYYYY",
"type": "phone",
"confirmed": true,
"phone_number": "+15551234567",
"preferred_authentication_method": "sms",
"usage": [
"secondary"
],
"created_at": "2025-01-16T14:00:00.000Z"
},
{
"id": "totp|dev_ZZZZZZZZZZZZZZZZ",
"type": "totp",
"confirmed": true,
"usage": [
"secondary"
],
"created_at": "2025-02-01T09:15:00.000Z"
},
{
"id": "passkey|dev_AAAAAAAAAAAAAAAA",
"type": "passkey",
"credential_device_type": "multi_device",
"credential_backed_up": true,
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"key_id": "dGVzdC1rZXktaWQ",
"public_key": "pQECAyYgASFYI...",
"transports": [
"internal"
],
"user_agent": "Chrome 131.0.0 / Mac OS X 10.15.7",
"user_handle": "YXV0aDB8NTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDEx",
"relying_party_id": "example.auth0.com",
"usage": [
"primary"
],
"created_at": "2025-03-10T08:00:00.000Z"
},
{
"id": "password|dXNlci0xMjM",
"type": "password",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"usage": [
"primary"
],
"created_at": "2024-06-01T12:00:00.000Z"
},
{
"id": "webauthn-platform|dev_BBBBBBBBBBBBBBBB",
"type": "webauthn-platform",
"confirmed": true,
"key_id": "dGVzdC1wbGF0Zm9ybS1rZXk",
"public_key": "pQECAyYgASFYI...",
"usage": [
"secondary"
],
"created_at": "2025-02-20T11:00:00.000Z"
},
{
"id": "webauthn-roaming|dev_CCCCCCCCCCCCCCCC",
"type": "webauthn-roaming",
"confirmed": true,
"key_id": "dGVzdC1yb2FtaW5nLWtleQ",
"public_key": "pQECAyYgASFYI...",
"usage": [
"secondary"
],
"created_at": "2025-02-25T16:45:00.000Z"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}Get a list of authentication methods
Retrieve detailed list of authentication methods belonging to the authenticated user.
GET
https://{host}/me/v1
/
authentication-methods
Get a list of authentication methods
curl --request GET \
--url https://{host}/me/v1/authentication-methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/me/v1/authentication-methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/me/v1/authentication-methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/me/v1/authentication-methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/me/v1/authentication-methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/me/v1/authentication-methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/me/v1/authentication-methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"authentication_methods": [
{
"id": "email|dev_XXXXXXXXXXXXXXXX",
"type": "email",
"confirmed": true,
"email": "user@example.com",
"usage": [
"secondary"
],
"created_at": "2025-01-15T10:30:00.000Z"
},
{
"id": "phone|dev_YYYYYYYYYYYYYYYY",
"type": "phone",
"confirmed": true,
"phone_number": "+15551234567",
"preferred_authentication_method": "sms",
"usage": [
"secondary"
],
"created_at": "2025-01-16T14:00:00.000Z"
},
{
"id": "totp|dev_ZZZZZZZZZZZZZZZZ",
"type": "totp",
"confirmed": true,
"usage": [
"secondary"
],
"created_at": "2025-02-01T09:15:00.000Z"
},
{
"id": "passkey|dev_AAAAAAAAAAAAAAAA",
"type": "passkey",
"credential_device_type": "multi_device",
"credential_backed_up": true,
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"key_id": "dGVzdC1rZXktaWQ",
"public_key": "pQECAyYgASFYI...",
"transports": [
"internal"
],
"user_agent": "Chrome 131.0.0 / Mac OS X 10.15.7",
"user_handle": "YXV0aDB8NTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDEx",
"relying_party_id": "example.auth0.com",
"usage": [
"primary"
],
"created_at": "2025-03-10T08:00:00.000Z"
},
{
"id": "password|dXNlci0xMjM",
"type": "password",
"identity_user_id": "auth0|507f1f77bcf86cd799439011",
"usage": [
"primary"
],
"created_at": "2024-06-01T12:00:00.000Z"
},
{
"id": "webauthn-platform|dev_BBBBBBBBBBBBBBBB",
"type": "webauthn-platform",
"confirmed": true,
"key_id": "dGVzdC1wbGF0Zm9ybS1rZXk",
"public_key": "pQECAyYgASFYI...",
"usage": [
"secondary"
],
"created_at": "2025-02-20T11:00:00.000Z"
},
{
"id": "webauthn-roaming|dev_CCCCCCCCCCCCCCCC",
"type": "webauthn-roaming",
"confirmed": true,
"key_id": "dGVzdC1yb2FtaW5nLWtleQ",
"public_key": "pQECAyYgASFYI...",
"usage": [
"secondary"
],
"created_at": "2025-02-25T16:45:00.000Z"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}{
"type": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"validation_errors": [
{
"detail": "<string>",
"field": "<string>",
"pointer": "<string>",
"source": "<string>"
}
]
}承認
Bearer and DPoP tokens are supported depending on the API configuration
クエリパラメータ
Filter authentication methods by type Authentication method type (factor)
利用可能なオプション:
password, passkey, webauthn-platform, webauthn-roaming, totp, phone, email, push-notification, recovery-code レスポンス
Successfully retrieved authentication methods
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