Back

[SOLVED] Webhook Payload

  • 0
  • Webhooks
Said H
2 Mar, 2023, 05:17

Hello, is it currently possible to adjust the payload to use custom key? I read the documentation, and the payload will just send the document data as payload. What if I want something like below due to the destination system requirement?

TypeScript
{
  "text":<doc data>
}
TL;DR
The user wants to send a webhook payload to Slack and is asking if the payload can use a custom key. The solution is to create an Appwrite Function and shape the data as needed.
Drake
2 Mar, 2023, 18:31

no, but what are you trying to do? You could always create an Appwrite Function and shape the data however you need. https://appwrite.io/docs/functions

Said H
2 Mar, 2023, 21:59

oh, i just want to do a simple webhook to Slack

Said H
2 Mar, 2023, 22:00

because i read the webhook documentation and it seems that it can easily interface to Slack Webhooks can be used to purge cache from CDN, calculate data or send a Slack notification

Said H
2 Mar, 2023, 22:00

and Slack needs the payload to use "text"

Said H
2 Mar, 2023, 22:01

in that case, i will try with function

Said H
2 Mar, 2023, 22:01

thank you @Steven

Drake
7 Mar, 2023, 19:42

[SOLVED] Webhook Payload

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more