<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00000cH3xZ0ASOkta Identity EngineWorkflowsAnswered2025-04-30T17:51:33.000Z2025-04-11T18:37:20.000Z2025-04-30T17:51:33.000Z

BarryS.04877 (Customer) asked a question.

Need assistance with API Connector GET query in Workflow

Since the corresponding Okta connector function lacks the "expand" feature that I need, I am attempting to make a GET request using an API connector to the following API. This "expand" works in Postman and adds the app user's app profile to the results.

 

Works in Postman: GET {url}/api/v1/apps?filter=user.id+eq+"00u34REDACTEDu1d6"&expand=user/00u34REDACTEDu1d6&limit=200

 

I have tried every trick I can think of but only get Bad Request due to the query parameters.

 

1 - Compose query with and without Encode Query. In this image I had tried both output from Construct and output from Encode Query as input to Query on the API Connector.

/help/servlet/rtaImage?refid=0EMKZ000000cq5c

2 - Various forms of the query as a string, with and without encoding, borrowed from Postman

 

3 - Try the API Connectory Query query box as both object and string, entering directly into the query box or running through compose, with and without encoding.

 

There seems to be no way to get the API connector to send the exact same request as sent by Postman. Does anyone understand what the API connector might be doing with the request and is there any way to correct the input?

 

 

 


  • TimL.58332 (Workflows)

    @BarryS.04877 (Customer)​ - Seems to work fine for me:

     

    image 

    The "inputs" on the construct could be fed in dynamically but I just did a static representation for simple demo.

    Expand Post
    Selected as Best
  • BarryS.04877 (Customer)

    It may be due to encoding + with %2B. Postman does not appear to be doing this conversion. If I change + to %2B in Postman I get the same 400 bad request. I can find no way to avoid this.

  • TimL.58332 (Workflows)

    @BarryS.04877 (Customer)​ - Seems to work fine for me:

     

    image 

    The "inputs" on the construct could be fed in dynamically but I just did a static representation for simple demo.

    Expand Post
    Selected as Best
    • BarryS.04877 (Customer)

      Thank you @TimL.58332 (Workflows)​ ! I wasn't aware that I could replace "+" with " " in the filter, as the downloaded Postman collection included it. I also changed my API to use the Custom API Action. I'm am getting the expected results now.

This question is closed.
Loading
Need assistance with API Connector GET query in Workflow