Call Logs Report

Call Logs Report

This Voice API supports the following:

API Endpoint

http://portal.thundersms.com/api/v2/

Note: Few elements in the endpoint may change from service to service.

GET

{endpoint}voice/calls

MANDATORY PARAMETERS

Name Descriptions
access_token Access token of your account

Filters

Name Descriptions
datetime[end_at] daterange for filtering the call logs

Example Request

cURL - cURL
curl --location --globoff '{endpoint}api/v2/voice/calls?datetime[end_at]=Apr%2001%2C%202021%20-%20Apr%2012%2C%202021'

Example Response

{
  "status": "OK",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": "c839b4c4-8c0d-11e9-bb88-6c2b59c79f5a",
        "call_from": "917989532456",
        "call_to": "918068287601",
        "service": "IN",
        "bridge": "918068287601",
        "status": "RECEIVED",
        "duration": "00:00:12",
        "billing": "00:00:12",
        "pulsing": "30",
        "charges": "0.0150",
        "start_at": "2019-06-11 05:57:24",
        "end_at": "2019-06-11 05:57:36",
        "hangup_by": "caller",
        "dtmf": null,
        "location": "IN",
        "region": "AP",
        "provider": "RJ",
        "notes": "Hi laxman final fix",
        "audio": null,
        "name": "Laxman ka"
      }
    ],
    "first_page_url": "{endpoint}voice/calls?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "{endpoint}voice/calls?page=1",
    "next_page_url": null,
    "path": "{endpoint}voice/calls",
    "per_page": 15,
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

Recordings Report

API Endpoint

http://portal.thundersms.com/api/v2/

Note: Few elements in the endpoint may change from service to service.

GET

{endpoint}voice/recordings

MANDATORY PARAMETERS

Name Descriptions
access_token Access token of your account

Filters

Name Descriptions
datetime[r.created_at] daterange for filtering the recordings

Example Request

cURL - cURL
curl --location --globoff '{endpoint}api/v2/voice/recordings?datetime[r.created_at]=Apr%2001%2C%202021%20-%20Apr%2012%2C%202021'

Example Response

{
  "status": "OK",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": "c136768e-8c0e-11e9-b795-6c2b59c79f5a",
        "call_from": "918553001122",
        "call_to": "918068287601",
        "audio": "https://s30m.s3.ap-southeast-1.amazonaws.com/rc/190624/c-9180682876012-11061911.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAITXHQTJADVE4ZNPA%2F20190813%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20190813T124618Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=cab675aec80b0d2544232ee3b1c272217c49e2c028a3029d58feffc94bc11576",
        "duration": "00:01:33",
        "agent": null,
        "created_at": "2019-06-11 06:04:21"
      },
      {
        "id": "066f0afa-8c0e-11e9-8b2f-6c2b59c79f5a",
        "call_from": "917989532456",
        "call_to": "918068287601",
        "audio": "https://s30m.s3.ap-southeast-1.amazonaws.com/rc/190624/c-9180682876012-11061911.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAITXHQTJADVE4ZNPA%2F20190813%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20190813T124618Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=cab675aec80b0d2544232ee3b1c272217c49e2c028a3029d58feffc94bc11576",
        "duration": "00:00:47",
        "agent": null,
        "created_at": "2019-06-11 05:59:07"
      }
    ],
    "first_page_url": "{endpoint}voice/recordings?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "{endpoint}voice/recordings?page=1",
    "next_page_url": null,
    "path": "{endpoint}voice/recordings",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
  }
}