---
title: "Sign in with the code; returns a session token to use as Bearer"
method: POST
path: "/api/auth/sign-in/email-otp"
tags: ["Accounts"]
---

# Sign in with the code; returns a session token to use as Bearer

`POST /api/auth/sign-in/email-otp`

## Request

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

## Request body

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

## Response `200`

Signed in

- object
  - `token` string
  - `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

- `401`: 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)
