Get a list of WebAuthn credentials
curl --request GET \
--url https://{tenant_id}.hanko.io/webauthn/credentials \
--cookie hanko=import requests
url = "https://{tenant_id}.hanko.io/webauthn/credentials"
headers = {"cookie": "hanko="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'hanko='}};
fetch('https://{tenant_id}.hanko.io/webauthn/credentials', 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://{tenant_id}.hanko.io/webauthn/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "hanko=",
]);
$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://{tenant_id}.hanko.io/webauthn/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "hanko=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant_id}.hanko.io/webauthn/credentials")
.header("cookie", "hanko=")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/webauthn/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'hanko='
response = http.request(request)
puts response.read_body[
{
"id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
"name": "iCloud",
"public_key": "pQECYyagASFYIBblARCP_at3cmprjzQN1lJ...",
"attestation_type": "packed",
"aaguid": "01020304-0506-0708-0102-030405060708",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": [
"internal"
],
"backup_eligible": true,
"backup_state": true,
"mfa_only": false
},
{
"id": "f826013e-e7e3-4366-a6d8-9359effc8cdd",
"name": "Yubikey Bio",
"public_key": "aNMEEyadASFYIBblARCP_at3cmp4gg3zQN1lJ...",
"attestation_type": "packed",
"aaguid": "90636e1f-ef82-43bf-bdcf-5255f139d12f",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": [
"usb"
],
"backup_eligible": true,
"backup_state": false,
"mfa_only": true
}
]{
"code": 401,
"message": "Unauthorized"
}{
"code": 500,
"message": "Internal Server Error"
}WebAuthn
Get a list of WebAuthn credentials
deprecated
Returns a list of WebAuthn credentials assigned to the current user.
GET
/
webauthn
/
credentials
Get a list of WebAuthn credentials
curl --request GET \
--url https://{tenant_id}.hanko.io/webauthn/credentials \
--cookie hanko=import requests
url = "https://{tenant_id}.hanko.io/webauthn/credentials"
headers = {"cookie": "hanko="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'hanko='}};
fetch('https://{tenant_id}.hanko.io/webauthn/credentials', 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://{tenant_id}.hanko.io/webauthn/credentials",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "hanko=",
]);
$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://{tenant_id}.hanko.io/webauthn/credentials"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "hanko=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant_id}.hanko.io/webauthn/credentials")
.header("cookie", "hanko=")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/webauthn/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'hanko='
response = http.request(request)
puts response.read_body[
{
"id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
"name": "iCloud",
"public_key": "pQECYyagASFYIBblARCP_at3cmprjzQN1lJ...",
"attestation_type": "packed",
"aaguid": "01020304-0506-0708-0102-030405060708",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": [
"internal"
],
"backup_eligible": true,
"backup_state": true,
"mfa_only": false
},
{
"id": "f826013e-e7e3-4366-a6d8-9359effc8cdd",
"name": "Yubikey Bio",
"public_key": "aNMEEyadASFYIBblARCP_at3cmp4gg3zQN1lJ...",
"attestation_type": "packed",
"aaguid": "90636e1f-ef82-43bf-bdcf-5255f139d12f",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": [
"usb"
],
"backup_eligible": true,
"backup_state": false,
"mfa_only": true
}
]{
"code": 401,
"message": "Unauthorized"
}{
"code": 500,
"message": "Internal Server Error"
}Deprecated. Please use the Flow API instead. What’s the Flow API?.
Authorizations
CookieAuthBearerTokenAuth
Response
A list of WebAuthn credentials assigned to the current user
Available options:
none, packed, tpm, android-key, android-safetynet, fido-u2f, apple Available options:
ble, internal, nfc, usb Example:
[
{
"id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
"name": "iCloud",
"public_key": "pQECYyagASFYIBblARCP_at3cmprjzQN1lJ...",
"attestation_type": "packed",
"aaguid": "01020304-0506-0708-0102-030405060708",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": ["internal"],
"backup_eligible": true,
"backup_state": true,
"mfa_only": false
},
{
"id": "f826013e-e7e3-4366-a6d8-9359effc8cdd",
"name": "Yubikey Bio",
"public_key": "aNMEEyadASFYIBblARCP_at3cmp4gg3zQN1lJ...",
"attestation_type": "packed",
"aaguid": "90636e1f-ef82-43bf-bdcf-5255f139d12f",
"last_used_at": "2026-02-24T21:40:36.26936Z",
"created_at": "2026-02-24T21:40:36.26936Z",
"transports": ["usb"],
"backup_eligible": true,
"backup_state": false,
"mfa_only": true
}
]
Was this page helpful?
⌘I