POST
/api/send
api_key | string | |
message | string | |
type | string | |
title | string | |
color | string | |
files | array |
| 200 | |
| 400 | |
| 401 | |
| 413 | |
| 429 | (10/minutes ) |
| 502 |
import base64
import requests
with open("report.pdf", "rb") as f:
encoded = base64.b64encode(f.read()).decode()
response = requests.post(
"https://relay.freedev.fr/api/send",
json={
"api_key": "pk_your_key",
"message": "The backup job completed successfully.",
"type": "success",
"files": [
{"filename": "report.pdf", "content_base64": encoded},
],
},
)
print(response.status_code, response.json())
curl -X POST https://relay.freedev.fr/api/send \
-H "Content-Type: application/json" \
-d '{
"api_key": "pk_your_key",
"message": "Custom build with no predefined type",
"title": "๐ง Build finished",
"color": "#5865F2"
}'
await fetch("https://relay.freedev.fr/api/send", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
api_key: "pk_your_key",
message: "Deploy finished โ
",
type: "success",
}),
});
info |
โน๏ธ Info |
#5865f2
|
success |
โ Success |
#2ecc71
|
warning |
โ ๏ธ Warning |
#e67e22
|
alert |
๐จ Alert |
#e74c3c
|
error |
โ Error |
#e74c3c
|
critical |
๐ฅ Critical |
#992d22
|
debug |
๐ Debug |
#607d8b
|
test |
๐งช Test |
#1abc9c
|
build |
๐๏ธ Build |
#3498db
|
compile |
โ๏ธ Compile |
#3498db
|
deploy |
๐ Deployment |
#9b59b6
|
release |
๐ฆ Release |
#9b59b6
|
rollback |
โฉ๏ธ Rollback |
#e67e22
|
server |
๐ฅ๏ธ Server |
#206694
|
startup |
๐ข Startup |
#2ecc71
|
shutdown |
๐ด Shutdown |
#e74c3c
|
restart |
๐ Restart |
#e67e22
|
maintenance |
๐ ๏ธ Maintenance |
#e67e22
|
uptime |
โฑ๏ธ Uptime |
#2ecc71
|
cpu |
๐ง CPU |
#e67e22
|
ram |
๐พ RAM |
#e67e22
|
disk |
๐ฟ Disk |
#e67e22
|
temperature |
๐ก๏ธ Temperature |
#e74c3c
|
performance |
๐ Performance |
#3498db
|
health |
โค๏ธ Health Check |
#2ecc71
|
network |
๐ Network |
#3498db
|
connection |
๐ Connection |
#3498db
|
timeout |
โ Timeout |
#e67e22
|
offline |
๐ด Offline |
#e74c3c
|
online |
๐ก Online |
#2ecc71
|
security |
๐ Security |
#f1c40f
|
login |
๐ Login |
#2ecc71
|
logout |
๐ช Logout |
#99aab5
|
authentication |
๐ชช Authentication |
#f1c40f
|
permission |
โ Permission |
#e74c3c
|
attack |
โ๏ธ Attack Detected |
#992d22
|
firewall |
๐งฑ Firewall |
#c27c0e
|
database |
๐๏ธ Database |
#1abc9c
|
backup |
๐ฝ Backup |
#2ecc71
|
restore |
โป๏ธ Restore |
#3498db
|
migration |
๐ Migration |
#9b59b6
|
api |
๐ API |
#3498db
|
request |
๐จ Request |
#5865f2
|
rate_limit |
๐ฆ Rate Limit |
#e67e22
|
webhook |
๐ช Webhook |
#9b59b6
|
user |
๐ค User |
#979c9f
|
signup |
๐ New User |
#2ecc71
|
delete_user |
๐๏ธ User Deleted |
#e74c3c
|
payment |
๐ณ Payment |
#f1c40f
|
purchase |
๐ Purchase |
#2ecc71
|
invoice |
๐งพ Invoice |
#3498db
|
refund |
โฉ๏ธ Refund |
#e67e22
|
ai |
๐ค AI |
#9b59b6
|
model |
๐ง Model |
#9b59b6
|
training |
๐ Training |
#3498db
|
prediction |
๐ฎ Prediction |
#1abc9c
|
trade |
๐ Trade |
#2ecc71
|
buy |
๐ข Buy |
#2ecc71
|
sell |
๐ด Sell |
#e74c3c
|
profit |
๐ฐ Profit |
#2ecc71
|
loss |
๐ Loss |
#e74c3c
|
market |
๐ Market |
#3498db
|
bot |
๐ค Bot |
#9b59b6
|
bot_online |
๐ข Bot Online |
#2ecc71
|
bot_offline |
๐ด Bot Offline |
#e74c3c
|
command |
โจ๏ธ Command |
#5865f2
|
file |
๐ File |
#3498db
|
upload |
โฌ๏ธ Upload |
#2ecc71
|
download |
โฌ๏ธ Download |
#3498db
|
storage |
๐ Storage |
#e67e22
|