---
title: "SendSMS"
method: POST
path: "/SMS/SendSMS"
tags: ["SMS Messages"]
---

# SendSMS

`POST /SMS/SendSMS`

## Headers

- `api-key` string, required
- `secret-key` string, required

## Request body

- object
  - `name` string, required — Name of the message
  - `sms_sender_uid` string — Should be active sender name. Can be use only for SMS
  - `groups_uid` string[] — [`a22015eb-1c21-2d2c-b385-662a97d3e5da`] (array,optional) - One of the parameters groups_uid, contacts_uid, phones should be send
  - `contacts_uid` string[]
  - `phones` string[]
  - `type` string, required
  - `content` string, required — Content of the SMS or TTS message
  - `generate_short_links` boolean — If you would like we will create shortcut for all your links in your message content
  - `agreement_signed` boolean, required — You must approve our terms and conditions for every sending of message
  - `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
  - `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.
  - `send_settings` object, required
    - `type` 'immediate' | 'later', required — Possible values are: ''immediate'' / ''later''
    - `hour` string, required — Required if type is 'later'. Example: 16:00
    - `date` string, required — Required if type is 'later'. Example: 2022-02-20

## Response `200`

200

- object
  - `barcode` string
  - `brand` object
    - `name` string
    - `uuid` string
  - `copyDocAddress` string
  - `currency_code` string
  - `customer` object
    - `customer_name` string
    - `email` string
    - `phone` string
    - `subject_code` string
    - `uuid` string
    - `vat_number` string
  - `customer_uuid` string
  - `docUID` string
  - `doc_date` string
  - `doc_type` string
  - `more_info` unknown
  - `number` string
  - `originalDocAddress` string
  - `total_items_base_currency` integer
  - `validDocumentGenerated` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/payplus/apis/payplus-api-documentation-production.md) · [All operations](https://skmtc.dev/payplus/apis/payplus-api-documentation-production/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/payplus/payplus-api-documentation-production/revisions/2a893057392b/schema)
