Campaigns
List campaigns
Permission
campaigns:readAuthenticationGET
Lists campaigns in reverse creation order with their derived recipient counters. Reading campaigns needs only the permission — history stays visible to an organization whose campaigns entitlement was withdrawn.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
cursor?stringOpaque pagination cursor from a previous response's next_cursor.
limit?integerRange
1 <= value <= 200Default
50q?stringCase-insensitive substring search of the campaign name.
Length
1 <= length <= 200created_from?stringInclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).
created_to?stringExclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.
status?stringComma-separated campaign statuses. Duplicates are ignored; empty or unsupported values are rejected.
Matching campaigns.
application/json- response
data*array<>next_cursor*string|nullcurl -X GET 'https://api.kejue.co/v1/campaigns'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "name": "string", "description": "string", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "agent_name": "string", "agent_version_id": "1c2a713c-7248-4a56-a9eb-0bdcb3a41741", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_name": "string", "number_pool_id": "3a45de3c-a4e6-4170-8728-80f90ed3f295", "number_pool_name": "string", "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576", "phone_number_e164": "string", "trunk_id": "d1c0247b-6570-4df5-9107-7986a22149d1", "transport": "livekit_sip", "status": "draft", "paused_reason": "manual", "paused_detail": "string", "start_at": "2019-08-24T14:15:22Z", "end_at": "2019-08-24T14:15:22Z", "policy_overrides": { "timezone": "string", "windows": [ { "weekdays": [ 1 ], "start": "09:00", "end": "17:00" } ], "max_attempts": 1, "destination_busy_backoff_seconds": [ 1 ], "destination_unavailable_backoff_seconds": [ 1 ], "destination_declined_backoff_seconds": [ 1 ], "retry_declined": true, "timezone_mode": "custom" }, "max_concurrent": 1, "reserved_for_other": 0, "board_id": "75e8c400-2dbc-43a3-9af4-ff9e6c099385", "auto_resume_on_renewal": true, "voicemail_action": "hangup", "voicemail_message": "string", "counters": { "total": 0, "pending": 0, "queued": 0, "calling": 0, "completed": 0, "failed": 0, "canceled": 0, "excluded": 0 }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "dncr": { "mode": "inherit", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9" } } ], "next_cursor": "string"}