curl --request GET \
--url https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Webhook logs retrieved successfully",
"data": [
{
"id": "<string>",
"tenant_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"type": "call",
"type_label": "Call",
"event_type": "<string>",
"request_method": "<string>",
"request_url": "<string>",
"request_headers": {},
"request_payload": {},
"request_ip": "<string>",
"response_status": 123,
"response_body": {},
"response_time_ms": 123,
"processing_status": "success",
"processing_status_label": "Success",
"error_message": "<string>",
"logs": [
"<unknown>"
],
"related_call_id": "<string>",
"received_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"related_call": {
"id": "<string>"
}
}
],
"pagination": {
"current_page": 123,
"last_page": 123,
"per_page": 123,
"total": 123,
"from": 123,
"to": 123
}
}{
"success": true,
"message": "Project context required"
}{
"error": "Invalid or expired token",
"message": "The provided token is invalid or has expired"
}{
"success": true,
"message": "Access denied. Only owners and admins can view webhook logs."
}{
"success": true,
"message": "Call not found"
}{
"success": true,
"message": "<string>"
}List a call's webhook logs
Requires permission: webhook_logs.read.
What a token may call depends on its role: see Authentication and permissions. Guide: Webhooks.
Convenience endpoint — equivalent to /webhook-logs?related_call_id= but with explicit 404 when the call does not exist or belongs to a different project. Accepts the same query params as index() except related_call_id (which is forced to the route param).
curl --request GET \
--url https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.callva.io/api/v1/external/calls/{callId}/webhook-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Webhook logs retrieved successfully",
"data": [
{
"id": "<string>",
"tenant_id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"type": "call",
"type_label": "Call",
"event_type": "<string>",
"request_method": "<string>",
"request_url": "<string>",
"request_headers": {},
"request_payload": {},
"request_ip": "<string>",
"response_status": 123,
"response_body": {},
"response_time_ms": 123,
"processing_status": "success",
"processing_status_label": "Success",
"error_message": "<string>",
"logs": [
"<unknown>"
],
"related_call_id": "<string>",
"received_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"related_call": {
"id": "<string>"
}
}
],
"pagination": {
"current_page": 123,
"last_page": 123,
"per_page": 123,
"total": 123,
"from": 123,
"to": 123
}
}{
"success": true,
"message": "Project context required"
}{
"error": "Invalid or expired token",
"message": "The provided token is invalid or has expired"
}{
"success": true,
"message": "Access denied. Only owners and admins can view webhook logs."
}{
"success": true,
"message": "Call not found"
}{
"success": true,
"message": "<string>"
}Authorizations
A CallVA API token, sent as Authorization: Bearer <token>.
Creating one. In the CallVA dashboard, open the organization's Settings, then API Keys, and choose Create API Key: give the key a name, choose its role, and choose its project scope - All projects for an organization-wide token, or one project for a project token. The key is shown once, when it is created, and cannot be read again; store it then. Creating keys needs the api_tokens.create permission, which owners and admins hold, and a key cannot create another key.
Organization-wide or project token. A project token works in the one project it was created for; any project named in the request is ignored. An organization-wide token reaches the projects of its organization, and each request names its project with the X-Project-ID header or project_id (query string for reads and deletes, body for writes).
What it can call. The token's role decides which endpoints it may call; each endpoint names the permission it requires, and a token whose role lacks it is answered 403.
Headers
The project this request acts in. Required with an organization-wide token (or send project_id instead); ignored with a project token, which always acts in its own project.