WebhookGuard API Documentation

API Overview
Learn how to send messages through your protected Discord webhook endpoints.

Endpoint Format

https://yourdomain.com/api/relay/<webhook-id>

Supported Methods

POST
GET
PUT
PATCH

Content-Type

application/json
Live API Tester
Test your protected webhook endpoints directly from here

Code Examples

Get Webhook Info (GET)
curl -X GET "YOUR_PROTECTED_URL"
Send Message (cURL)
curl -X POST "YOUR_PROTECTED_URL" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "Hello from WebhookGuard! 🛡️",
  "username": "WebhookGuard Bot",
  "avatar_url": "https://cdn.discordapp.com/embed/avatars/0.png"
}'
JavaScript
fetch('YOUR_PROTECTED_URL', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "content": "Hello from WebhookGuard! 🛡️",
  "username": "WebhookGuard Bot",
  "avatar_url": "https://cdn.discordapp.com/embed/avatars/0.png"
})
})
Python
import requests

url = "YOUR_PROTECTED_URL"
payload = {
  "content": "Hello from WebhookGuard! 🛡️",
  "username": "WebhookGuard Bot",
  "avatar_url": "https://cdn.discordapp.com/embed/avatars/0.png"
}

response = requests.post(url, json=payload)
print(response.status_code)
Response Codes
200
Success - Message sent or info retrieved
400
Bad Request - Invalid request payload
404
Not Found - Protected webhook not found
405
Method Not Allowed - Unsupported HTTP method
500
Server Error - Internal server or Discord API error