curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/campaign/{id} \
--header 'Authorization: Bearer <token>'{
"status": true,
"data": {
"campaign": {
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"organization": "<string>",
"agentId": "<string>",
"createdBy": "<string>",
"audienceId": "<string>",
"participantsCount": 123,
"status": "draft",
"maxRetries": 3,
"retryDelay": 15,
"scheduledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"events": [
{
"_id": "<string>",
"campaignId": "<string>",
"triggerSource": "<string>",
"eventAction": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"metrics": {
"total_participants": 500,
"contacts_called": 247,
"contacts_connected": 150
}
}
}Get a campaign with detailed metrics
curl --request GET \
--url https://atoms-api.smallest.ai/api/v1/campaign/{id} \
--header 'Authorization: Bearer <token>'{
"status": true,
"data": {
"campaign": {
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"organization": "<string>",
"agentId": "<string>",
"createdBy": "<string>",
"audienceId": "<string>",
"participantsCount": 123,
"status": "draft",
"maxRetries": 3,
"retryDelay": 15,
"scheduledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"events": [
{
"_id": "<string>",
"campaignId": "<string>",
"triggerSource": "<string>",
"eventAction": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"metrics": {
"total_participants": 500,
"contacts_called": 247,
"contacts_connected": 150
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the campaign
Campaign details with metrics
true
Show child attributes
Show child attributes
The unique identifier for the campaign
The name of the campaign
The description of the campaign
The ID of the organization
The ID of the agent
The ID of the user who created the campaign
The ID of the audience
The number of participants in the campaign
The current status of the campaign
draft, scheduled, running, paused, scheduled_for_retry, completed Maximum number of retry attempts
3
Delay between retries in minutes
15
Scheduled start time for the campaign
The date and time when the campaign was created
The date and time when the campaign was last updated
Campaign performance metrics
Show child attributes
Total number of contacts in the campaign audience
500
Number of unique contacts where call was attempted (statuses IN_PROGRESS, COMPLETED, FAILED, NO_ANSWER)
247
Number of unique contacts who answered and had a conversation (status COMPLETED)
150