Get Transcription API
This endpoint allows you to retrieve the transcription of a call by providing the call ID.
Endpoint
GET https://www.toingg.com/api/v3/get_transcription?callId=CAd1639d5322fc58b6f5b7bdb64f46279d
Headers
accept: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Example Code
Python
import requests
url = "https://www.toingg.com/api/v3/get_transcription"
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/get_transcription';
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
Code | Description | Links |
---|---|---|
200 | Successful Response | No links |
400 | Bad Request | No links |
422 | Validation Error | No links |
Response Details
200 - Successful Response
- Media type: application/json
- Example Value:
"string"
400 - Bad Request
- Response body:
{
"detail": "Unable to fetch call details for the current callId."
}
422 - Validation Error
- Media type: application/json
- Example Value:
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}