---
title: "Request Portal Otp"
method: POST
path: "/api/share-links/public/{token}/request-otp"
tags: ["Share Links"]
---

# Request Portal Otp

`POST /api/share-links/public/{token}/request-otp`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/share-links/public/{token}/request-otp`
- Auth: none declared

Send a 6-digit OTP to the email for portal access.

Checks the allowlist, rate-limits to 1 request per 60s, generates
a SHA-256-hashed OTP valid for 10 minutes, and emails it via Resend.

## Path parameters

- `token` string, required

## Request body

- RequestOTPRequest: Request a 6-digit OTP for portal access.
  - `email` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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