Reports API

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.

Descargar la especificación OpenAPI

Retrieve call logs for your account

Retrieve call logs for your account

gethttps://api.vonage.com/t/vbc.prod/reports/accounts/:account_id/call-logs

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Tu token OAuth.
Más información sobre los tokens OAuth

Headers

Bearer <access_token>

Ruta Parámetros

account_id
string
Requerido

The Vonage Business Communications account ID

Consulta Parámetros

start:gte
string

Filter records by start date (greater equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]

start:lte
string

Filter records by start date (less equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]

end:gte
string

Filter records by end date (greater equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]

end:lte
string

Filter records by end date (less equal or equal to) [yyyy-MM-dd HH:mm:ss in UTC]

page_size
number
Por defecto10

Number of records per page

page
number
Por defecto1

Current page number

to
string

Filter by called number

from
string

Filter by source number

source_user
string

Filter by source user

destination_user
string

Filter by destination user

direction
string

Filter by call direction.

Debe ser uno de:InboundOutbound

Respuestas
Tipo de contenido
application/json

Success

page_size
number
ejemplo10

Number of records per page

page
number
ejemplo1

Current page number

total_pages
number
ejemplo10

Total number of pages

total_items
number
ejemplo100

Total number of records

_links
object
first
object

URL to the first page of records

href
string
prev
object

URL to the previous page of records

href
string
self
object

URL to the current page of records

href
string
next
object

URL to the next page of records

href
string
_embedded
object
call_logs
array
id
string
ejemplof27b937d-6dde-441a-9595-006e7302eac1

Unique identifier of the call

in_network
boolean
ejemplotrue

Indicates if call was on/off network

international
boolean

Indicates if call was international

from
string
ejemplo17325550100

Source number of the call

to
string
ejemplo17325550100

Destination number of the call

direction
string
ejemploInbound

Direction of the call

length
number
ejemplo60

Duration of the call in seconds

start
string
ejemplo2019-01-01 00:00:00

Start time of the call

end
string
ejemplo2019-01-01 00:00:00

End time of the call

charge
number

Amount charged for the call

rate
number

Rate charged for the call

destination_device_name
string
ejemploSmith

Name of the destination device of the call

destination_user_full_name
string
ejemploJohn Smith

Full name of the destination user of the call

destination_user
string
ejemploJSmith

Destination user of the call

destination_sip_id
string
ejemploVH1111111

SIP ID of the destination device of the call

destination_extension
number
ejemplo1000

Destination extension of the call

source_device_name
string
ejemploSmith

Name of the source device of the call

source_user_full_name
string
ejemploJohn Smith

Full name of the source user of the call

source_user
string
ejemploJSmith

Source user of the call

custom_tag
string
ejemploSales

Custom tag added to caller id

source_sip_id
string
ejemploVH1111111

SIP ID of the source device of the call

source_extension
number
ejemplo1000

Source extension of the call

result
string
ejemploAnswered

Result of the call

recorded
boolean
ejemplotrue

Indicates if call was recorded

Ejemplo Respuesta

{
   "page_size": 10,
   "page": 1,
   "total_pages": 10,
   "total_items": 100,
   "_links": {
      "first": {
         "href": "string"
      },
      "prev": {
         "href": "string"
      },
      "self": {
         "href": "string"
      },
      "next": {
         "href": "string"
      }
   },
   "_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
         }
      ]
   }
}