# Initiate WebAuthn Registration (beta) **POST /v1/auth/webauthn/registrations/begin** Initiate a WebAuthn Registration Request. This endpoint requires that a user already exists on MoonKey. Pass the returned JSON object in `public_key_credential_creation_options` property into `await create(options)` as `options` if you are using [webauthn-json](https://github.com/github/webauthn-json) or to [navigator.credentials.create(options)](https://w3c.github.io/webappsec-credential-management/#algorithm-create-cred). ## HTTP Request `POST /v1/auth/webauthn/registrations/begin` ## Returns A successful response returns a `public_key_credential_creation_options` property and `user_id` property. ## Servers - Production: https://api.moonkey.fun (Production) ## Authentication methods - Authorization ## Parameters ### Body: application/json (object) - **domain** (string) `Required` Domain of the app that will be using WebAuthn to provide user sign in. - **user_id** (string) `Required` User ID of the user to attach this WebAuthn registration to. - **authenticator_type** (string) `Optional` The intended authenticator type for the WebAuthn device used. `cross-platform` is recommended for portable WebAuthn device like YubiKey and `platform` if you want to enable log in via platform specific methods such as FaceID or TouchID. Possible values: platform, cross-platform. Defaults to platform. ## Responses ### 200 OK #### Body: application/json (object) - **public_key_credential_creation_options** (object) - **user_id** (string) [Powered by Bump.sh](https://bump.sh)