Skip to main content

Start a WebAuthN registration

POST 

/resources/v3alpha/users/:id/webauthn

Start the registration of a new WebAuthN device (e.g. Passkeys) for a user. As a response the public key credential creation options are returned, which are used to verify the device.

Request​

Path Parameters

    id stringrequired

    unique identifier of the user.

Query Parameters

    instance.id string
    instance.domain string
    organization.orgId string
    organization.orgDomain string

Body

required

    domain stringrequired

    Possible values: non-empty and <= 200 characters

    Domain on which the user currently is or will be authenticated.

    authenticatorType string

    Possible values: [WEB_AUTH_N_AUTHENTICATOR_UNSPECIFIED, WEB_AUTH_N_AUTHENTICATOR_PLATFORM, WEB_AUTH_N_AUTHENTICATOR_CROSS_PLATFORM]

    Default value: WEB_AUTH_N_AUTHENTICATOR_UNSPECIFIED

    Optionally specify the authenticator type of the passkey device (platform or cross-platform). If none is provided, both values are allowed.

    code

    object

    Optionally provide a one time code generated by ZITADEL. This is required to start the passkey registration without user authentication.

    id stringrequired

    Possible values: non-empty and <= 200 characters

    ID to the one time code generated by ZITADEL.

    code stringrequired

    Possible values: non-empty and <= 200 characters

    one time code generated by ZITADEL.

Responses​

WebAuthN registration successfully started

Schema

    details

    object

    id string
    created date-time

    the timestamp of the first event applied to the object.

    changed date-time

    the timestamp of the last event applied to the object.

    owner

    object

    the parent object representing the returned objects context.

    type string

    Possible values: [OWNER_TYPE_UNSPECIFIED, OWNER_TYPE_SYSTEM, OWNER_TYPE_INSTANCE, OWNER_TYPE_ORG]

    Default value: OWNER_TYPE_UNSPECIFIED

    id string
    webAuthNId string

    unique identifier of the WebAuthN registration.

    publicKeyCredentialCreationOptions object
Loading...