What are the possible types of webhooks that Trello can send? What attributes come in each?

I am developing an app that is tightly integrated with Trello and uses Trello webcams for a lot of things. However, I cannot find anywhere in the Trello developer documentation what are the "actions" that a web host can call and what data will flow in each one.

In fact, in my experience, the data that is attached to each web frame is random. For example, while most Web sites contain shortLink

maps that are the subject of some action, some are completely unpredictable. Also, creating maps from checklists doesn't seem to trigger the same website to start when the map is generated normally, etc.

So is this documented somewhere?

+1


source to share


2 answers


After wrestling with these issues and my raw memory of what data should appear in each webframe, along with the name of each other action, I decided to document it myself and publish it as (constantly updating when I find new websites there) a set of JSON files showing sample data each web check will send to your endpoint:

https://github.com/websitesfortrello/trello-webhooks

For example, when the board is closed, a web check will be sent from



{
  "id": "55d7232fc3597726f3e13ddf",
  "idMemberCreator": "50e853a3a98492ed05002257",
  "data": {
    "old": {
      "closed": false
    },
    "board": {
      "shortLink": "V50D5SXr",
      "id": "55af0b659f5c12edf972ac2e",
      "closed": true,
      "name": "Communal Website"
    }
  },
  "type": "updateBoard",
  "date": "2015-08-21T13:10:07.216Z",
  "memberCreator": {
    "username": "fiatjaf",
    "fullName": "Giovanni Parra",
    "avatarHash": "d2f9f8c8995019e2d3fda00f45d939b8",
    "id": "50e853a3a98492ed05002257",
    "initials": "GP"
  }
}

      

Actually what a JSON object is like {"model": ..., "action": ... the data you see up there...}

, but I've removed them for the sake of brevity, and I'm only showing what's in the action key.

+8


source


based on @flatjaf repo I have compiled and summarized all * types of webhooks.

addAttachmentToCard
addChecklistToCard
addLabelToCard
addMemberToBoard
addMemberToCard
commentCard
convertToCardFromCheckItem
copyCard
createCard
createCheckItem
createLabel
createList
deleteAttachmentFromCard
deleteCard
deleteCheckItem
deleteComment
deleteLabel
emailCard
moveCardFromBoard
moveCardToBoard
moveListFromBoard
moveListToBoard
removeChecklistFromCard
removeLabelFromCard
removeMemberFromBoard
removeMemberFromCard
updateBoard
updateCard
updateCheckItem
updateCheckItemStateOnCard
updateChecklist
updateComment
updateLabel
updateList

      



hope this helps!

* I don't know if this list includes all available webhooks types as, as I said, it is based on the flatjaf repo created 2 years ago.

0


source







All Articles