---
title: "Complete login with a TOTP code + challenge token"
method: POST
path: "/api/auth/totp/login"
tags: ["Auth"]
---

# Complete login with a TOTP code + challenge token

`POST /api/auth/totp/login`

## Request

- Base URL: `https://api.witwiki.app`
- URL: `https://api.witwiki.app/api/auth/totp/login`
- Auth: none required

## Request body

- object
  - `challenge_token` string
  - `code` string

## Response `200`

Session tokens

- LoginResult
  - `access_token` string
  - `user` User
    - `id` string
    - `email` string, email
    - `created_at` string, date-time
  - `requires_totp` boolean
  - `challenge_token` string

---

[API](https://skmtc.dev/witwiki/apis/witwiki-api.md) · [All operations](https://skmtc.dev/witwiki/apis/witwiki-api/llms.txt) · [OpenAPI document](https://skmtc.dev/witwiki/apis/witwiki-api/revisions/cc93279a2dff?raw)
