Campaigns
❗For sending individual SMS please see SMS_Messages
❗ Opt-Out Links are currently under development. For the time being if you wish to include opt out links speak to a your Account Manager and they will be able set one up for you and give you the ID
GET https://{API URL}/api/Campaigns
** Pagination, Filtering and Sorting is supported see Pagination, Filtering & Sorting for more information
[
"pageIndex": 1,
"totalPages": 428,
"totalRecords": 4274,
"items":
[
{
"id": "string",
"startDateTime": "2023-06-27T03:04:01.374Z",
"sender": "string",
"recipientCount": 0,
"message": "string",
"status": 0,
"optOutLinkId": 0,
"trackLinkUrl": "string",
},
{
// ...
}
]
]
GET https://{API URL}/api/Campaigns/:Id
Parameter | Type | Description |
---|---|---|
:Id | string | ID of the Campaign |
{
"id": "string",
"startDateTime": "2023-06-27T03:04:01.374Z",
"sender": "string",
"recipientCount": 0,
"message": "string",
"status": 0,
"optOutLinkId": 0,
"trackLinkUrl": "string"
}
GET https://{API URL}/api/Campaigns/:Id/Contacts
** Pagination, Filtering and Sorting is supported see Pagination, Filtering & Sorting for more information
Parameter | Type | Description |
---|---|---|
:Id | string | ID of the Campaign |
{
"pageIndex": 1,
"totalPages": 1,
"totalRecords": 4,
"items": [
{
"phoneNumber": "string",
"name": "string",
"custom1": "string",
"custom2": "string",
"id": "string"
},
{
//....
}
]
}
POST https://{API URL}/api/Campaigns
POST https://{API URL}/api/campaigns/:ignoreInvalidPhoneNumbers
Parameter | Type | Description |
---|---|---|
:ignoreInvalidPhoneNumbers | boolean | if true all invalid contacts will be ignored, if false validation will occur on the phonenumbers and any errors will be returned |
{
"startDateTime": "2023-06-27T03:10:04.492Z",
"sender": "string",
"message": "string",
"optOutLinkId": 0,
"trackLinkUrl": "string",
"contacts": [
{
"phoneNumber": "string",
"name": "string",
"custom1": "string",
"custom2": "string",
"contactGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
{
//....
}
]
}
ID as string
```
"abc123"
```
POST https://{API URL}/api/Campaigns/:id
Parameter | Type | Description |
---|---|---|
:Id | string | ID of the Campaign |
{
"startDateTime": "2023-06-27T03:10:04.492Z",
"sender": "string",
"message": "string",
"optOutLinkId": 0,
"trackLinkUrl": "string"
}
POST https://{API URL}/api/Campaigns/:Id
Parameter | Type | Description |
---|---|---|
:Id | string | ID of the Campaign |