Transform Webhooks into Discord Art.
Triar is a high-performance orchestration tool designed to bridge the gap between your backend systems and your Discord community. We transform raw POST requests into beautifully curated Discord embeds automatically.
Instant Rendering
No more plain text notifications. Send data, get formatted Discord embeds instantly.
Ultra-Low Latency
Global edge network ensures your notifications reach Discord in under 40ms.
keyAuthentication
Access to the Triar API requires a Bearer token. This token is automatically generated when you run /set-notify-channel in your Discord channel — no sign-up or dashboard required.
Add the Triar bot to your Discord server.
Use the “Add to Discord” button on this page.
Run /set-notify-channel in the channel you want to receive notifications.
The bot will reply with your unique API Key. Copy and keep it secure.
Each channel gets its own unique API key. Running /set-notify-channel again in a different channel will generate a separate key for that destination.
Configuring Channels
Before you can send notifications, the Triar bot needs to know where to post them within your Discord server.
Note: Ensure the Triar bot has 'Send Messages' and 'Embed Links' permissions in the selected channel.
GET /health
Checks whether the service is up and responding. This endpoint does not require authentication.
Endpoint Definition
Example Response
{
"ok": true
}POST /notify
Sends an embed to the configured channel for the provided API key. Body must be JSON (Content-Type: application/json) with an approximate max size of 512 KB.
Endpoint Definition
Authentication
Use one of the following headers:
Authorization: Bearer <your_api_key>
X-Api-Key: <your_api_key>Payload Fields
Fields Item Structure
Request Example
{
"author": "Triar API",
"title": "Build Success",
"description": "Deploy v1.4.2 completed successfully.",
"color": "#5865F2",
"fields": [
{ "name": "Environment", "value": "production", "inline": true },
{ "name": "Duration", "value": "2m 31s", "inline": true }
],
"timestamp": true
}If no visual content is provided, the bot sends a minimal embed (invisible character) to avoid Discord API errors.
Examples
Send your first notification using cURL from your terminal.
curl -X POST https://api.triar.app.br/notify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Build Success",
"amount": 1,
"user": "github-actions"
}'await fetch("https://api.triar.app.br/notify", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "Deploy OK ✓",
description: "v1.2.3 published to production.",
timestamp: true,
}),
});import requests
requests.post(
"https://api.triar.app.br/notify",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"title": "Payment received",
"description": "New payment $49.00",
"timestamp": True,
}
)Response Codes
| Code | Description | Status |
|---|---|---|
| 200 | The notification was successfully dispatched to Discord. | Success |
| 400 | Malformed JSON or missing required fields. | Bad Request |
| 401 | Authentication failed. Check your Bearer token. | Unauthorized |
| 500 | Internal error while sending to Discord. | Server Error |
| 503 | Configured notify channel is inaccessible or invalid. | Service Unavailable |