> For the complete documentation index, see [llms.txt](https://docs.0xpass.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0xpass.io/authentication/passkeys/registration/register-using-api.md).

# Register using API

User registration with Passkeys is split into 2 functions / API requests [Initiate Registration](/authentication/passkeys/registration/register-using-api/initiate-registration.md) and [Complete Registration](/authentication/passkeys/registration/register-using-api/complete-registration.md).

The `initiateRegistration` method initiates the user registration process within a specific scope. It generates a registration challenge that the user must solve to proceed with their registration which occurs in `completeRegistration`.&#x20;

The `completeRegistration` method is the part of the authentication API that finalizes the user registration process. It takes encrypted user data and a registration challenge, verifies it, and if successful, returns an identifier for the user.
