Get All SMS Campaigns API
Use this API to retrieve all SMS campaign configurations associated with a specific account.| Method | POST |
|---|---|
| Endpoint | https://{{host}}/agentassist/api/v1/public/{{IID}}/campaign/getAllCampaignDetails |
| Content-Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | Campaign Management |
Path Parameters
| Parameter | Description | Type |
|---|---|---|
host | Environment URL. For example: https://platform.kore.ai | string, required |
IId | the Application ID. | string, required |
Sample Request
Headers
| Header | Description | Required/Optional |
|---|---|---|
auth | JWT token for authentication. | required |
iid | The Application Id. | required |
accountId | The Account Id. | required |
Request Body Parameters
| Parameter | Description | Type |
|---|---|---|
skip | Pagination offset. Number of records to skip. Can be a number or an empty string. | number, optional |
page | Page number for paginated results. Can be a number or an empty string. | number, optional |
limit | Number of records to return per page. Can be a number or an empty string. | number, optional |
type | Type of campaign. Allowed values: “voice” or “sms”. | string, required |
startDate | Filter start timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). | string (ISO format), optional |
endDate | Filter end timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). | string (ISO format), optional |
sortBy.name | Sort by campaign name. Allowed values: “asc”, “desc”. Must be included if any sort field is used. | string, optional |
sortBy.createdAt | Sort by campaign creation date. Allowed values: “asc”, “desc”. | string, optional |
sortBy.updatedAt | Sort by campaign update date. Allowed values: “asc”, “desc”. | string, optional |
filters.status | Filter by campaign status. Allowed values: [‘Active’, ‘Completed’, ‘Ready’, ‘Paused’, ‘Preparing’, ‘Stopped’, ‘Scheduled’, ‘Rescheduled’]. | array[string], optional |
filters.priority | Filter by campaign priority. Allowed values: [1, 2, 3, 4, 5]. | array[number], optional |
Sample Response
Response Body Parameters
| Parameter | Description | Type |
|---|---|---|
status | Status of the API response. Typically success or error. | string |
message | Response message providing context about the operation. | string |
data | Object containing the campaign results and pagination metadata. | object |
data.results | List of campaign objects returned in the current page. | array of objects |
data.results[].name | Campaign name. | string |
data.results[].description | Campaign description. | string |
data.results[].status | Campaign status. Example: Ready, Stopped. | string |
data.results[].priority | Campaign priority level. | string |
data.results[].experienceFlow | ID of the associated experience flow (present only in advanced campaigns). | string |
data.results[].message | Message body object (present only in simple SMS campaigns). | object |
data.results[].message.message | Plain message string sent in the SMS. | string |
data.results[].createdAt | ISO timestamp of campaign creation. (ISO 8601 datetime) | string |
data.results[].updatedAt | ISO timestamp of last campaign update. (ISO 8601 datetime) | string |
data.results[].schedule | Schedule configuration. | object |
data.results[].schedule.isSchedulingEnabled | Whether campaign scheduling is enabled. | boolean |
data.results[].schedule.isRecurrenceEnabled | Whether recurring scheduling is enabled. | boolean |
data.results[].id | Unique ID of the campaign. | string |
data.results[].totalMessagesSent | Number of messages successfully sent in the campaign. | integer |
data.results[].campaignInstanceUpdatedAt | ISO timestamp of last campaign execution update. (ISO 8601 datetime) | string |
data.results[].campaignExecutionType | Type of execution. Example: NORMAL. | string |
data.results[].contactLists | Array of contact list names linked to the campaign. | array of strings |
data.results[].format | Campaign format. Possible values: simple, advanced. | string |
data.skip | Number of records skipped in the result set. | integer |
data.limit | Number of records returned per page. | integer |
data.hasMore | Flag indicating if more records are available. | boolean |
data.totalPages | Total number of pages available. | integer |
data.totalResults | Total number of records matching the query. | integer |