Skip to Content
ZITADEL Docs
APIsCore ResourcesV2User

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

Request Body

application/json
  1. body
domain?domain

Response Body

Success

application/json
  1. response
details?
u2fId?u2f_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/u2f' \  -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"  },  "u2fId": "string",  "publicKeyCredentialCreationOptions": {    "property1": null,    "property2": null  }}

Was this page helpful?