Skip to main content
Solved

Card info on webhook

  • October 27, 2020
  • 1 reply
  • 357 views

Nigel O'connell
Pipefy Staff

Is it possible to pass aditional information when creating a webhook to get more information about the cards without the need of making aditional requests? Is the "headers" argument supposed to enable doing that?

 

Best answer by Roberto Chavarria

Hi there Nigel, hope all is well! The headers are optional and are used more for security purposes. You can add some customized headers and set your endpoint to only validate incoming webhooks with those specific headers.

 

As for multiple actions in a webhook, you can create something like this: 

mutation{
  createWebhook(input:{
    actions:["card.create","card.move"]
    name:"webhook name"
    url:"https://test.requestcatcher.com/"
    pipe_id:12345
    email:"email@email.com"
  	headers: "{\"foo\": \"bar\"}"
  }){
    webhook{
      id
    }
  }
}

As you can see in the actions section, the webhook will send data every time that a card is created, or every time a card is moved. This is the most structure a webhook can have.

View original
Did this topic help you find an answer to your question?

1 reply

Roberto Chavarria
Pipefy Staff
Forum|alt.badge.img+5

Hi there Nigel, hope all is well! The headers are optional and are used more for security purposes. You can add some customized headers and set your endpoint to only validate incoming webhooks with those specific headers.

 

As for multiple actions in a webhook, you can create something like this: 

mutation{
  createWebhook(input:{
    actions:["card.create","card.move"]
    name:"webhook name"
    url:"https://test.requestcatcher.com/"
    pipe_id:12345
    email:"email@email.com"
  	headers: "{\"foo\": \"bar\"}"
  }){
    webhook{
      id
    }
  }
}

As you can see in the actions section, the webhook will send data every time that a card is created, or every time a card is moved. This is the most structure a webhook can have.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings