curl --request GET \
--url https://api.puretalk.ai/api/campaigns \
--header 'X-API-KEY: <api-key>'{
"msg": "Campaigns retrieved successfully",
"err": false,
"results": {
"count": 100,
"campaigns": [
{
"ai_assistant": {
"assistant_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Assistant",
"variables": [
"name"
]
},
"schedules": [
{
"campaign_schedule_id": "123e4567-e89b-12d3-a456-426614174000",
"day": "Monday",
"start_time": "10:00",
"end_time": "11:00"
}
],
"campaign_id": "123e4567-e89b-12d3-a456-426614174000",
"type": "call",
"name": "My Campaign",
"start_date": "2021-01-01",
"end_date": "2021-01-01",
"status": "active",
"created_at": "2021-01-01",
"updated_at": "2021-01-01",
"total_tasks": 100,
"completed_tasks": 100,
"pending_tasks": 100
}
]
}
}Returns all campaigns from the system that the user has access to
curl --request GET \
--url https://api.puretalk.ai/api/campaigns \
--header 'X-API-KEY: <api-key>'{
"msg": "Campaigns retrieved successfully",
"err": false,
"results": {
"count": 100,
"campaigns": [
{
"ai_assistant": {
"assistant_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Assistant",
"variables": [
"name"
]
},
"schedules": [
{
"campaign_schedule_id": "123e4567-e89b-12d3-a456-426614174000",
"day": "Monday",
"start_time": "10:00",
"end_time": "11:00"
}
],
"campaign_id": "123e4567-e89b-12d3-a456-426614174000",
"type": "call",
"name": "My Campaign",
"start_date": "2021-01-01",
"end_date": "2021-01-01",
"status": "active",
"created_at": "2021-01-01",
"updated_at": "2021-01-01",
"total_tasks": 100,
"completed_tasks": 100,
"pending_tasks": 100
}
]
}
}Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
The page number to return
The maximum number of results to return
Campaigns response
Message from the API
"Campaigns retrieved successfully"
Indicates if the response is an error
false
Show child attributes
Total number of campaigns
100
Show child attributes
Show child attributes
Show child attributes
ID of the campaign schedule
"123e4567-e89b-12d3-a456-426614174000"
Day of the campaign schedule
"Monday"
Start time of the campaign schedule
"10:00"
End time of the campaign schedule
"11:00"
ID of the campaign
"123e4567-e89b-12d3-a456-426614174000"
Type of the campaign
"call"
Name of the campaign
"My Campaign"
Start date of the campaign
"2021-01-01"
End date of the campaign
"2021-01-01"
Status of the campaign
"active"
Created at date of the campaign
"2021-01-01"
Updated at date of the campaign
"2021-01-01"
Total number of tasks
100
Total number of completed tasks
100
Total number of pending tasks
100
Was this page helpful?