Skip to main content

Call Status API

This endpoint allows you to check the status of a call by providing the call ID.

Endpoint

GET https://www.toingg.com/api/v3/call_status?callId=CAd1639d5322fc58b6f5b7bdb64f46279d

Headers

  • accept: application/json
  • Authorization: Bearer YOUR_ACCESS_TOKEN

Example Code

Python
import requests

url = "https://www.toingg.com/api/v3/call_status"
params = {
"callId": "CAd1639d5322fc58b6f5b7bdb64f46279d"
}
headers = {
"accept": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
JavaScript
const fetch = require('node-fetch');

const url = 'https://www.toingg.com/api/v3/call_status';
const params = {
callId: 'CAd1639d5322fc58b6f5b7bdb64f46279d'
};
const headers = {
'accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
};

fetch(url + '?' + new URLSearchParams(params), {
method: 'GET',
headers: headers
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Responses

CodeDescriptionLinks
200Successful ResponseNo links
422Validation ErrorNo links

Response Details

200 - Successful Response

  • Media type: application/json
  • Example Value:
    {
    "status": true,
    "message": "Call details fetched.",
    "result": {
    "status": "completed",
    "start_time": "2024-07-02T13:14:22+00:00",
    "end_time": "2024-07-02T13:15:19+00:00",
    "duration": "57"
    }
    }

422 - Validation Error

  • Media type: application/json
  • Example Value:
    {
    "detail": [
    {
    "loc": [
    "string",
    0
    ],
    "msg": "string",
    "type": "string"
    }
    ]
    }