🔑 Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
📌 Send Webhook
Endpoint: POST /api/v1/webhook
Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | ✅ | Your API key |
| Content-Type | string | ✅ | application/json |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| webhook_name | string | ✅ | The webhook to use |
| message | string | ✅ | Message content |
🚀 Example Requests
cURL
curl -X POST "https://api.the-real-jade.com/api/v1/webhook" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"webhook_name": "Join-Leave-Webhook", "message": "Hello from cURL!"}'
JavaScript Fetch
fetch("https://api.the-real-jade.com.com/api/v1/webhook", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
webhook_name: "Join-Leave-Webhook",
message: "Hello from JavaScript!"
})
})
.then(response => response.json())
.then(data => console.log("Success:", data))
.catch(error => console.error("Error:", error));
🛑 Error Codes
| Code | Description |
|---|---|
| 400 | Missing webhook_name or message |
| 401 | Invalid API key |
| 429 | Too many requests |
| 500 | Internal server error |