← API reference

Campaigns API

Outbound campaigns, contacts, and dialing.

GET /campaigns

List campaigns

Auth: API key (Authorization: Bearer). Scope: campaigns:read.

Requires one of the following scopes: campaigns:read.

Parameters

NameInTypeDescription
limitqueryinteger

Max items to return (1-100).

Default 25 · min 1 · max 100

offsetqueryinteger

Number of items to skip.

Default 0 · min 0

statusquerystring
agent_idqueryinteger
searchquerystring

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].idinteger
data[].namestring
data[].descriptionstring | null
data[].statusstring
data[].agent_idinteger
data[].agentobject | null

Accepts any keys

data[].scheduleobject

Accepts any keys

data[].dialingobject

Accepts any keys

data[].contactsobject

Accepts any keys

data[].callsobject

Accepts any keys

data[].metadataany
data[].tagsany
data[].started_atstring (date-time) | null
data[].completed_atstring (date-time) | null
data[].created_atstring (date-time)
data[].updated_atstring (date-time) | null
metaobject

Offset pagination metadata (in the top-level meta object).

meta.totalinteger
meta.limitinteger
meta.offsetinteger
meta.has_moreboolean

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /campaigns

Create a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:write.

Creates a campaign in status ready.

The request fails with 400 bad_request when: tcpa_acknowledged is not true; agent_id is not a voice agent of your organization; caller_id is set but is not an active phone number owned by your organization; a non-empty consent_basis is sent (a consent basis cannot be set through the API; an owner or admin declares it in Settings -> Compliance and campaigns inherit it); time_zone is invalid; a daily time is malformed; or daily_start_time is not before daily_end_time.

Out-of-range dialing and retry settings are not rejected. They are silently clamped to the ranges given on each field.

Requires one of the following scopes: campaigns:write.

Request body application/json required

FieldTypeDescription
namestring required
agent_idinteger required
descriptionstring
calling_daysinteger

Day-of-week bitmask (Sun=1, Mon=2 ... Sat=64) that NARROWS the organization's outbound calling window — it can exclude days the org window allows but never add days it forbids. 0 = no campaign-level restriction (the org window governs). An integer outside 0-127 is not rejected; it is silently clamped into that range. A non-integer value is rejected with 400.

Default 0

daily_start_timestring | null

Earliest dial time of day (HH:MM or HH:MM:SS), evaluated on the same clock as the org window (called-party local time when resolvable, else org timezone). Narrows the org window only — cannot start earlier than the org allows. null = no campaign-level restriction.

daily_end_timestring | null

Latest dial time of day (HH:MM or HH:MM:SS); must be later than daily_start_time. Narrows the org window only. null = no campaign-level restriction.

time_zonestring

Stored for reference only — NOT used to evaluate the calling window. The campaign daily window runs on the same clock as the org window: the called party's local time when resolvable, else the organization timezone. Must be a valid timezone identifier (IANA ids and PHP-accepted aliases).

Default UTC

tcpa_acknowledgedboolean required

Required. Must be true. A missing or false value is rejected with 400.

Always true

caller_idstring

Outbound caller ID. When set it must be an active phone number owned by your organization, otherwise the request fails with 400.

max_concurrent_callsinteger

Out-of-range values are not rejected; they are silently clamped to 1-50.

Default 5

calls_per_minuteinteger

Out-of-range values are not rejected; they are silently clamped to 1-60.

Default 10

retry_attemptsinteger

Out-of-range values are not rejected; they are silently clamped to 0-5.

Default 2

retry_delay_minutesinteger

Out-of-range values are not rejected; they are silently clamped to 5-1440.

Default 30

max_daily_callsinteger

Values below 1 are silently raised to 1.

max_total_callsinteger

Values below 1 are silently raised to 1.

Responses

201 Campaign created

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring
data.agent_idinteger
data.agentobject | null

Accepts any keys

data.scheduleobject

Accepts any keys

data.dialingobject

Accepts any keys

data.contactsobject

Accepts any keys

data.callsobject

Accepts any keys

