Core REST API
Introduction
The AnywhereNow Core has a Representational State Transfer (REST) Application Programming Interface (API), which can be used to GET realtime data accessible through the Dashboard (SignalR) Service. For example you can use this information to connect with a Microsoft Power BI, Power Automate flow or any other application which can integrate with a REST API.
If AnywhereNow Authentication is enabled.
Additional steps are necessary if you are using AnywhereNow Authentication to enable Microsoft Entra Id credentials to login to your AnywhereNow applications.

Prerequisites
-
Enabled AnywhereNow Authentication see: AnywhereNow Authentication Service
Instructions Core REST API use
AnywhereNow Authentication requires a bearer token authentication mechanism need to be implemented in your application.
-
To get the token, a POST request needs to be sent to the following URL:
CopyToken Request URLhttps://login.anywhere365.cloud/auth/realms/<GUID>/protocol/openid-connect/token
Note
Replace <GUID GUID stands for Globally Unique Identifier (format is always like 2ed153b4-f632-4766-b846-5b2a769b36d1) and is a pseudo random number used in software applications that is assumed to be unique. The total number of unique keys (2<sup>128</sup> of 3.4028×10<sup>38</sup>) is very large and the probability of the creating the same GUID twice is very small, though not 100% guaranteed. The term GUID is generally used by developers working with Microsoft technologies, while UUID is used everywhere else.> with the "AnywhereNow Tenant ID" provided by your AnywhereNow contact (can be retrieved from Partner Portal).
-
In the POST request body, include the following parameters:
-
Key Value Description client_id coreapi The fixed client_id name of the Core API.
username <string> The username of a valid user in your Microsoft Entra ID Formerly known as Azure Active Directory (or Azure AD, or AAD).
password <string> The password belonging to the above username in your Microsoft Entra ID Formerly known as Azure Active Directory (or Azure AD, or AAD).
grant_type client_credentials The authentication grant type for your bearer token.
client_secret <string> The Client Secret value defined by Dialogue Cloud (can be retrieved from Partner Portal)
Example
See below example of a bearer token request (click to enlarge)

