v4

latestOpenAPI 3.1.1Apache 2.02026-07-31107278570.4 KB
Passkeys

List user's passkeys

Retrieves all registered passkeys for the current user, including device information, creation timestamps, and display names. Use this to show users their registered authenticators.

get/api/v1/webauthn/credentials

Query parameters

user_idstring

User ID to list credentials for (optional, current user if not provided)

Response

List of passkeys with metadata

Example response

{
  "all_accepted_credentials_options": {
    "rp_id": "example.com",
    "user_id": "user_xyz789"
  },
  "credentials": [
    {
      "attestation_type": "direct",
      "authenticator": {
        "attachment": "platform",
        "name": "Apple Touch ID"
      },
      "client_info": {
        "city": "San Francisco",
        "ip": "192.0.2.1",
        "region": "US",
        "region_subdivision": "CA"
      },
      "created_at": "2025-02-15T06:23:44.560000Z",
      "display_name": "My Yubikey",
      "id": "cred_abc123",
      "updated_at": "2025-02-15T06:23:44.560000Z",
      "user_agent": {
        "browser": "Chrome",
        "browser_version": "120.0.6099.129",
        "device_model": "iPhone15,2",
        "device_type": "mobile",
        "os": "macOS",
        "os_version": "14.2"
      },
      "user_id": "user_xyz789"
    }
  ]
}