---
title: "Request OTP code"
method: POST
path: "/v1/auth/otp/generate/"
---

# Request OTP code

`POST /v1/auth/otp/generate/`

## Request

- Base URL: `https://app.iconik.io/API/auth`
- URL: `https://app.iconik.io/API/auth/v1/auth/otp/generate/`
- Auth: none declared. Required headers: `Temp-Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-auth/docs/v1/auth/otp/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `Temp-Auth-Token` string, required

## Request body

- MultiDomainLoginSchema
  - `app_name` string
  - `email` string, email, required
  - `marketplace_signup_nonce` string
  - `otp` string, nullable
  - `otp_type` string, nullable
  - `system_domain_id` string, uuid, required

## Response `201`

Success

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-auth.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-auth/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-auth/revisions/5dde985bb742?raw)
