ZITADEL Docs
APIsCore ResourcesV2User

RegisterU2F

Start the registration of a u2f token for a user

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

POST
/v2/users/{user_id}/u2f

Path Parameters

user_id*string

Request Body

application/json

domain?string
[key: string]?never

Response Body

application/json

application/json

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

Was this page helpful?