---
title: "Finish linking an email with the code from the email"
method: POST
path: "/api/v1/me/email/verify"
tags: ["Auth"]
---

# Finish linking an email with the code from the email

`POST /api/v1/me/email/verify`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/me/email/verify`
- Auth: HTTP bearer

Other sessions of the account are signed out once the email is linked.

## Headers

- `User-Agent` string

## Request body

- VerifyInputBody
  - `challenge_id` string, uuid, required
  - `code` string, required

## Response `200`

OK

- UserBody
  - `user` AccountUserBody, required
    - `created_at` string, date-time, required
    - `email` string, nullable, required: Null for accounts created with a phone number
    - `email_verified` boolean, required: True once the email was confirmed with a code or a sign-in link
    - `has_password` boolean, required
    - `id` integer, required
    - `is_admin` boolean, required
    - `locale` string, required
    - `name` string, required: Empty until the person enters a name
    - `phone` string, nullable, required: E.164 number the account signs in with, null for email accounts
    - `public_id` string, uuid, required

## Other responses

- `403`: Forbidden
- `409`: Conflict
- `410`: Gone
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