data.metadataany
data.tagsany
data.started_atstring (date-time) | null
data.completed_atstring (date-time) | null
data.created_atstring (date-time)
data.updated_atstring (date-time) | null

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /campaigns/{id}

Get a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:read.

Requires one of the following scopes: campaigns:read.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring
data.agent_idinteger
data.agentobject | null

Accepts any keys

data.scheduleobject

Accepts any keys

data.dialingobject

Accepts any keys

data.contactsobject

Accepts any keys

data.callsobject

Accepts any keys

data.metadataany
data.tagsany
data.started_atstring (date-time) | null
data.completed_atstring (date-time) | null
data.created_atstring (date-time)
data.updated_atstring (date-time) | null

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

PATCH /campaigns/{id}

Update a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:write.

A running campaign cannot be edited. The request fails with 400 bad_request until the campaign is paused.

It also fails with 400 when agent_id is not a voice agent of your organization, or when caller_id is set but is not an active phone number owned by your organization.

Out-of-range dialing and retry settings are not rejected. They are silently clamped to the ranges given on each field.

Requires one of the following scopes: campaigns:write.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Request body application/json required

FieldTypeDescription
namestring
descriptionstring
agent_idinteger
calling_daysinteger | null

Day-of-week bitmask (Sun=1 ... Sat=64) narrowing the organization's outbound calling window. 0 or explicit null = remove the campaign-level day restriction. An integer outside 0-127 is not rejected; it is silently clamped into that range. A non-integer value is rejected with 400.

daily_start_timestring | null

Earliest dial time of day (HH:MM or HH:MM:SS), narrowing the org window. Explicit null clears the restriction.

daily_end_timestring | null

Latest dial time of day (HH:MM or HH:MM:SS); must be later than daily_start_time. Explicit null clears the restriction.

time_zonestring

Stored for reference only — NOT used to evaluate the calling window (see CampaignCreate.time_zone). Must be a valid timezone identifier.

caller_idstring

Outbound caller ID. When set it must be an active phone number owned by your organization, otherwise the request fails with 400.

max_concurrent_callsinteger

Out-of-range values are not rejected; they are silently clamped to 1-50.

calls_per_minuteinteger

Out-of-range values are not rejected; they are silently clamped to 1-60.

retry_attemptsinteger

Out-of-range values are not rejected; they are silently clamped to 0-5.

retry_delay_minutesinteger

Out-of-range values are not rejected; they are silently clamped to 5-1440.

max_daily_callsinteger

Values below 1 are silently raised to 1.

max_total_callsinteger

Values below 1 are silently raised to 1.

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring
data.agent_idinteger
data.agentobject | null

Accepts any keys

data.scheduleobject

Accepts any keys

data.dialingobject

Accepts any keys

data.contactsobject

Accepts any keys

data.callsobject

Accepts any keys

data.metadataany
data.tagsany
data.started_atstring (date-time) | null
data.completed_atstring (date-time) | null
data.created_atstring (date-time)
data.updated_atstring (date-time) | null

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

DELETE /campaigns/{id}

Delete a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:delete.

Soft-deletes a campaign. Running or paused campaigns must be stopped first (400).

Requires one of the following scopes: campaigns:delete.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Responses

204 Deleted

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /campaigns/{id}/start

Start a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:execute.

Starts a campaign. Allowed from status ready, scheduled, paused, cancelled, stopped or completed.

The request fails with 400 bad_request when the campaign is in any other status, when it has no contacts, or when its voice agent is missing or does not belong to your organization.

Starting from any status other than paused resets every contact that is not completed or dnc to pending with attempts set to 0. Starting from paused resumes without resetting contacts.

Requires one of the following scopes: campaigns:execute.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Idempotency-Keyheaderstring

Replays the stored response for a repeat within about 24 hours, with Idempotency-Replayed: true. A repeat that arrives while the first request is still running gets 409 IDEMPOTENCY_CONFLICT. At most 255 characters; a longer key is 400.

