---
title: "POST /accounts/2fa/verify/passkey/options/"
method: POST
path: "/accounts/2fa/verify/passkey/options/"
tags: ["accounts"]
---

# POST /accounts/2fa/verify/passkey/options/

`POST /accounts/2fa/verify/passkey/options/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/accounts/2fa/verify/passkey/options/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

POST /accounts/2fa/verify/passkey/options/ - Get WebAuthn options for passkey as 2FA.

## Request body

- TwoFactorChallengeToken
  - `challenge_token` string, uuid, required

## Response `200`

OK

- PasskeyOptionsResponse
  - `challenge` string, required
  - `timeout` integer
  - `rp` WebAuthnRelyingParty
    - `id` string
    - `name` string
  - `user` WebAuthnUser
    - `id` string, required
    - `name` string, required
    - `displayName` string
  - `pubKeyCredParams` WebAuthnPublicKeyCredentialParam[]
    - `type` string, required
    - `alg` integer, required
  - `excludeCredentials` WebAuthnCredentialDescriptor[]
    - `type` string, required
    - `id` string, required
    - `transports` string[]
  - `allowCredentials` WebAuthnCredentialDescriptor[]
    - `type` string, required
    - `id` string, required
    - `transports` string[]
  - `authenticatorSelection` WebAuthnAuthenticatorSelection
    - `authenticatorAttachment` string
    - `residentKey` string
    - `requireResidentKey` boolean
    - `userVerification` string
  - `attestation` string
  - `rpId` string
  - `userVerification` string
  - `extensions` WebAuthnExtensions
    - `appid` string
    - `credProps` boolean
    - `uvm` boolean
  - `session_id` string, uuid

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
