# Send Single SMS

```json
// Body sample
{
    "sender": "Smarthive",
    "recipients": "23490########",
    "msg": "Hello World",
    "type": 1,
    "route": "MKT"
    "ext_ref": "67uf_cu68"
}

```

{% hint style="info" %}

```
ext_ref is an optional field. The value must be unique
```

{% endhint %}

## Send

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

This endpoint allows you to send SMS Message

#### Headers

| Name                                        | Type   | Description  |
| ------------------------------------------- | ------ | ------------ |
| x-api-key<mark style="color:red;">\*</mark> | String | Your API Key |

#### Request Body

| Name                                         | Type   | Description                                         |
| -------------------------------------------- | ------ | --------------------------------------------------- |
| sender<mark style="color:red;">\*</mark>     | String | Sender ID                                           |
| recipients<mark style="color:red;">\*</mark> | String | MSISDN of recipient in international format         |
| msg<mark style="color:red;">\*</mark>        | String | SMS body ( < 905 characters)                        |
| type<mark style="color:red;">\*</mark>       | int    | 0: Flash SMS, 1: SMS delivers to inbox(default)     |
| route<mark style="color:red;">\*</mark>      | String | MKT for Promotional SMS, TRX for Transactional SMS, |
| ext\_ref                                     | String | Unique Message reference                            |

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

```json
{
    "status": "ok",
    "description": "The request has succeeded",
    "data": {
        "msg_id": "DXww578MO",
        "recipient": "2349042839232",
        "status": "Submitted"
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smarthive-tech-solution.gitbook.io/smarthive-tech-solution-api/sms/send-single-sms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