max length 255

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.campaignobject
data.campaign.idinteger
data.campaign.namestring
data.campaign.descriptionstring | null
data.campaign.statusstring
data.campaign.agent_idinteger
data.campaign.agentobject | null

Accepts any keys

data.campaign.scheduleobject

Accepts any keys

data.campaign.dialingobject

Accepts any keys

data.campaign.contactsobject

Accepts any keys

data.campaign.callsobject

Accepts any keys

data.campaign.metadataany
data.campaign.tagsany
data.campaign.started_atstring (date-time) | null
data.campaign.completed_atstring (date-time) | null
data.campaign.created_atstring (date-time)
data.campaign.updated_atstring (date-time) | null
data.messagestring

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

409 A request with this Idempotency-Key is still being processed (code IDEMPOTENCY_CONFLICT). Retry after the original completes.

POST /campaigns/{id}/pause

Pause a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:execute.

Requires one of the following scopes: campaigns:execute.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.campaignobject
data.campaign.idinteger
data.campaign.namestring
data.campaign.descriptionstring | null
data.campaign.statusstring
data.campaign.agent_idinteger
data.campaign.agentobject | null

Accepts any keys

data.campaign.scheduleobject

Accepts any keys

data.campaign.dialingobject

Accepts any keys

data.campaign.contactsobject

Accepts any keys

data.campaign.callsobject

Accepts any keys

data.campaign.metadataany
data.campaign.tagsany
data.campaign.started_atstring (date-time) | null
data.campaign.completed_atstring (date-time) | null
data.campaign.created_atstring (date-time)
data.campaign.updated_atstring (date-time) | null
data.messagestring

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /campaigns/{id}/stop

Stop a campaign

Auth: API key (Authorization: Bearer). Scope: campaigns:execute.

Requires one of the following scopes: campaigns:execute.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.campaignobject
data.campaign.idinteger
data.campaign.namestring
data.campaign.descriptionstring | null
data.campaign.statusstring
data.campaign.agent_idinteger
data.campaign.agentobject | null

Accepts any keys

data.campaign.scheduleobject

Accepts any keys

data.campaign.dialingobject

Accepts any keys

data.campaign.contactsobject

Accepts any keys

data.campaign.callsobject

Accepts any keys

data.campaign.metadataany
data.campaign.tagsany
data.campaign.started_atstring (date-time) | null
data.campaign.completed_atstring (date-time) | null
data.campaign.created_atstring (date-time)
data.campaign.updated_atstring (date-time) | null
data.messagestring

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /campaigns/{id}/stats

Campaign statistics

Auth: API key (Authorization: Bearer). Scope: campaigns:read.

Requires one of the following scopes: campaigns:read.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.campaign_idinteger
data.statusstring
data.contactsobject

Accepts any keys

data.callsobject

Accepts any keys

data.outcomesobject

Accepts any keys

data.estimated_cost_usdnumber

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.started_atstring | null
data.completed_atstring | null

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /campaigns/{id}/dial

Add contacts and start dialing (one action)

Auth: API key (Authorization: Bearer). Scope: campaigns:execute.

Adds the contacts first, then starts the campaign.

If the campaign is already running it is not started again; campaign_started is false and the contacts join the active campaign. Otherwise the campaign is started under the same rules as POST /campaigns/{id}/start.

A failed start does not fail the request. The response is still 201 (200 if no contact was added) with campaign_started: false and the reason in message. The contacts stay added. Always check campaign_started.

Requires one of the following scopes: campaigns:execute.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Idempotency-Keyheaderstring

Replays the stored response for a repeat within about 24 hours, with Idempotency-Replayed: true. A repeat that arrives while the first request is still running gets 409 IDEMPOTENCY_CONFLICT. At most 255 characters; a longer key is 400.

max length 255

Request body application/json required

FieldTypeDescription
contactsarray of (string | object) required

Array of phone strings OR objects with a phone field.

contacts[].phonestring
contacts[].first_namestring

Responses

201 Contacts added (200 if none added)

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.campaignobject
data.campaign.idinteger
data.campaign.namestring
data.campaign.descriptionstring | null
data.campaign.statusstring
data.campaign.agent_idinteger
data.campaign.agentobject | null

