JSON API » queues » queues/events/list

Gets the fields of queue events for a specified queue, or for all queues in a specified customer. These have only been collected if the queue or queues have been set to do so.

Input parameters

Requires authentication and the user role privilege if a queue is specified, or the administrator role privilege if a customer is specified.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
archiveInteger1 to include archived entries, 0 not to.No0
customerIntegerID of customer to get events for all queues.Yes, unless queue is specified.None
queueIntegerID of queue to get events for.Yes, unless customer is specified.None
startIntegerStart Unix timestamp. -1 for the last time this function was called for the queue or queues.No-1
endIntegerEnd Unix timestamp. -1 for one second ago.No-1

If a customer and start=-1 are both specified, each queue uses its individual last time the function was called.

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.
404The queue or customer does not exist, or you do not have permission to view it.

Data returned

An array of fields, corresponding to the recorded queue events.

Example: With queue (data truncated for brevity)

http://enswitch.example.com/api/json/queues/events/list/?auth_username=user;auth_password=password;queue=123

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

Change history

VersionChanges
4.0archive input parameter added.
3.14customer input parameter added.
3.13Function added.