Get Outgoing Call Logs API
This API provides developers with access to detailed logs of outgoing calls made through the Alohaa portal.
Endpoint Description
GET
https://outgoing-call.alohaa.ai/v1/external/click-2-call-logs
Parameters
Request Headers
Field
Value
Description
Mandatory
Content-Type
application/json
Specifies the content type of the request.
Yes
x-metro-api-key
*************************
API key for authentication purposes.
Yes
Request Body
Field
Data Type
Description
Mandatory
page_no
String
Page number of the logs to retrieve.
Yes
page_size
String
Number of log entries per page.
Yes
caller_number
Array
Filter logs by a specific caller number.
Yes
Sample Request
{
"x-metro-api-key": "****************"
}
Responses
Success Response
{
"success": true,
"response": {
"call_logs": [
{
"_id": "638f17f1ec14ecda91544aek",
"organisation_id": "259150fd-6c5a-4886-9eb7-901690b9f024",
"agent_name": "Rama",
"caller_number": "XXXXXX0073",
"receiver_number": "XXXXXX3906",
"did_number": "XXXXXXXX8150",
"call_duration": 9,
"recording_url": "https://doosra-ivr-voicemails.s3.ap-south-1.amazonaws.com/ten20_infomedia/DIA63e48bbectsczjopi.mp3",
"created_at": "2023-02-09T05:59:26.267Z",
"updated_at": "2023-02-09T05:59:26.267Z",
"status": "answered"
}
],
"metadata": {
"total": 232,
"query": {
"page_no": 1,
"page_size": 1
}
}
}
}
Failure Response
{
"success": false,
"error": {
"code": 1022,
"reason": "Organisation does not exist"
}
}
Error Codes
Code
Description
1022
Organisation does not exist
Last updated