Files
2026-07-13 12:30:54 +08:00

46 lines
1.3 KiB
Markdown

---
sidebar_position: 5
_i18n_hash: 3656796ebf02a33e45fbef1ecb18923e
---
# Webhook
Si necesitas un método de notificación más flexible, puedes intentar usar webhooks personalizados para notificar tus mensajes. De esta manera, puedes integrar las notificaciones de Tianji en cualquier sistema.
### Ejemplo de Resultado
El sistema Tianji enviará una solicitud POST con el contenido del siguiente ejemplo.
```json
{
"notification": {
"workspaceId": "xxxxxxxxxxx",
"name": "Nueva Notificación",
"type": "webhook",
"payload": {
"webhookUrl": "example.com"
}
},
"title": "Prueba de Notificación Nueva Notificación",
"content": "Tianji: Perspectiva sobre todo\\nEsta es la Prueba de Notificación de Nueva Notificación\\n[imagen]",
"raw": [
{
"type": "title",
"level": 2,
"content": "Tianji: Perspectiva sobre todo"
},
{
"type": "text",
"content": "Esta es la Prueba de Notificación de Nueva Notificación"
},
{
"type": "newline"
},
{
"type": "image",
"url": "https://tianji.dev/img/social-card.png"
}
],
"time": "2024-06-19T15:41:09.390Z"
}
```