JSON API » recording » recording/recordings/list

Gets the fields of call recordings.

Input parameters

Requires authentication and the record role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
customerIntegerID of customer to get record recordings for.Yes, unless recordgroup is specified.Customer of authentication user.
recordgroupIntegerID of record group to get record recordings for.Yes, unless customer is specified.All in customer.
startIntegerStart Unix timestamp.Recommended0
endIntegerEnd Unix timestamp.RecommendedNow.
calledStringReturn calls with called number containing this string. Empty string for all calls.NoEmpty string.
callerStringReturn calls with callerid containing this string. Empty string for all calls.NoEmpty string.
completeInteger1 to return only completed calls, 0 to return only calls in progress, -1 to return all calls.No1
totaltime_minimumIntegerMinimum call duration in seconds.No0
totaltime_maximumIntegerMaximum call duration in seconds. -1 for no limit.No-1
sortStringField to sort by. "cnumber", "expires", "snumber", "start", or "totaltime".No"start"
descendingInteger1 to sort descending, 0 not to.No0

Specify the customer or recordgroup, but not both. Failure to specify the start and end may put a heavy load on the database.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

An array of fields, corresponding to the rows of the recordings table in the database. Sound files are not included.

Example: With record group

http://enswitch.example.com/api/json/recording/recordings/list/?auth_username=user;auth_password=password;recordgroup=123;start=1230000000;end=1240000000

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "uniqueid":"1234567890", ... }, { "uniqueid":"1234567891", ... } ] }

Change history

VersionChanges
3.14end input parameter changed to return data < value instead of <= value.
3.13Function added.