---
title: "Send OTP Through E-mail"
description: "Send a one-time passcode to an email address through the PayPlus API, choosing how many minutes the code stays valid and its length (6 digits by default)."
source: https://docs.payplus.co.il/en/payplus/latest/post-otp-send-fore-mail
language: en
product: payplus
version: v1
updated: 2025-05-28
---

# Send OTP Through E-mail

**POST** `/Otp/Send/**FORE-MAIL**`

- Production: `https://restapi.payplus.co.il/api/v1.0/`
- Staging: `https://restapidev.payplus.co.il/api/v1.0/`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `api-key` | header | string | yes | API Key |
| `secret-key` | header | string | yes | Secret Key |

**Request body** (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string |  | The e-mail you would like to send OTP |
| `length` | integer |  | The length of the code you would like us to send, 6 is the default. |
| `expiry_minutes` | integer |  | The expiry minutes the code will expired. |

```json
{
  "email": "string",
  "length": 0,
  "expiry_minutes": 0
}
```

**Response 200** — 200

```json
{}
```

**Response 400** — 400

```json
{}
```
