curl -X POST "https://api.nedzo.ai/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00",
"callingHoursEnd": "17:00"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00:00",
"callingHoursEnd": "17:00:00",
"callingTimezone": null,
"status": "draft",
"createdAt": "2026-10-11T12:00:00Z",
"updatedAt": "2026-10-11T12:00:00Z"
}
Campaigns
Create a campaign
Create a campaign that calls the contacts in a contact view.
POST
/
campaigns
curl -X POST "https://api.nedzo.ai/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00",
"callingHoursEnd": "17:00"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00:00",
"callingHoursEnd": "17:00:00",
"callingTimezone": null,
"status": "draft",
"createdAt": "2026-10-11T12:00:00Z",
"updatedAt": "2026-10-11T12:00:00Z"
}
This endpoint is for the VIP plan only. Other plans get a
403. See Plan access.string
The workspace. Required for an account key. A workspace key uses its own workspace.
string
required
The campaign name, up to 200 characters.
string
required
The voice agent that places the calls. It must be in the same workspace.
string
required
The contact view that decides who gets called. It must be in the same workspace. Create views with the contact views endpoints.
integer
required
Talk minutes the campaign may use each day. When it reaches this, its status becomes
capped until the next calling day.integer
default:"0"
Calls after the first one.
0 means call each contact once.integer[]
required
Days the campaign calls on.
1 is Monday and 7 is Sunday.string
required
When calling starts each day, like
09:00. On the quarter hour, and not before 9am.string
required
When calling stops each day, like
17:00. On the quarter hour, after the start, and not after 8pm.string
A timezone for every contact, like
America/New_York. Leave it out or send null to use each contact’s own timezone. A zone that names no place, like UTC, GMT or a fixed offset, gets a 400.string
default:"draft"
draft or live. A live campaign starts calling at once. A locked workspace cannot add a campaign.Errors
| Status | When |
|---|---|
400 | A field is missing or not valid. |
402 | The account has no plan, or its subscription is not active. |
403 | Your plan is not VIP, or the workspace is locked. |
404 | The workspace does not exist, or your API key cannot reach it. |
curl -X POST "https://api.nedzo.ai/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00",
"callingHoursEnd": "17:00"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "789e4567-e89b-12d3-a456-426614174000",
"name": "September promo",
"voiceAgentId": "aaa11111-bbbb-2222-cccc-333344445555",
"savedViewId": "bbb11111-bbbb-2222-cccc-333344445555",
"dailyCapTalkMinutes": 120,
"maxFollowUps": 2,
"callingDays": [1, 2, 3, 4, 5],
"callingHoursStart": "09:00:00",
"callingHoursEnd": "17:00:00",
"callingTimezone": null,
"status": "draft",
"createdAt": "2026-10-11T12:00:00Z",
"updatedAt": "2026-10-11T12:00:00Z"
}
Was this page helpful?
