---
title: "Email Code Verify"
method: POST
path: "/auth/email-code/verify"
tags: ["auth"]
---

# Email Code Verify

`POST /auth/email-code/verify`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/auth/email-code/verify`
- Auth: none declared

Passwordless sign-in step 2: redeem the 6-digit code for a session.

Identical semantics to /auth/verify-email (shape gate, attempt cap,
constant-time compare, expiry check, marks the email verified, auto-login
token pair) — both call the same body so the two redeem paths can't drift.

## Request body

- VerifyEmailCodeRequest
  - `email` string, email, required
  - `code` string, required

## Response `200`

Successful Response

- union
  - VerifyEmailResponse
    - `success` boolean, required
    - `message` string, required
    - `accessToken` string, nullable
    - `refreshToken` string, nullable
    - `token_type` string, nullable
    - `expires_in` integer, nullable
    - `user` object, nullable
  - TwoFARequiredResponse
    - `status` string
    - `user_id` integer, required
    - `email` string, required
    - `message` string
    - `expires_in` integer
    - `method` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
