Создание имен отправителей
post
https://direct.i-dgtl.ru/api
/v1/sender-names
Создание имени отправителя (SMS)
Возможные варианты перечислений:
Параметр
Варианты
channelType
  • SMS

Пример запроса

JSON
cURL
1
POST https://direct.i-dgtl/ru/api/v1/sender-names
2
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
3
Content-Type: multipart/form-data; boundary=--part
4
--part
5
Content-Disposition: form-data; name="file1"; filename="document1.pdf"
6
< ./path/document1.pdf
7
--part
8
Content-Disposition: form-data; name="file2"; filename="document2.png"
9
< ./path/document2.png
10
Content-Disposition: form-data; name="body"
11
Content-Type: application/json
12
{
13
"channelType": "SMS",
14
"commonType": "PROMO",
15
"brand": "MTS",
16
"dateFrom": "2020-07-07T21:00:00Z",
17
"senderName": "test",
18
"counteragentName": "Контрагент, ООО",
19
"counteragentInn": "123451729124"
20
}
Copied!
1
curl -X POST 'https://direct.i-dgtl.ru/api/v1/sender-names' \
2
-H 'Content-Type: multipart/form-data;boundary=--part' \
3
-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==' \
4
-F 'body={"channelType":"SMS","commonType":"PROMO","brand":"MTS","dateFrom":"2020-07-07T21:00:00Z","senderName":"test","counteragentName":"Контрагент, ООО","counteragentInn":"123451729124"}' \
5
-F '[email protected]/document1.pdf'
6
-F '[email protected]/document2.png'
Copied!