Discord Webhook

Hi there,

I tried to set up a Discord webhook connected with Frame.io
Every logs gives a 400 error status and I do not recieve any notifications in the channel.

Does someone know how to make this work?
(No Zapier, Integromat,…)

Thanks in advance for your help!
Best

I would to know a bit more about what exactly you’re doing to transform the webhook payload from what Frame.io is sending to the proper spec for the Discord webhook format.

If it’s not being transformed at all, it makes sense that you’d be getting a 400 response.

Frame.io webhook payload example:

{
  "type": "asset.created",
  "resource": {
    "type": "asset",
    "id": "<asset-id>"
  },
  "user": {
    "id": "<user-id>"
  },
  "team": {
    "id": "<team-id>"
  }
}

Discord webhook payload example:

{
  "name": "test webhook",
  "type": 1,
  "channel_id": "199737254929760256",
  "token": "3d89bb7572e0fb30d8128367b3b1b44fecd1726de135cbe28a41f8b2f777c372ba2939e72279b94526ff5d1bd4358d65cf11",
  "avatar": null,
  "guild_id": "199737254929760256",
  "id": "223704706495545344",
  "application_id": null,
  "user": {
    "username": "test",
    "discriminator": "7479",
    "id": "190320984123768832",
    "avatar": "b004ec1740a63ca06ae2e14c5cee11f3",
    "public_flags": 131328
  }
}