Solved

How to activate a webhook on a pipe

  • 28 March 2023
  • 3 replies
  • 218 views

Userlevel 2
Badge

I see a lot of information about webhooks in faq and support but i don’t seem to understand one vital part…

I want to activate webhooks on my pipes, there is no place in my admin interface to do this correct? No place in the admin interface where i can just activate a webhook and put in a webhook url to send the info to? All this needs to somehow be created via the API and commands ?

Is this correct?

Thanks,

Iwan

icon

Best answer by Lucas Democh 28 March 2023, 23:35

View original

3 replies

Userlevel 7
Badge +15

To create the webhook, just run the command below:

mutation {
createWebhook(input: {
actions: ["card.create"],
name: "Record Creation Webhook",
table_id: 123456,
url: "https://your-endpoint.com/"
}) {
webhook {
id
actions
url
}
}
}

One of the command parameters is the URL that will receive the payload (endpoint).

 

More information at: https://developers.pipefy.com/reference/pipe-table-webhooks#card-and-record-management-webhooks

Userlevel 2
Badge

Hi Lucas,

thank you for taking the time to help me out!

I have seen and read that page a number of times but what i missed was “where” do i run this command?
In the meantime i found out i should actually do that in this interface ? https://app.pipefy.com/graphiql
to me this looked like some kind of testing environment but it does seem to work.

In a few other tools we use in the company these things can be done as a functionality right in the admin interface. Activate the feed, paste your url, save … So i spent quite some time looking for that :-). Might be a good tip for the pipefy roadmap to point to that url from the admin, build this functionality, or provide some explanation or context
On the page https://app.pipefy.com/graphiql

Thanks again !

Iwan

 

Userlevel 7
Badge +15

@iwan-pauwels 

You can use the GraphyQL interface to create the Webhooks, but you can also run this command in a local notebook or on a clound platform (GCP, AWS, Azure ETC).

I agree with you that a function to create webhooks within the platform itself would help a lot.

Another alternative to facilitate the creation of Webhooks is the use of integration platforms such as Zapier or Integromat/Make. In them, the Webhook is created automatically (according to Pipefy's public documentation).

Reply