Перейти к основному содержанию
GET
/
v1
/
sms
/
broadcasts
/
{id}
cURL
curl --request GET \
  --url https://api.example.com/v1/sms/broadcasts/{id}/
{
  "id": 123,
  "name": "<string>",
  "message": "<string>",
  "tenant": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "recipients": [
    {
      "phone": "<string>",
      "client_id": 123
    }
  ],
  "trigger": 0,
  "schedule": "<string>",
  "send_time": "2023-11-07T05:31:56Z",
  "enabled": true
}

Параметры пути

id
integer
обязательно

Ответ

200 - application/json
id
integer
обязательно
name
string
обязательно
Maximum string length: 255
message
string
обязательно
Maximum string length: 1024
tenant
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
recipients
object[]
обязательно
trigger
enum<integer>
  • 0 - Default
  • 1 - Birthday
  • 2 - Debt
  • 3 - Penalty
  • 4 - Congratulations
Доступные опции:
0,
1,
2,
3,
4
Требуемый диапазон: 0 <= x <= 32767
schedule
string | null
Maximum string length: 64
Pattern: ^(\*|([0-9]|[1-5][0-9])) (\*|([01]?[0-9]|2[0-3])) (\*|([1-9]|[12][0-9]|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6]))$
send_time
string<date-time> | null
enabled
boolean