cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
332
Views
0
Helpful
1
Replies

WxCC HTTPRequest - GetAgentActivities API

marahman78
Level 4
Level 4

Hi,

I am trying to fetch RONA state of the agent from GetAgentActivities API. I have created a HTTPRequest, see the following config:

Request Path: /v1/agents/activities?from={{VariablewithEPOCH}}
Method: Get
Query Parameters: Key: agentIds & Value: {{FetchingidfromusersAPI}}
Content Type: Application/JSON

Parse Settings:
Content Type: JSON
Output Variable: <Variable called Status>
Path Expression: $.data[?(@.active == true && @.currentState == 'idle' )].idleCodeName
which I checked under JSONPath Online Evaluator.

Debug Output:

Somehow I am not getting any output 

=================================
Activity Inputs
Output Variable(s) :
[{"outputVariable":"STATUS","jsonPathExp":"$.data[?(@.active == true && @.currentState == 'idle' )].idleCodeName","varType":"STRING"}]
HTTP Request Headers :{}
Request Path :/v*/agents/a*********?from=1771826118981
Connector :24330b15-*********-b0d5-d3c9ea8c7159
Query Parameters :{"agentIds":"["101b2dad-*********-9d22-9ecab9175cc1"]"}
Method :GET
Content Type :JSON
Response Timeout :2000
Use Authenticated Endpoint :true
Content Type :Application/JSON
Number of retries :1
Enable decryption :true
Request Body :[]
Activity Outputs
httpResponseBody :
{"meta":{"orgId":"308ca5bd-eed2-9fc9-916c-d673fc23e631"},"data":[]}
httpResponseHeaders :{"Date":["Mon, 23 Feb 2026 05:55:19 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"C*********":["k*********"],"link":["</v*/agents/a*********?from=1771826118981&page=0&pageSize=100>;rel=\"self\""],"x*********type-options":["nosniff"],"x-xss-p*********":["1; mode=block"],"cache-control":["no-cache, no-store, m**-age=0, must-r*********"],"pragma":["no-cache"],"expires":["0"],"strict-*********-security":["max-age=3******* ; includeSubDomains"],"x-frame-options":["DENY"],"content-*********policy":["default-src 'self'; frame-********* 'self'; base-uri 'self'; b*********mixed-content"],"vary":["accept-encoding"],"x-envoy-*********service-time":["10"],"server":["istio-envoy"],"t*********":["GTWY_42b6dba5-*********-97c8-adebc3635b10"],"x*********id":["42b6dba5-*********-97c8-adebc3635b10"]}
httpStatusCode :200
Modified Variables
STATUS : []

1 Reply 1

Janos Benyovszki
Cisco Employee
Cisco Employee

@marahman78 we would need to see the full API request with all parameter values. I understand that it might contain sensitive data, so it might be better to open a support case for this and we can check further: https://developer.webex.com/explore/support .