Call Logs

To retreive the current user call logs.

info

{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X GET "https://{api-base-url}/api/v1/users/callLogs?lastSyncDate=xxxx&page=1&size=10"
-H "accept: */*"
-H "Authorization: AuthToken"

Request Params#

ParamDataTypeRequiredDescription
lastSyncDateNumberNoLast sync date to fetch call logs after the given date
pageNumberNoPage number to get the particular page data default value is 1
sizeNumberNoNumber of users per page default value is 10

Responses#

If successful, this action returns call logs in the response body.

{
"status": 200,
"data": {
"callLogs": [
{
"roomId": "xxxx-yyyy-zzzz",
"fromUser": "99XXXXXX11",
"toUser": "99XXXXXX11",
"userList": "99XXXXXX11",
"inviteUserList": "XXXXXX",
"callType": "audio", // String - Possible values are audio, video
"callMode": "onetoone", // String - Possible values are onetoone, onetomany
"groupId": "xxxx",
"callerDevice": "WEB", // String - Possible values are android, web, ios, mobile
"sessionStatus": "closed", // String - Possible values are closed, ended
"startTime": 00000, // Number
"endTime": 00000, // Number
"callTime": 0000, // Number
"callState": 1 // String - Possible values are 0,1,2
}
],
"totalPages": 1,
"totalRecords": 1
},
"message": "Data retrieved successfully"
}

Error#

In the case of an error, an error object like below is returned.

When the token passed in Headers is not given or expired

{
"status": 401,
"message": "Token Expired"
}

In the case of a Bad Request, an error message is returned

{
"status": 400,
"message": "Error Message"
}