---
title: "SendSMS"
description: "Send an SMS or TTS message to groups, contacts or phone numbers, immediately or scheduled for later, with options for short links, an unsubscribe link and a status callback."
source: https://docs.payplus.co.il/en/payplus/latest/post-sms-sendsms
language: en
product: payplus
version: v1
updated: 2025-05-28
---

# SendSMS

**POST** `/SMS/SendSMS`

- 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 |
| --- | --- | --- | --- |
| `name` | string | yes | Name of the message |
| `type` | string | yes |  |
| `phones` | array |  |  |
| `content` | string | yes | Content of the SMS or TTS message |
| `groups_uid` | array |  | [`a22015eb-1c21-2d2c-b385-662a97d3e5da`] (array,optional) - One of the parameters groups_uid, contacts_uid, phones should be send |
| `callback_url` | string |  | string URL to receive SMS notifications with sending status, URL must be secure [HTTPS] and the data will be sent using POST method. SMS response can be found in the next method. |
| `contacts_uid` | array |  |  |
| `send_settings` | object | yes |  |
| `send_settings.date` | string | yes | Required if type is 'later'. Example: 2022-02-20 |
| `send_settings.hour` | string | yes | Required if type is 'later'. Example: 16:00 |
| `send_settings.type` | string | yes | Possible values are: ''immediate'' / ''later'' |
| `sms_sender_uid` | string |  | Should be active sender name. Can be use only for SMS |
| `agreement_signed` | boolean | yes | You must approve our terms and conditions for every sending of message |
| `generate_short_links` | boolean |  | If you would like we will create shortcut for all your links in your message content |
| `show_unsubscribe_link` | boolean |  | To show unsubscribe link at the end of the SMS message type only |
| `unsubscribe_link_title` | string |  | What is the word to show in the message to unsubscribe |

```json
{
  "name": "string",
  "type": "string",
  "phones": [
    "string"
  ],
  "content": "string",
  "groups_uid": [
    "string"
  ],
  "callback_url": "string",
  "contacts_uid": [
    "string"
  ],
  "send_settings": {
    "date": "string",
    "hour": "string",
    "type": "immediate"
  },
  "sms_sender_uid": "string",
  "agreement_signed": false,
  "generate_short_links": false,
  "show_unsubscribe_link": false,
  "unsubscribe_link_title": "string"
}
```

**Response 200** — 200

```json
{
  "barcode": "472819632332439",
  "brand": {
    "name": "Company Name",
    "uuid": "67a8cc93-75ac-4832-8386-3eb5b24bf3d0"
  },
  "copyDocAddress": "https://restapi.payplus.co.il/getdoc/s/c/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf",
  "currency_code": "ILS",
  "customer": {
    "customer_name": "John Doe",
    "email": "johndoe@example.com",
    "phone": "123456789",
    "subject_code": "987654321",
    "uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc",
    "vat_number": "1231231"
  },
  "customer_uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc",
  "docUID": "1fa79282-61d1-4898-b7b9-afa67f46d34a",
  "doc_date": "2022-11-15",
  "doc_type": "inv_tax",
  "more_info": null,
  "number": "SCP/50042",
  "originalDocAddress": "https://restapi.payplus.co.il/getdoc/s/o/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf",
  "total_items_base_currency": 150,
  "validDocumentGenerated": true
}
```

**Response 400** — 400

```json
{}
```
