---
title: "Generate Otp"
method: POST
path: "/api/companies/setup/otp"
tags: ["company-setup"]
---

# Generate Otp

`POST /api/companies/setup/otp`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/companies/setup/otp`
- Auth: HTTP bearer

Generate a one-time password for company setup. Requires authentication.

## Headers

- `X-User-Email` string, nullable
- `X-User-Name` string, nullable

## Request body

- OTPGenerateRequest
  - `company_uuid` string, uuid4, required
  - `single_use` boolean
  - `setup` boolean
  - `expires_days` integer, nullable

## Response `201`

Successful Response

- OTPGenerateResponse
  - `token` string, required
  - `company_uuid` string, uuid4, required
  - `expires_at` string, date-time, required
  - `single_use` boolean
  - `setup` boolean

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
