---
title: "POST /api/v1/users/forgot-password/send-otp"
method: POST
path: "/api/v1/users/forgot-password/send-otp"
tags: ["user-controller"]
---

# POST /api/v1/users/forgot-password/send-otp

`POST /api/v1/users/forgot-password/send-otp`

## Request

- Base URL: `https://api-docs.gosure.ai`
- URL: `https://api-docs.gosure.ai/api/v1/users/forgot-password/send-otp`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/gosure/apis/gosure-api/docs/api/v1/users/forgot-password/send-otp/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CreateOtpRequest
  - `username` string
  - `tokenType` 'LOGIN_SMS_OTP' | 'LOGIN_EMAIL_OTP' | 'FORGOT_PASSWORD_EMAIL_OTP' | 'ONBOARD_USER_EMAIL_OTP'
  - `smsRequest` SmsRequestDto
    - `phoneNumber` string
    - `countryCode` string

## Response `200`

OK

- GenerateOTPResponse
  - `message` string
  - `status` string

## Other responses

- `400`: Bad Request

---

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