---
title: "Begin 2FA enrollment"
method: POST
path: "/api/v1/auth/2fa/enroll"
tags: ["Authentication & Billing"]
---

# Begin 2FA enrollment

`POST /api/v1/auth/2fa/enroll`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/auth/2fa/enroll`
- Auth: none declared

Generate a TOTP secret + provisioning URI. NOT yet active -- call
/2fa/activate with a code from your authenticator to turn it on.

## Query parameters

- `x_api_key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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