RecentCalls

Get RecentCalls

GET /v1/Accounts/{account_sid}/SpeechCredentials

RecentCalls in the database represent call detail records (CDRs) that are stored. The time-series database retains CDRs for a period of 30 days

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PARAMS

Name

Description

page

Number of page

count

Page size

days

Total days

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

Example request:

curl -X 'GET' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/RecentCalls?page=1&count=25&days=7' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a'
{
    "total": 2,
    "page_size": "25",
    "page": "1",
    "data": [
        {
        "attempted_at": "2021-05-25T03:06:49.062Z",
        "account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
        "answered": true,
        "answered_at": "2021-05-25T03:06:49.230Z",
        "call_sid": null,
        "direction": "inbound",
        "duration": 9,
        "from": "+84376120177",
        "host": "210.211.108.1",
        "remote_host": "210.211.108.3",
        "sip_callid": "[email protected]",
        "sip_status": 200,
        "terminated_at": "2021-05-25T03:06:58.439Z",
        "termination_reason": "called party hungup",
        "to": "+84899199628",
        "trunk": "SBC"
        },
        {
        "attempted_at": "2021-05-25T03:10:04.355Z",
        "account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
        "answered": true,
        "answered_at": "2021-05-25T03:10:04.557Z",
        "call_sid": null,
        "direction": "inbound",
        "duration": 29,
        "from": "+84376120177",
        "host": "172.31.33.10",
        "remote_host": "210.211.108.3",
        "sip_callid": "[email protected]",
        "sip_status": 200,
        "terminated_at": "2021-05-25T03:10:34.031Z",
        "termination_reason": "caller hungup",
        "to": "+84899199628",
        "trunk": "SBC"
        }
    ]
}

Please contact us for timely support via: