# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0xpass.io/authentication/passkeys/registration/register-using-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
