# Уведомление команде через MAX
curl https://api.notiq.ru/send \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "🔴 API 500 spike на prod"}'
import (
"bytes"
"net/http"
)
body := []byte(`{"message": "🔴 API 500 spike"}`)
req, _ := http.NewRequest("POST",
"https://api.notiq.ru/send", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+token)
req.Header.Set("Content-Type", "application/json")
http.DefaultClient.Do(req)
import requests
requests.post(
"https://api.notiq.ru/send",
headers={"Authorization": f"Bearer {token}"},
json={"message": "🔴 API 500 spike"},
)
await fetch("https://api.notiq.ru/send", {
method: "POST",
headers: {
"Authorization": `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ message: "🔴 API 500 spike" }),
});