---
title: "Finalize passcode login"
method: POST
path: "/passcode/login/finalize"
tags: ["Passcode"]
deprecated: true
---

# Finalize passcode login

`POST /passcode/login/finalize`

> **Deprecated.**

Finalize a passcode login given the `id` of the passcode and the actual `code` provided in the the email sent
to the user during initialization.

On success, sets the User's `verified` status to `true`.

## Request body

- object
  - `id` string, uuid4
  - `code` string — The actual passcode from the email sent to the user during initialization, a string of 6 decimal digits

## Response `200`

Successful passcode login finalization

- Passcode — Representation of a passcode
  - `id` string, uuid4
  - `ttl` integer — Lifespan of a passcode in seconds
  - `created_at` string, date-time — Time of creation of the passcode

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `408` — Request Timeout
- `410` — Gone
- `500` — Internal server error

---

[API](https://skmtc.dev/hanko/apis/hanko-admin-api.md) · [All operations](https://skmtc.dev/hanko/apis/hanko-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hanko/hanko-admin-api/revisions/d22a127b0978/schema)
