This page was last edited on December 10, 2013, at 14:46.
Comments or questions about this documentation? Contact us for support!
Use the following queries to retrieve information about agent states.
Returns all of a user's device and channel states.
GET on /me?subresources=*
Success
{ devices: [{ ... id: "12345", userState: { state: "NotReady", reason: "Lunch", displayName: "Out to Lunch", workMode: “AuxWork” } ... }], channels: [{ channel: "email", userState: { state: "NotReady", reason: "Lunch", displayName: "Out to Lunch" }, ... },{ channel: "chat", userState: { state: "NotReady", reasonCode: "Lunch", displayName: "Out to Lunch", }, ... }], ... }
Failure
{ "statusCode": <any integer value above 0>, "statusMessage":details }
Returns all of a user's device states.
GET on /me/devices
Success
{ devices: [{ ... id: idOne userState: { state: "NotReady", reason: "Lunch", displayName: "Out to Lunch" workMode: “AuxWork” } ... // other device properties }, { ... id: idTwo userState: { state: "NotReady", reason: "Lunch", displayName: "Out to Lunch" workMode: “AuxWork” } ... // other device properties } ] }
Failure
{ "statusCode": an integer value above 0, "statusMessage":details }
Returns a user's specific device state.
GET on /me/devices/{id}
Success
{ device: { ... id: idOne userState: { state: "NotReady", reason: "Lunch", displayName: "Out to Lunch" workMode: “AuxWork” } ... // other device properties }
Failure
{ "statusCode": an integer value above 0, "statusMessage":details }
Returns all of a user's channel states.
GET on /me/channels
Success
{ channels: [{ channel: "email", userState: { state: "NotReady", reason: "Lunch" displayName: "Out to Lunch" }, ... // other channel properties }, { channel: "chat", userState: { state: "NotReady", reason: "Lunch" displayName: "Out to Lunch" }, ... }] }
Failed
{ "statusCode": an integer value above 0, "statusMessage":details }
Returns a user's channel state, given a channelId
.
GET on /me/channels/{channelId}
Success
{ channel: { channel: "email", userState: { state: "NotReady", reason: "Lunch" displayName: "Out to Lunch" }, ... // other channel properties }
Failed
{ "statusCode": an integer value above 0, "statusMessage":details }