Skip to content

API reference

Get a campaign

GET /campaigns/{id}

Needs campaigns:read. A test key sees the id and name only.

Name In Type Required Notes
id path string (uuid) yes
Terminal window
curl -X GET 'https://v2-api.callview.ai/api/v1/external/campaigns/7c1f2b9e-4a3d-4e8f-9b21-5d6a7e8f9a01' \
-u "$CALLVIEW_KEY_ID:$CALLVIEW_SECRET"

200 The campaign

{
"data": {
"id": "7c1f2b9e-4a3d-4e8f-9b21-5d6a7e8f9a01",
"name": "Roofing leads",
"status": "active",
"livemode": true
}
}
Status Codes
400 invalid_request
401 authentication_failed
403 permission_denied
404 not_found
429 rate_limited, too_many_concurrent_requests
500 internal_error

Part of Campaigns. Every example sends your key ID and secret as CALLVIEW_KEY_ID and CALLVIEW_SECRET (see Keys and authentication).