Prerequisites
-
Enabled AnywhereNow Authentication see: AnywhereNow Authentication Service
Instructions Core REST API use
Note
Supported by Bundle DC2024.01f and higher.
AnywhereNow Authentication requires a bearer token authentication mechanism need to be implemented in your application.
-
To get the token, a POST request needs to be sent to the following URL:
CopyToken Request URLhttps://login.anywhere365.cloud/auth/realms/<GUID>/protocol/openid-connect/token
Note
Replace <GUID> with the "AnywhereNow Tenant ID" provided by your AnywhereNow contact (can be retrieved from Partner Portal).
-
In the POST request body, include the following parameters:
Example
See below example of a bearer token request (click to enlarge)
Legend
A legend of variables used in the provided examples
Available REST API's
Get All Agents
- No Authentication
- With AnywhereNow Authentication
This shows information about all signed-in agents only (formal signed-in or informal)
Parameters
If you also want to see the formal signed-out agents, you can add a parameter:
- No Authentication
- With AnywhereNow Authentication
GET http(s)://<fqdn>/dashboardservice/api/<uccname>/agent?includeFormalStopped=true
GET http(s)://<fqdn>/dashboardservice/api/v2/<uccname>/agent?includeFormalStopped=true
Fields
Item | Description |
---|---|
ActivityToken |
The current activity of the agent. Empty of no activity. |
AverageHandlingTime |
The average handling time of the agent |
CsPresenceState |
Name of the presence of the agent. |
DeviceType |
The last active device of the agent. |
LastPresenceChange |
The date/time of the last presence change of the agent |
LastReasonCodeChange |
The date/time of the last reason code change the agent has done |
MaxChats |
When the agent can't receive anymore chats than he currently is handling, the value would be true. |
PresenceState |
The current presence state of the agent. |
ReasonCode |
The current reason code the agent is in |
RemainingWrapUpTime |
The reaming wrap up time (DischargeDuration) the agent has. |
SipAddress | |
Skills |
The skills the agent owns.
|
TotalCallsToday |
The amount of calls the agent has accepted today. |
Get Agent By URI (no “sip:”)
- No Authentication
- With AnywhereNow Authentication
This shows information about all signed-in agents only (formal signed-in or informal)
Fields
Item | Description |
---|---|
AverageHandlingTime |
The average handling time of the agent |
LastPresenceChange |
The date/time of the last presence change of the agent |
LastReasonCodeChange |
The date/time of the last reason code change the agent has done |
MaxChats |
When the agent can receive multiple chats, the value would be true. |
PresenceState |
The current presence state of the agent. |
ReasonCode |
The current reason code the agent is in |
RemainingWrapUpTime |
The reaming wrap up time (DischargeDuration) the agent has. |
SipAddress |
The SIP address of the agent. |
Skills |
The skills the agent owns.
|
TotalCallsToday |
The amount of calls the agent has accepted today |
Get Active calls of Agent By URI (no sip:)
- No Authentication
- With AnywhereNow Authentication
Fields
-
String: Shows the LineURI(s) of the callers who are currently connected to this agent.
Get Calls
- No Authentication
- With AnywhereNow Authentication
This shows information about all active UCC calls (in queue, in IVR Interactive Voice Response, or IVR, is a telephone application to take orders via telephone keypad or voice through a computer. By choosing menu options the caller receives information, without the intervention of a human operator, or will be forwarded to the appropriate Agent., connected with agent, etc)
Fields
Item | Description |
---|---|
AcceptedSince |
The date/time when the agent accepted the call |
Agent SipAdress |
The SIP address of the agent who accepted the call |
CallId |
The unique correlation id of the call |
ConnectedSince |
The date/time when the caller entered the UCC |
CustomerSipAddress |
The SIP address or LineURI of the caller |
DisconnectedSince |
The date/time of the disconnect of the call |
InQueueSince |
The date/time of moment the caller went into the queue |
Skill |
The skill the caller is in |
AgentDisplayName |
The display name of the agent who accepted the call |
CurrentlyHunting |
When the UCC is hunting the agent the value would be true |
CustomerDisplayName |
The display name of the caller |
Huntlist |
List of agent who are selected for the hunt. Based on the reservations |
IsHunting |
When the UCC is hunting the agent the value would be true |
IsOnHold |
When the caller is on hold, the value would be true |
Get Calls by skill
- No Authentication
- With AnywhereNow Authentication
This shows information about all active UCC calls per skill (in queue, in IVR, connected with agent, etc)
Fields
Item | Description |
---|---|
AcceptedSince |
The date/time when the agent accepted the call |
Agent SipAdress |
The SIP address of the agent who accepted the call |
CallId |
The unique correlation id of the call |
ConnectedSince |
The date/time when the caller entered the UCC |
CustomerSipAddress |
The SIP address or line URI of the caller |
DisconnectedSince |
The date/time of the disconnect of the call |
InQueueSince |
The date/time of moment the caller went into the queue |
Skill |
The skill the caller is in |
AgentDisplayName |
The display name of the agent who accepted the call |
CurrentlyHunting |
When the UCC is hunting the agent the value would be true |
CustomerDisplayName |
the display name of the caller |
IsHunting |
When the UCC is hunting the agent the value would be true |
IsOnHold |
When the caller is on hold, the value would be true |
Get Queues
Note
Please note that only skills that have the setting "ShowOnWallboard" enabled will be displayed in the response.
- No Authentication
- With AnywhereNow Authentication
This shows information about all queues (skills)
Fields
Item | Description |
---|---|
AgentsOnCall |
The amount of agents who are in a call for this skill |
AvgWait |
The average wait time (callers in the queue) in seconds |
ID |
The internal id of the skill |
LongestWait |
The time in seconds of the call who was in the queue for the longest time |
Name |
The name of the skill |
CurrentSize |
The amount of callers in the queue for this particular skill |
MaxSize |
The maximum size of the skill (OverflowThreshold setting) |
Name |
The name of the skill |
Queues by skill
Note
Please note that only skills that have the setting "ShowOnWallboard" enabled will be displayed in the response.
- No Authentication
- With AnywhereNow Authentication
Fields
Item | Description |
---|---|
AgentsOnCall |
The amount of agents who are in a call for this skill |
AvgWait |
The average wait time (callers in the queue) in seconds |
ID |
The internal id of the skill |
LongestWait |
The time in seconds of the call who was in the queue for the longest time |
Name |
The name of the skill |
CurrentSize |
The amount of callers in the queue for this particular skill |
MaxSize |
The maximum size of the skill (OverflowThreshold setting) |