Skip to main content

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.

{
"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"
}