---
title: "Request OTP code as an authenticated user"
method: POST
path: "/v1/auth/current/otp/generate/"
---

# Request OTP code as an authenticated user

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

## Request

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

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Response `201`

Success

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `403`: Access denied for share users
- `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)
