Skip to main content

Examples

Sample Request

{
"parameters": [
{
"uid": "abc-123",
"to": "13233933379",
"name": "Deepak",
"address": "1234"
},
{
"uid": "xyz-123",
"to": "19495790525",
"name": "Jim",
"address": "1234"
}
],
"from": "1234567890",
"templateId": 10,
"sendAt": "",
"packet_uid": "",
"programId": 12345,
"checkOptOut": "",
"sandboxMode": false,
"useDraftTemplate": false
}

Sample Response

{
"isid": "xxxx...xxxx",
"templateId": 10,
"parameters": [
{
"uid": "abc-123",
"to": "13233933379",
"name": "Deepak",
"address": "1234",
"staus": "QUEUED",
"errorCode": 0
},
{
"uid": "xyz-123",
"to": "19495790525",
"name": "Jim",
"address": "1234",
"staus": "REJECTED",
"errorCode": 2
}
],
"from": "1234567890",
"uid": "",
"programId": ""
}

Error Codes

CodeDescription
0No error.
1Invalid to number.
2Invalid from number.
3Missing required fields.
4Exceeded character limit.
5Invalid programId.