> For the complete documentation index, see [llms.txt](https://smarthive-tech-solution.gitbook.io/smarthive-tech-solution-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smarthive-tech-solution.gitbook.io/smarthive-tech-solution-api/whats-app/sending-otp.md).

# Sending OTP

This endpoint allows you to send a one time password to your users.

## SEND

<mark style="color:green;">`POST`</mark> [https://api.smarthivesms.com](https://smsapi-sur2.onrender.com)`/`api/whatsapp/send

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| x-api-key    | `Your Api Key`     |

**Body**

| Name        | Type   | Description         |
| ----------- | ------ | ------------------- |
| `code`      | string | One time password   |
| `recipient` | string | MSISDN of recipient |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "status": "ok",
    "description": "The request has succeeded",
    "data": {
        "msg_id": "yHhKrRghj",
        "recipient": "23490########",
        "status": "Submitted"
    }
}
```

{% endtab %}
{% endtabs %}
