---
title: "Start Code"
method: POST
path: "/account/login-methods/codes"
tags: ["account"]
---

# Start Code

`POST /account/login-methods/codes`

## Request

- Base URL: `https://api.beatra.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.beatra.ai/account/login-methods/codes`
- Auth: none declared

Send a code that binds or changes a phone or email (`link`), or re-verifies one of the account's (`reauth`).

## Headers

- `authorization` string, nullable

## Request body

- CodeStartRequest
  - `purpose` 'link' | 'reauth' | 'merge', required
  - `kind` 'phone' | 'email', required
  - `entry` 'row' | 'conflict' | 'wallet' | 'support_link' | 'notice'
  - `destination` string, nullable
  - `ref` string, nullable
  - `replaces` string, nullable
  - `proof` string, nullable
  - `locale` string, nullable

## Response `200`

Successful Response

- CodeStartResponse
  - `challenge_id` string, required
  - `destination` string, required
  - `resend_in` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-31** `825a9846ddd1`: 1 info
  - added the new `notice` enum value to the request property `entry`
- **2026-10-30** `157cd97ccca2`: 2 info
  - added the new optional request property `entry`
  - added the new `merge` enum value to the request property `purpose`
- **2026-10-29** `5f24507e371d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beatra/apis/agent-service-api/changes/account/login-methods/codes/post.md)

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) - [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/54a093c28eee?raw)
