---
title: "Generate WebAuthn registration options"
method: POST
path: "/auth/webauthn/register-options"
---

# Generate WebAuthn registration options

`POST /auth/webauthn/register-options`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/auth/webauthn/register-options`
- Auth: none declared

Generate registration options for WebAuthn.

## Request body

- RegistrationOptions
  - `email` string

## Response `200`

Registration options generated

- object

## Other responses

- `404`: User not found

## Changes

- **2024-10-02** `cf59c28790e6`: 1 info
  - api operation id `backend.api.AuthView.webauthn_register_options` was added
- **2024-10-02** `c9062e3a3c54`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/changes/auth/webauthn/register-options/post.md)

---

[API](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api.md) - [All operations](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/revisions/3c144b366e19?raw)
