Usage alerts
Get an email, or a signed webhook, when today's usage of a model reaches 50, 80 or 100 percent of its daily allowance.
Each plan has a daily allowance for each model, one of its fair-use limits. Usage alerts tell you when today's usage of a model reaches a share of it, before requests start getting 429 rate_limit_exceeded. Alerts come by email, and optionally as a signed webhook to an endpoint of yours.
Set them up in the Usage alerts card on the Rate limits page of the Coaade Console. That page also shows each model's allowance and today's usage. Alerts are in percent: allowance numbers aren't published and may change.
What counts
- Every model call on the account counts: coaade.com chat, calls with an API key and runs in the console Workbench.
- The allowance is per model and per UTC day. It resets at 00:00 UTC.
- On a Team plan, each seat has its own allowance. Alerts for every seat go to the team owner, and only the owner can change the settings.
Settings
| Setting | Default |
|---|---|
| Email alerts | On when the account has an API key with Call models turned on, otherwise off. Sent to the account owner's email address. |
| Thresholds | 80% and 100% on, 50% off. |
| Webhook | None. Add an https URL to get alerts as webhooks too. |
Every change is recorded in the account's audit log (Settings → Security in the console).
When an alert is sent
After each request, Coaade checks the model's usage for the day. When it reaches a threshold that's on, Coaade sends an alert by email and to the webhook.
- You get at most one alert per model, threshold and UTC day, however much traffic follows.
- If one request takes usage past several thresholds, you get one alert, for the highest.
- After an alert, a lower threshold doesn't alert later that day. For example, turning 50% on after the 80% alert has gone out doesn't send a 50% alert.
- An alert that can't be delivered never affects your requests.
The email says it in plain words, for example: "You've used 80% of today's Coaade Mind 1.0 allowance. It resets at 00:00 UTC."
Webhooks
Add a webhook URL in the Usage alerts card.
- The URL must use https and reach a public address. Coaade refuses private, loopback and link-local addresses when you save the URL, and checks the address again before every delivery. It connects to the address it checked and doesn't follow redirects.
- When you add a webhook, the console shows its signing secret (
coaade_whsec_…) once. Store it with your receiver. Rotate secret makes a new one, which signs every delivery from then on. - Send test posts a test event, with
"test": true, and shows how your endpoint answered.
The request
Coaade sends a POST with a JSON body and these headers:
| Header | Value |
|---|---|
Content-Type | application/json |
Coaade-Timestamp | When the request was sent, in Unix seconds. |
Coaade-Signature | The hex HMAC-SHA256 of the timestamp, a period and the raw body, keyed with your signing secret. |
User-Agent | Coaade-Webhooks/1.0 (+https://coaade.com) |
{
"type": "usage.threshold",
"model": "coaade-mind-1",
"percent": 80,
"day": "2026-11-30",
"resetsAt": "2026-12-01T00:00:00.000Z",
"account": "6d1f3a2e-5b7c-4e0a-9f21-3c8d4b6a7e10"
}Prop
Type
Verify the signature
Check every request before you act on it:
Read the raw request body, exactly as received, before you parse the JSON.
Reject the request if Coaade-Timestamp is more than 5 minutes from your clock.
Compute the HMAC-SHA256 of {timestamp}.{raw body} with your signing secret, as lowercase hex.
Compare it with Coaade-Signature in constant time. Accept the request only if they match.
Node.js, with the built-in crypto module:
import { createHmac, timingSafeEqual } from "node:crypto";
// timestamp and signature are the Coaade-Timestamp and Coaade-Signature
// headers; rawBody is the request body exactly as received, before parsing.
export function isFromCoaade(secret, timestamp, signature, rawBody) {
const age = Math.abs(Date.now() / 1000 - Number(timestamp));
if (!Number.isFinite(age) || age > 300) return false; // older than 5 minutes
const expected = createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
return (
typeof signature === "string" &&
signature.length === expected.length &&
timingSafeEqual(Buffer.from(signature), Buffer.from(expected))
);
}Responses and retries
- Answer with any
2xxstatus within 5 seconds. - Coaade makes up to 3 attempts. A timeout, a connection error,
408,429or a5xxis retried after 1 second, then after 4 more. Any other answer, a redirect included, ends the delivery. - A retried delivery has the same body with a new timestamp and signature. To spot one you already handled, use
account,model,percentandday, which identify the alert. - Send test makes a single attempt.
The Usage alerts card lists the last 20 delivery attempts with their time, event, attempt number and result. Coaade keeps only that metadata, never the URL or the body.
A rotated secret signs from the moment you rotate it. Update your receiver right away: until it has the new secret, it rejects every delivery.