I need to send a request to Pipefy via webhook whenever a certain condition is met in Zendesk. This request should change the phase of the card.
I was able to create a token and use the following query from this example (https://developers.pipefy.com/reference/graphql-endpoint) to accomplish this:
mutation { moveCardToPhase( input: { card_id: 629233113 destination_phase_id: 310440395}) {card {id current_phase { name } } } }
However, to send a request to a webhook (from Zendesk) to Pipefy, I need the request format to be JSON and sent it to an endpoint address. What endpoint address should I use to communicate with Pipefy, and how would I translate this query into JSON format?