cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
525
Views
1
Helpful
4
Replies

Webex Search API - currentState

maria-crowley
Level 1
Level 1

I'm trying to query for all agents currently in 'wrapup' state.

I have made a query that doesn't include currentState equals wrapup to show you what my api response says when there actually is an agent in a wrapup state. I have attached the query and the response where it says 'currentState': 'wrapup' in the response. 

However, if I then add in 

{{ channelInfo: {{ currentState: {{ equals: wrapup }} }} }}   to my query I'm getting a 400 bad request even though it told me in the previous response that the currentState was wrapup. 
Why am I getting this 400 bad request?
1 Accepted Solution

Accepted Solutions

I have fixed it. Query attached below

View solution in original post

4 Replies 4

gkovanis
Cisco Employee
Cisco Employee

Hey @maria-crowley , can you check if using wrap_up instead of wrapup gives the proper result? By checking the schema via Postman, I see wrap_up is a valid value, even though in your response I see that the naming convention is different.

Screenshot 2025-03-13 at 11.45.29.png

Hi, I just tried that there and while it doesn't give me back a 400 bad request, I'm getting an empty response. 

I attached my new query and response. 

Even if I have an agent in the wrap up state currently and I run this new query I'm getting back an empty response.

To provide more context, overall I am trying to get the total number of agents who are unavailable. 

So this has to include:

agents that are not set to available (this could be idle state)

agents that are not on a call

agents that are wrapping up a call.

I have fixed it. Query attached below