Page History
...
Code Block | ||
---|---|---|
| ||
curl -X POST <Incoming Webhook URL> -H "Content-Type: application/json" -d '{ "text": "This is a test message" }' |
Transforming JSON payload formats
Flock's incoming webhooks support Message objects with two common attributes or keys - "text" for message content and "flockml" for message formatting. Please refer to Message for other attributes.
Code Block | ||
---|---|---|
| ||
curl -X POST <Incoming Webhook URL> -H "Content-Type: application/json" -d '{ "text": "This is a test message." }' |
...
Code Block | ||
---|---|---|
| ||
curl -X POST <Incoming Webhook URL> -H "Content-Type: application/json" -d '{ "flockml":"<flockml>Hello! Welcome to <b>Flock</b>!</flockml>" }' |
Transforming JSON payload formats
Some external apps and services may send data that does not follow Flock's Message JSON payload format, and hence it is not parsed.
...