---
title: "Request a reset-password OTP or verify it"
method: POST
path: "/v1/reset_password"
tags: ["Reset Password"]
---

# Request a reset-password OTP or verify it

`POST /v1/reset_password`

## Request

- Base URL: `https://identity-api.paymongo.com`
- URL: `https://identity-api.paymongo.com/v1/reset_password`
- Auth: none required

When `code` is omitted, issues an email OTP and returns 201 with type "challenge" carrying `expiration_at`/`resend_at`/`factor`. When `code` is supplied, verifies it and emails the single-use reset link (204).

## Request body

- UserRequestResetPasswordRequestEnvelopeDTO
  - `data` object
    - `attributes` UserRequestResetPasswordRequestDTO
      - `code` string
      - `email` string, required
      - `factor` 'email' | 'sms'

## Response `201`

Created

- object: Standard response containing data and its metadata if any
  - `data` object
    - `attributes` UserResetPasswordChallengeAttributesDTO
      - `expiration_at` integer
      - `factor` string
      - `resend_at` integer
    - `id` string
    - `type` string
  - `has_more` boolean

## Other responses

- `204`: No Content
- `400`: Bad Request
- `401`: Unauthorized
- `410`: Gone
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/paymongo/apis/identity.md) - [All operations](https://skmtc.dev/paymongo/apis/identity/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/identity/revisions/cc3056164874?raw)
