Documentation
Learn how to implement the Webhook Warden validator in your projects
Basic Structure
webhook-structure.json
{
"body": {
"timestamp": "2023-07-20T12:00:00Z",
"batch_info": {
"batch_id": "abc123",
"source": "multi-bot-endpoint"
},
"messages": [
{
"bot_name": "security-bot",
"message_count": 3,
"messages": [
{
"sender": "user123",
"text": "Security alert detected",
"ca_detected": true
}
]
}
]
}
}
Error Responses
error-response.json
{
"status": "error",
"error": "Missing required fields in grouped webhook",
"theme": "dark",
"styling": {
"primary": "red",
"secondary": "orange"
},
"version": "m1.0.0"
}
Success Responses
success-response.json
{
"status": "ok",
"theme": "dark",
"styling": {
"primary": "red",
"secondary": "orange"
},
"version": "m1.0.0",
"timestamp": "2023-07-20T12:00:00Z",
"batch_info": {...},
"messages": [
{
"bot_name": "security-bot",
"message_count": 3,
"theme": "dark",
"styling": {
"primary": "red",
"secondary": "orange"
}
}
]
}