ZITADEL Docs
APIsCore ResourcesV2User

RegisterPasskey

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*string

Request Body

application/json

code?
authenticator?string
Value in"PASSKEY_AUTHENTICATOR_UNSPECIFIED" | "PASSKEY_AUTHENTICATOR_PLATFORM" | "PASSKEY_AUTHENTICATOR_CROSS_PLATFORM"
domain?string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/passkeys" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  },
  "passkeyId": "string",
  "publicKeyCredentialCreationOptions": {
    "property1": {},
    "property2": {}
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?