List user passkeys
GET
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.
header
AuthorizationBearer <token>Scope: user.read
user_id*stringThe unique identifier of the user.
Match
^user_[a-zA-Z0-9_-]+$limit?integerMaximum number of items to return.
Range
1 <= value <= 100Default
20page_token?stringToken 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.
The passkeys of a user are returned
application/json- 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?