This is an API to display chat options based on the agent’s availability. Check if there are any available agents who can handle chats that start from a specific entry point. This API fetches agent availability status based on text chat only. For instance, if an agent is only available for video chat, then this API returns the agent availability status as false. This API also returns Business Calendar information, if applicable. If the current time is within the business hours, then it returns the agent availability state as true along with the business hours closing time, otherwise the state is returned as false along with the date and time when the business hours will be open next.
OK
Bad Request
Not Acceptable
Internal server error
{- "available": true,
- "businesscalendar": {
- "state": true,
- "closingTime": "2023-06-26T09:30:00.000Z"
}
}