> For the complete documentation index, see [llms.txt](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/user/verify-otp.md).

# Verify OTP

The `POST /user/verify-otp/` endpoint allows users to verify an OTP (One-Time Password) sent to their email.

***

#### **Parameters**

| **Field**  | **Type**       | **Required** | **Description**                | **Constraints**   |
| ---------- | -------------- | ------------ | ------------------------------ | ----------------- |
| `email`    | string (email) | Yes          | The email address of the user. | Minimum length: 1 |
| `otp_code` | string         | Yes          | The 6-digit OTP code.          | Length: 6         |

***

#### **Request Body Example**

```json
{
  "email": "user@example.com",
  "otp_code": "123456"
}
```

***

#### **Responses**

**201 Created**

The OTP verification was successful.

**Response Body Example:**

```json
{
  "email": "user@example.com",
  "otp_code": "123456"
}
```
