Search code examples
apicurlpostzapier

Seting a Curl command to run in a Zapier Webhook


I'm trying to find the way to run cURL query in Zapier webhook, but I can't seem to figure it out. How would I enter this in the Webhook?

curl 'https://api.com/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: https://api.com' -H 'access_token: <my token>' --data-binary '{"query":"{\n  booking(booking_id: \"11111\"){\n    user{\n      name\n    }\n    body\n  }\n}\n"}' --compressed

enter image description here

enter image description here

This is the error I'm getting: enter image description here


Solution

  • You need to put query in the left box under Query String Params. query is the key, the value is {\n booking(book.... You don't need quotes, either.