---
title: "Request Code"
method: POST
path: "/api/v1/auth/code"
---

# Request Code

`POST /api/v1/auth/code`

## Request

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

Mail a code to an address. One per address per window: asking again
sooner sends nothing and answers the same.

## Request body

- CodeRequest
  - `email` string, email, required
  - `request_id` string, uuid, nullable

## Response `202`

Successful Response

- AcceptedResponse: The one answer of every endpoint that takes an email address and may or may not send to it: identical whether the address has an account or not.
  - `status` 'accepted'

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/trovastorage/apis/stock-your-inventory.md) · [All operations](https://skmtc.dev/trovastorage/apis/stock-your-inventory/llms.txt) · [OpenAPI document](https://skmtc.dev/trovastorage/apis/stock-your-inventory/revisions/c75f591a585c?raw)
