---
title: "Setup Phone 2Fa"
method: POST
path: "/api/v1/auth/2fa/setup-phone"
tags: ["Two-Factor Authentication"]
---

# Setup Phone 2Fa

`POST /api/v1/auth/2fa/setup-phone`

## Request

- Base URL: `https://app.perlucem.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.perlucem.ai/api/v1/auth/2fa/setup-phone`
- Auth: none declared

Set up phone number for 2FA during login.

Called when user doesn't have a phone number on file.
Stores the phone and immediately sends verification SMS.

## Request body

- PhoneSetupRequest: Request to add phone number during login.
  - `cognito_id_token` string, required
  - `cognito_access_token` string, required
  - `phone_number` string, required
  - `device_fingerprint` string, nullable

## Response `200`

Successful Response

- PhoneSetupResponse: Response from phone setup.
  - `success` boolean, required
  - `requires_2fa` boolean
  - `session_token` string, nullable
  - `phone_masked` string, nullable
  - `error` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/perlucem/apis/perlucem-ai-backend.md) · [All operations](https://skmtc.dev/perlucem/apis/perlucem-ai-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/perlucem/apis/perlucem-ai-backend/revisions/e1830fb27394?raw)
