---
title: "Enter Request"
method: POST
path: "/api/v1/admin/requests"
---

# Enter Request

`POST /api/v1/admin/requests`

## 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/admin/requests`
- Auth: one of:
  - API key in header `X-Access-Token`
  - HTTP bearer

A request taken on the phone from a real person, typed by an admin
(M4A, F54; DEMAND-1).

It is stored with the admin's id and stays `pending_verification`: no
operator is told and it counts in no demand figure. A confirmation goes to
the person's own address, and the request is distributed only when they
enter the code from that email. The audit event names the admin and the
centre, and nothing of the person.

## Request body

- AdminRequestCreate: A request an admin types for a real person on the phone (DEMAND-1). It is flagged, and distributed only when that person confirms from the email.
  - `category` string, required
  - `answers` AnswerIn[], required
    - `set` string, required
    - `question` string, required
    - `values` string[], required
    - `other` string, nullable
  - `details` string, nullable
  - `site_id` string, uuid, required
  - `contact_name` string, required
  - `contact_email` string, email, required
  - `contact_phone` string, nullable
  - `contact_preference` 'call' | 'message_only', required

## Response `201`

Successful Response

- RequestCreated: The same for an address with an account and one without.
  - `request_id` string, uuid, required
  - `distribution_state` string, required
  - `needs_code` boolean, required

## 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)
