Retrieve call logs for an account

This example demonstrates how to return a list of all calls by account.

Replace the following placeholder value in the sample code:

KeyDescription
bearer_tokenYour OAuth token. Read more about OAuth tokens
account_idThe Vonage Business Communications account ID.
start_gteFilter records by start date (greater equal or equal to). Must be in the following format YYYY-MM-DD HH:mm:ss
start_lteFilter records by start date (less equal or equal to). Must be in the following format YYYY-MM-DD HH:mm:ss
page_sizeNumber of records per page
pageCurrent page number
curl --location --request GET 'https://api.vonage.com/t/vbc.prod/reports/v1/accounts/$account_id/call-logs?start:gte=$start_gte&start:lte=$start_lte&page_size=$page_size&page=$page' \--header 'Accept: application/json' \--header 'Authorization: Bearer $bearer'