Alerts
A monitor fired, the spend unusual, a quota out: the bell, and a webhook of your own, signed.
Four things happen to an org that nobody should learn from a customer: a number it watches slips, a day costs three times the usual, a quota runs out, an app Pinecall hosts for it goes down. Each is an alert, and every one is:
- kept for 90 days, listed in the console at Settings ▸ Alerts and by
pinecall alerts; - mailed to the org's admins, and to the people who run the runtime, once an hour per monitor, app or quota, so a refusal that comes on every call is one email;
- written on the agent's log as an event, when it is one agent's, and told in the console's bell to the people who chose it;
- posted to a URL of the org's own, when it set one. The webhook is optional: an org that set none is still kept and mailed.
| alert | when | how often |
|---|---|---|
monitor.fired |
a monitor's number crossed its line over its window | once a day per monitor |
spend.unusual |
today's calls cost three times the org's usual day (the mean of its last four weeks, once that is at least a dollar) | once a day |
credits.exhausted |
a call, a written turn, a register, a simulation or a remembered fact was refused because a quota ran out, or a call's judges were skipped for the month's evals | each refusal |
app.failed |
an app Pinecall hosts for you (pinecall deploy, a Studio agent) did not build, start or stay up: the runner's last lines or the refusal it met are in data.why, and Agents ▸ Apps shows it until the next release |
once per host that fails; agent is null, no agent's log holds it |
The list#
$ pinecall alerts
when kind about agent mailed
2026-10-23 09:33 app.failed support — yes
2026-10-22 18:02 monitor.fired slow answers front-desk yes
The same list is the top of Settings ▸ Alerts, newest first; --prod reads production's, and
the doors are GET /v1/alerts for the org and GET /v1/ops/alerts for every org at once.
The bell#
Every person chooses what the console tells them, in the sandbox and in production apart, under Notifications (your name, at the foot of the sidebar): a call asking for a person, every incoming call, and a monitor that fires. In production a call asking for a person and a monitor that fires are on until you turn them off, and every incoming call is off. The sandbox starts with all three off, since a simulation may ask for a person on every run. A notice reaches the browser, with the console closed too; its tap opens the call, or Monitors for a monitor.
The webhook#
The org names one URL — Slack, PagerDuty, your backend — in the console at Settings ▸ Alerts
or in a terminal. Whoever runs the runtime may name one of their own too (pinecall-runtime box alerts set): every org's alerts are posted there as well, the same body, so the operator sees what
its tenants see, and an app that went down is seen even by an org that named no URL.
printf %s "$WEBHOOK_SECRET" | pinecall webhook set https://hooks.example.com/pinecall --secret
pinecall webhook test
alerts go to https://hooks.example.com/pinecall · signed
the URL took it: a signed webhook.test post answered 2xx
The URL is on the public internet: a host that is local, private or link-local, or resolves there, is refused — the deployment never posts into itself or into a private network on an org's word.
Every alert is then posted as it is written. Each post waits up to five seconds for a 2xx, and is
tried once more on a connection error or a 5xx, never on a 4xx. A URL that fails is logged, and
the agent's log keeps the alert either way.
POST https://hooks.example.com/pinecall
content-type: application/json
x-pinecall-event: monitor.fired
x-pinecall-signature: sha256=3f1c…
{"type":"monitor.fired","org":"org_7c2e","env":"production","agent":"front-desk","at":1791567316.2,
"data":{"monitor":"mon_3f9a1c2b4d5e","name":"slow answers","metric":"e2e_median_s","above":true,
"threshold":2.0,"value":2.41,"window_days":7,"agent":null,"env":"production","day":"2026-10-09"}}
type is the event's name; org and env say whose world it is; agent is the agent whose log
carries it (null on the test post); at is Unix seconds; data is the event itself, field for
field as the control events page writes it. webhook.test is what pinecall webhook test and the console's Send a test post, with {"said": …} as its data.
Verifying a post#
With a secret set, x-pinecall-signature is sha256= followed by the HMAC-SHA256 of the raw body,
hex-encoded. Compute it over the bytes as they came, before parsing, and compare in constant time:
import { createHmac, timingSafeEqual } from "node:crypto";
export function isPinecalls(rawBody: Buffer, signature: string | undefined, secret: string): boolean {
const ours = `sha256=${createHmac("sha256", secret).update(rawBody).digest("hex")}`;
return signature !== undefined && signature.length === ours.length && timingSafeEqual(Buffer.from(signature), Buffer.from(ours));
}
import hashlib, hmac
def is_pinecalls(raw_body: bytes, signature: str | None, secret: str) -> bool:
ours = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return signature is not None and hmac.compare_digest(signature, ours)
require "openssl"
def pinecalls?(raw_body, signature, secret)
ours = "sha256=#{OpenSSL::HMAC.hexdigest("SHA256", secret, raw_body)}"
!signature.nil? && OpenSSL.secure_compare(signature, ours)
end
A post with no secret set carries no signature: anybody who knows the URL could post one, so set a secret for anything that acts on an alert.