Skip to main content
Question

GET in Webhooks by Zapier, Query String Params not sending with the request

  • December 27, 2023
  • 1 reply
  • 510 views

I’m trying to send a GET request to index records that match a certain criteria. I can send the request, but for whatever reason I cannot get the additional parameters to work so that I can filter the results. Here’s the API documentation: https://populi.co/api/?shell#index-18

I’m trying to send an index request that only returns applications at 100% completion. Here’s the action in Zapier:

 

I’ve tried adding the string the the end of the URL but that doesn’t work either: https://[MYDOMAIN].populiweb.com/api2/applications/?application_form/100

I’ve also tried the same thing in Make and Postman and can’t get it to work, so I’m sure it’s something I’m doing wrong. Interestingly, if I send that URL in my browser I can see in the API logs that the request parameters were correctly identified, which doesn’t happen when I send the URL in Zapier.

Did this topic help you find an answer to your question?
100% found this helpful
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Todd Harper
Forum|alt.badge.img+8
  • Zapier Expert
  • 197 replies
  • December 29, 2023

Looks like the API expects the filter data as an object sent in the body of the HTTP request, not as URL query parameters. Try doing a “Custom Request” in Webhooks by Zapier instead of a “Get Request” and set it up as follows. Unfortunately, I can’t test on my end since I don’t have a Populi tester account, but I think that should work (or at least get you closer).

Here’s the JSON to use in the “Data” section:

{
    "filter": {
        "0": {
            "logic": "ALL",
            "fields": [
                {"name": "percent_completed", "value": 100, "positive": 1}
            ]
        }
    }
}