Get a campaign by ID
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"
}
}Outbound Campaigns
Get Campaign by ID
Retrieves a specific campaign by ID with recipients grouped by status (pending, queued, in-progress, completed, failed, no-answer).
GET
/
v1
/
voice-agents
/
campaigns
/
{id}
Get a campaign by ID
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"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.tryhamsa.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
Path Parameters
UUID of the campaign.
Example:
"a8f7656f-098b-4c43-b165-7cfd2cc8ac50"
Was this page helpful?
⌘I