---
title: "Verify the address of an account made with a password, with the code its mail carries (type email-verification); returns a session token to use as Bearer"
method: POST
path: "/api/auth/email-otp/verify-email"
tags: ["Accounts"]
---

# Verify the address of an account made with a password, with the code its mail carries (type email-verification); returns a session token to use as Bearer

`POST /api/auth/email-otp/verify-email`

## Request

- Base URL: `https://agentdrives.com`
- URL: `https://agentdrives.com/api/auth/email-otp/verify-email`
- Auth: none required

## Request body

- object
  - `email` string, email, required
  - `otp` string, required

## Response `200`

Verified and signed in

- object
  - `status` boolean
  - `token` string, nullable
  - `user` User
    - `id` string
    - `email` string, nullable: null on an agent's own account until a person claims it
    - `name` string
    - `emailVerified` boolean

## Other responses

- `400`: Error as problem details (RFC 9457) with a machine-readable `error` and a `fix` that says what to do next

---

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