y.fukuda | 2023-01-13 03:37:09 UTC | #1
I want to check if the queue is on before sending a message with the web messaging guest api, but the guest api didn't have such a function.
So I did a lot of research to see if I could know the queue status by combining the platform api, but I didn't understand, so I asked.
Thank you.
jacobshaw | 2023-01-13 14:24:07 UTC | #2
Hi @y.fukuda The "On Queue" toggle controls the logged-in user's routing status, not the active/inactive status of a queue. If you know the agent you want to check the routing status for, you can use GET /api/v2/users/{userId}/routingstatus
y.fukuda | 2023-01-16 02:57:07 UTC | #4
Hi @jacobshaw
Thank you very much. I certainly got the information.
However, in actual situations, users and queues are rarely in a one-to-one relationship, and users and queues are likely to be many-to-one.
As the number of inquiries increases, the number of users will increase later, and using the userId of the increased user, hit the API for each user to check the queue status and determine whether there is a user who can respond. It seems a little inefficient. It means that if you have 1000 users, you have to hit the API 1000 times.
In order to get the status of the queue in such a case, I feel that it would be convenient to have an API that can obtain information by specifying the queue ID.Is there such a thing?
system | 2023-02-16 02:57:22 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 17974