Skip to Content
ZITADEL Docs
APIsCore ResourcesV2User

Start the registration of passkey for a user

Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey..

POST
/v2/users/{user_id}/passkeys

Path Parameters

user_id*user_id

Request Body

application/json
  1. body
code?|null
authenticator?authenticator
Value in"PASSKEY_AUTHENTICATOR_UNSPECIFIED""PASSKEY_AUTHENTICATOR_PLATFORM""PASSKEY_AUTHENTICATOR_CROSS_PLATFORM"
domain?domain

Response Body

Success

application/json
  1. response
details?
passkeyId?passkey_id
publicKeyCredentialCreationOptions?

Struct represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, Struct might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.

The JSON representation for Struct is JSON object.

Example Request
curl -X POST 'https://example.com/v2/users/string/passkeys' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "sequence": 0,    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string",    "creationDate": "2023-01-15T01:30:15.01Z"  },  "passkeyId": "string",  "publicKeyCredentialCreationOptions": {    "property1": null,    "property2": null  }}

Was this page helpful?