---
title: "Verify Login Otp"
method: POST
path: "/v1/auth/verify_login_otp"
tags: ["authentication"]
---

# Verify Login Otp

`POST /v1/auth/verify_login_otp`

## Request

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

Exchange the code from the magic link email for custom tokens.

## Request body

- VerifyLoginOtpPayload
  - `email` string, required
  - `code` string, required
  - `as_team_member` boolean

## Response `200`

Successful Response

- VerifyLoginOtpResponse
  - `accounts` LoginAccount[], required
    - `name` string, nullable
    - `custom_token` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
