Skip to content

Events (GET /events)

Every event we sent, or would have sent, for the last 30 days.

Every example sends your key ID and secret as CALLVIEW_KEY_ID and CALLVIEW_SECRET (see Keys and authentication). The base address is https://v2-api.callview.ai/api/v1/external.

GET /events

Every event we sent or would have sent, newest first, kept 30 days. Keyset-paged: pass the last event’s id as starting_after for the next page. A test key sees only test events (livemode: false), a live key only live ones. Needs the events:read permission; a key limited to some campaigns sees only their events.

Parameters

Name In Type Required Notes
limit query integer Default 50. 1 to 100.
starting_after query string The id of the last event on the previous page.
type query string One event type, a comma-separated list, or the parameter repeated.
created[gte] query string Created at or after (ISO 8601 or unix seconds).
created[lte] query string Created at or before (ISO 8601 or unix seconds).
campaign_id query string (uuid)
object_id query string Only events about this call or lead.
Terminal window
curl -X GET 'https://v2-api.callview.ai/api/v1/external/events' \
-u "$CALLVIEW_KEY_ID:$CALLVIEW_SECRET"

200 A page of events, newest first

{
"data": [
{
"id": "string",
"type": "lead.created",
"created": "2026-10-06T17:05:20Z",
"livemode": true,
"api_version": "2026-10-01",
"data": {
"object": {}
},
"sample": true
}
],
"meta": {
"next_cursor": null,
"has_more": false
}
}

Errors

Status Codes
400 invalid_request
401 authentication_failed
403 permission_denied
404 not_found
429 rate_limited, too_many_concurrent_requests
500 internal_error

GET /events/{id}

The same envelope a webhook carries. Needs events:read. Another organization’s event, or one of the other mode (test/live), is 404.

Parameters

Name In Type Required Notes
id path string yes
Terminal window
curl -X GET 'https://v2-api.callview.ai/api/v1/external/events/evt_callcompletedxxxxxxxxxxx' \
-u "$CALLVIEW_KEY_ID:$CALLVIEW_SECRET"

200 The event, in the same envelope a webhook carries

{
"data": {
"id": "string",
"type": "lead.created",
"created": "2026-10-06T17:05:20Z",
"livemode": true,
"api_version": "2026-10-01",
"data": {
"object": {}
},
"sample": true
}
}

Errors

Status Codes
400 invalid_request
401 authentication_failed
403 permission_denied
404 not_found
429 rate_limited, too_many_concurrent_requests
500 internal_error