The Vonage Business Communications Reports API enables you to retrieve call logs for your account.
Your application must subscribe to the Reports API suite to use this API.
Retrieve call logs for your account
GET
https://api.vonage.com/t/vbc.prod/reports/accounts/:account_id/call-logs
Host
https://api.vonage.com
GET
/t/vbc.prod/reports/accounts/:account_id/call-logs
Key | Description | Example | Default |
---|---|---|---|
Authorization |
Your OAuth token. Read more about OAuth tokens |
Bearer <access_token> |
None |
The Vonage Business Communications account ID
Filter records by start date (greater equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]
Filter records by start date (less equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]
Filter records by end date (greater equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]
Filter records by end date (less equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]
Number of records per page
Current page number
Filter by called number
Filter by source number
Filter by source user
Filter by destination user
Filter by call direction.
Must be one of:Inbound
or Outbound
Number of records per page
Current page number
Total number of pages
Total number of records
Unique identifier of the call
Indicates if call was on/off network
Indicates if call was international
Source number of the call
Destination number of the call
Direction of the call
Duration of the call in seconds
Start time of the call
End time of the call
Amount charged for the call
Rate charged for the call
Name of the destination device of the call
Full name of the destination user of the call
Destination user of the call
SIP ID of the destination device of the call
Destination extension of the call
Name of the source device of the call
Full name of the source user of the call
Source user of the call
Custom tag added to caller id
SIP ID of the source device of the call
Source extension of the call
Result of the call
Indicates if call was recorded
{
"page_size": 10,
"page": 1,
"total_pages": 10,
"total_items": 100,
"_links": {
"first": {
"href": "abc123"
},
"prev": {
"href": "abc123"
},
"self": {
"href": "abc123"
},
"next": {
"href": "abc123"
}
},
"_embedded": {
"call_logs": [
{
"id": "f27b937d-6dde-441a-9595-006e7302eac1",
"in_network": true,
"international": false,
"from": 17325550100,
"to": 17325550100,
"direction": "Inbound",
"length": 60,
"start": "2019-01-01 00:00:00",
"end": "2019-01-01 00:00:00",
"charge": 0,
"rate": 0,
"destination_device_name": "Smith",
"destination_user_full_name": "John Smith",
"destination_user": "JSmith",
"destination_sip_id": "VH1111111",
"destination_extension": 1000,
"source_device_name": "Smith",
"source_user_full_name": "John Smith",
"source_user": "JSmith",
"custom_tag": "Sales",
"source_sip_id": "VH1111111",
"source_extension": 1000,
"result": "Answered",
"recorded": true
}
]
}
}
{
"status": 1,
"title": "abc123",
"instance": "abc123",
"invalid_parameters": [
{
"name": "abc123",
"reason": "abc123"
}
]
}