Docs

List user passkeys

GET
/users/{user_id}/passkeys

Returns the passkeys registered for a user, newest first, paginated with a cursor.

Each passkey carries its id, its name and when it was registered, never the credential itself.

Authorization

headerAuthorizationBearer <token>

Scope: user.read

Path Parameters

user_id*string

The unique identifier of the user.

Match^user_[a-zA-Z0-9_-]+$

Query Parameters

limit?integer

Maximum number of items to return.

Range1 <= value <= 100
Default20
page_token?string

Token for fetching the next page of results. Obtain this value from next_page_token in the previous response. Omit to start from the beginning. Its format is opaque and may change between releases.

Response Body

The passkeys of a user are returned

application/json
  1. response

Response containing the user's passkeys.

passkeys*array<>
next_page_token?|

Token to pass as page_token in the next request to fetch the following page. Absent when there are no more results.

Example Request
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const userPasskeys = await client.listUserPasskeys("user_01KWH3B72K7M7F0N9WD3P2E4YM");
Example Response
{  "passkeys": [    {      "id": "string",      "name": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_page_token": "string"}

Was this helpful?