docs: add webhook document
This commit is contained in:
parent
90df8e8e36
commit
61c1b0e065
43
website/docs/notification/webhook.md
Normal file
43
website/docs/notification/webhook.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 5
|
||||||
|
---
|
||||||
|
|
||||||
|
# Webhook
|
||||||
|
|
||||||
|
If you need a more flexible notification method, you can try using custom webhooks to notify your messages. This way, you can integrate Tianji's notifications into any system.
|
||||||
|
|
||||||
|
### Example Result
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"notification": {
|
||||||
|
"workspaceId": "xxxxxxxxxxx",
|
||||||
|
"name": "New Notification",
|
||||||
|
"type": "webhook",
|
||||||
|
"payload": {
|
||||||
|
"webhookUrl": "example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"title": "New Notification Notification Testing",
|
||||||
|
"content": "Tianji: Insight into everything\\nThis is Notification Testing from New Notification\\n[image]",
|
||||||
|
"raw": [
|
||||||
|
{
|
||||||
|
"type": "title",
|
||||||
|
"level": 2,
|
||||||
|
"content": "Tianji: Insight into everything"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"content": "This is Notification Testing from New Notification"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "newline"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "image",
|
||||||
|
"url": "https://tianji.msgbyte.com/img/social-card.png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2024-06-19T15:41:09.390Z"
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user