curl --request GET \
--url https://api.tryhamsa.com/v1/voice-agents/campaigns/{id} \
--header 'Authorization: <api-key>'{
"success": true,
"message": "Campaign retrieved successfully",
"messageKey": "CAMPAIGN_RETRIEVED_SUCCESSFULLY",
"data": {
"id": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"name": "Q1 Customer Outreach",
"status": "SCHEDULED",
"sendType": "NOW",
"scheduledDate": "2025-12-01T09:00:00Z",
"scheduledTimezone": "America/New_York",
"timeRange": {
"days": [
"MONDAY",
"TUESDAY",
"WEDNESDAY"
],
"startCallingTime": "09:00",
"endCallingTime": "17:00"
},
"reservedConcurrency": 10,
"projectId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30",
"voiceAgentId": "68f7656f-098b-4c43-b165-7cfd2cc8ac40",
"totalRecipients": 100,
"agentName": "Call Center Agent",
"recipients": {
"pending": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"queued": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"inProgress": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"completed": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"failed": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"noAnswer": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
]
},
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
}Retrieves a specific campaign by ID with recipients grouped by status (pending, queued, in-progress, completed, failed, no-answer).
curl --request GET \
--url https://api.tryhamsa.com/v1/voice-agents/campaigns/{id} \
--header 'Authorization: <api-key>'{
"success": true,
"message": "Campaign retrieved successfully",
"messageKey": "CAMPAIGN_RETRIEVED_SUCCESSFULLY",
"data": {
"id": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"name": "Q1 Customer Outreach",
"status": "SCHEDULED",
"sendType": "NOW",
"scheduledDate": "2025-12-01T09:00:00Z",
"scheduledTimezone": "America/New_York",
"timeRange": {
"days": [
"MONDAY",
"TUESDAY",
"WEDNESDAY"
],
"startCallingTime": "09:00",
"endCallingTime": "17:00"
},
"reservedConcurrency": 10,
"projectId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30",
"voiceAgentId": "68f7656f-098b-4c43-b165-7cfd2cc8ac40",
"totalRecipients": 100,
"agentName": "Call Center Agent",
"recipients": {
"pending": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"queued": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"inProgress": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"completed": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"failed": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
],
"noAnswer": [
{
"id": "b8f7656f-098b-4c43-b165-7cfd2cc8ac60",
"campaignId": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
"phoneNumber": "+1234567890",
"name": "John Doe",
"ignoreE164Validation": false,
"dynamicVariables": {},
"status": "PENDING",
"latestActionTimestamp": "2025-12-06T11:00:00.000Z",
"attempts": 0,
"maxAttempts": 3,
"nextRetryAt": "2025-12-06T11:00:00.000Z",
"jobId": "c8f7656f-098b-4c43-b165-7cfd2cc8ac70",
"lastError": "Connection timeout",
"completedAt": "2025-12-06T11:00:00.000Z",
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
]
},
"createdAt": "2025-12-06T10:00:00.000Z",
"updatedAt": "2025-12-06T10:00:00.000Z"
}
}Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token
UUID of the campaign.
"a8f7656f-098b-4c43-b165-7cfd2cc8ac50"
Was this page helpful?