---
title: "Login Api Send Code"
method: POST
path: "/auth/login-api/code"
tags: ["auth"]
---

# Login Api Send Code

`POST /auth/login-api/code`

## Request

- Base URL: `https://app.dataassist.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.dataassist.io/auth/login-api/code`
- Auth: none declared

SPA OTP step 1: issue + email a code.

Errors surfaced to the UI:
  - 400 if CAPTCHA fails
  - 401 if the email isn't a known active account
  - 403 if the account exists but hasn't verified its email
SMTP delivery is fire-and-forget — a transient SMTP outage no longer blocks
the request; failures land in logs/Sentry and the user can hit Resend.
Honeypot triggers a silent 200 with no code issued, so bots see "success"
but no email actually goes out.

## Request body

- CodeRequest
  - `email` string, email, required
  - `captcha_token` string, required
  - `captcha_code` string, required
  - `website` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dataassist/apis/dataassist-io-server.md) · [All operations](https://skmtc.dev/dataassist/apis/dataassist-io-server/llms.txt) · [OpenAPI document](https://skmtc.dev/dataassist/apis/dataassist-io-server/revisions/43b22ccf75fe?raw)
