---
title: "Sign in with a verification code"
method: POST
path: "/verify-code-login"
tags: ["public"]
---

# Sign in with a verification code

`POST /verify-code-login`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/verify-code-login`
- Auth: none required

Signs in with an email verification code and sets the Better Auth session cookie on success (new users are registered automatically).

## Request body

- object
  - `email` string, required: Sign-in email
  - `code` string, required: Verification code

## Response `200`

Signed in (session set via Set-Cookie)

- object
  - `success` boolean, required
  - `message` string, required

## Other responses

- `400`: Invalid request body or code mismatch
- `403`: Account is disabled
- `404`: Code not found or expired
- `429`: Too many verification attempts

---

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