Send SMS

Page describing the API for sending SMS messages.

GET https://api.jelou.ai/v1/bots/BOT_ID/sms_templates

Get the available SMS templates

Path Parameters

Name
Type
Description

BOT_ID*

String

Bot ID

Query Parameters

Name
Type
Description

query

String

Search by name

An array of objects, each object has the information of a SMS template

{
  "message": [
    "Get Templates successfully."
  ],
  "statusMessage": "success",
  "status": 1,
  "data": {
    "pagination": {
      "limit": 50,
      "total": 1,
      "offset": 0,
      "totalPages": 1
    },
    "_metadata": {},
    "results": [
      {
        "id": 5,
        "template": "Jelou: Hola (X) tu codigo para acceder a nuestra plataforma es (X), este codigo tiene una duracion de 24 Horas.",
        "displayName": "Prueba params",
        "elementName": "prueba_params",
        "companyId": 135,
        "botId": "+123-sms",
        "paramsNumber": 2,
        "params": [
          {
            "label": "Nombre",
            "param": "1"
          },
          {
            "label": "Código",
            "param": "2"
          }
        ],
        "createdAt": "2023-04-25T16:35:58.000Z",
        "updatedAt": "2023-04-25T16:35:58.000Z",
        "state": true,
        "isVisible": true,
        "type": "SMS",
        "providerId": "34687",
        "status": "APPROVED",
        "category": "MARKETING",
        "language": "es"
      }
    ]
  }
}

Send

POST https://api.jelou.ai/v1/sms/BOT_ID/template

Send SMS message to users.

Path Parameters

Name
Type
Description

BOT_ID*

String

Bot ID

Request Body

Name
Type
Description

destinations*

Array

Array of strings representing the numbers of the clients to send the SMS

elementName*

String

Template name.

parameters

Array

Array of strings containing the values to replace in the SMS template. Required if the template has parameters

An array of objects, each object has the information of the id of the message and the destination

[
  {
    "id": "09d0fc2b-59d9-4149-9543-adfa92586615",
    "destination": "593999999999"
  }
]

Last updated