Accepts any keys

data.campaign.scheduleobject

Accepts any keys

data.campaign.dialingobject

Accepts any keys

data.campaign.contactsobject

Accepts any keys

data.campaign.callsobject

Accepts any keys

data.campaign.metadataany
data.campaign.tagsany
data.campaign.started_atstring (date-time) | null
data.campaign.completed_atstring (date-time) | null
data.campaign.created_atstring (date-time)
data.campaign.updated_atstring (date-time) | null
data.contacts_addedinteger
data.contacts_failedinteger
data.contactsarray of object
data.contacts[].idinteger
data.contacts[].phonestring
data.contacts[].statusstring

One of: added, failed

data.contacts[].dncboolean
data.contacts[].errorstring
data.campaign_startedboolean

false when the campaign was already running, or when the start failed. On a failed start the status code is still 201 or 200.

data.messagestring

Says whether the campaign was started. Carries the failure reason when campaign_started is false.

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

409 A request with this Idempotency-Key is still being processed (code IDEMPOTENCY_CONFLICT). Retry after the original completes.

GET /campaigns/{id}/contacts

List contacts

Auth: API key (Authorization: Bearer). Scope: campaigns:read.

Requires one of the following scopes: campaigns:read.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

limitqueryinteger

Max items to return (1-100).

Default 25 · min 1 · max 100

offsetqueryinteger

Number of items to skip.

Default 0 · min 0

statusquerystring
outcomequerystring
searchquerystring

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].idinteger
data[].phonestring | null
data[].phone_e164string | null
data[].first_namestring | null
data[].last_namestring | null
data[].emailstring | null
data[].companystring | null
data[].statusstring
data[].outcomestring | null
data[].attemptsinteger
data[].max_attemptsinteger
data[].created_atstring (date-time)
data[].outcome_notesany
data[].last_call_duration_secondsinteger | null
data[].sentiment_scorenumber | null
data[].collected_dataany
data[].custom_dataany
data[].priorityinteger
data[].sourceany
data[].last_attempt_atany
data[].completed_atany
metaobject

Offset pagination metadata (in the top-level meta object).

meta.totalinteger
meta.limitinteger
meta.offsetinteger
meta.has_moreboolean

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /campaigns/{id}/contacts

Add contacts (single or batch)

Auth: API key (Authorization: Bearer). Scope: campaigns:write.

Requires one of the following scopes: campaigns:write.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

Request body application/json required

FieldTypeDescription
contactsarray of object
contacts[].phonestring
contacts[].phone_numberstring

Responses

201 Contacts added (200 if some failed)

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.addedinteger
data.failedinteger
data.totalinteger
data.contactsarray of object
data.contacts[].idinteger
data.contacts[].phonestring
data.contacts[].statusstring

One of: added, failed

data.contacts[].dncboolean
data.contacts[].errorstring

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /campaigns/{id}/contacts/{contactId}

Get a contact

Auth: API key (Authorization: Bearer). Scope: campaigns:read.

Requires one of the following scopes: campaigns:read.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

contactIdpathinteger required

Contact id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.phonestring | null
data.phone_e164string | null
data.first_namestring | null
data.last_namestring | null
data.emailstring | null
data.companystring | null
data.statusstring
data.outcomestring | null
data.attemptsinteger
data.max_attemptsinteger
data.created_atstring (date-time)
data.outcome_notesany
data.last_call_duration_secondsinteger | null
data.sentiment_scorenumber | null
data.collected_dataany
data.custom_dataany
data.priorityinteger
data.sourceany
data.last_attempt_atany
data.completed_atany

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

DELETE /campaigns/{id}/contacts/{contactId}

Remove a contact

Auth: API key (Authorization: Bearer). Scope: campaigns:write.

Requires one of the following scopes: campaigns:write.

Parameters

NameInTypeDescription
idpathinteger required

Campaign id

contactIdpathinteger required

Contact id

Responses

204 Removed

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

Ready to build on Vosy?

API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans

Get Started