Find a model

Browse the full catalog →

Reach your human

POST /v1/notify

An agent running unattended sometimes needs a person. /v1/notify sends a push notification, email, SMS, or phone call to the owner of the account the API key belongs to — using the same sk-tr-... key the agent already uses for inference.

curl https://api.trustedrouter.com/v1/v1/notify \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "call",
    "subject": "region sre1 down",
    "body": "Six minutes unreachable. Failover did not fire."
  }'

Channels: push, email, sms, voice.

You cannot choose who it reaches

by design

There is no to parameter. The destination is resolved from the API key to its workspace to that workspace's owner, and only to contacts that owner has verified. Sending a to field does nothing; the owner is still the recipient.

That is what makes this safe on an ordinary inference key. A key that leaks cannot be pointed at a stranger, so this is a self-notification primitive rather than a messaging API. It also means you never handle anyone's phone number to use it.

Message bodies are handled by the control plane and never enter the attested inference path, so zero-retention inference stays a statement about inference alone.

Verify a phone first

required for every channel

Every channel — including email — requires a verified phone number on the account. The phone is not protecting the recipient, since there is only one possible recipient. It is a cost floor on account farming: TrustedRouter sends from its own A2P brand, so sender reputation is shared, and email is the cheapest channel to abuse.

After email and a funded top-up, US, Canadian, and most European numbers can verify directly; other regions require identity verification first. Exact phone-region rule.

Add a number in Settings → Notifications, or over the API:

# Send a code. channel: "sms" or "voice".
curl https://api.trustedrouter.com/v1/notify/phone/start \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14165550123", "channel": "voice"}'

# Confirm it.
curl https://api.trustedrouter.com/v1/notify/phone/confirm \
  -H "Content-Type: application/json" \
  -d '{"code": "123456"}'

These are session endpoints, not API-key endpoints: adding a phone changes who your account can page, so it belongs to whoever can sign in. Codes last 10 minutes, allow 5 attempts, and cannot be re-sent more than once a minute. Voice delivery works on landlines and desk phones, which never had SMS.

Pricing

push is free
PushFree
Email$0.02
SMS$0.02
Voice$0.02

You are charged only when a notification is delivered. If both carriers fail, the reservation is refunded in full and the response reports charged_microdollars: 0. You asked for your human to be reached; if they were not reached, you did not get what you paid for.

Push is free because it costs us nothing and is delivered by our own client, so the cheapest way for an agent to reach you is the SREChat app. Email is priced the same as SMS deliberately — pricing it lower would make it the obvious channel to abuse.

Responses

retry accordingly
{
  "delivered": true,
  "channel": "voice",
  "carrier": "telnyx",
  "detail": "queued",
  "charged_microdollars": 20000
}
200Delivered
400Bad request — fix and retry
409Refused — action needed
502Carriers failed — retry later

A 409 carries a refusal field and means something you must change: phone_not_verified, email_not_verified, no_push_device. Retrying will not help until you fix it. A 502 is our problem and is worth retrying — and cost you nothing.

Choosing a channel

escalation ladder

Notifications are a convenience, not a guaranteed delivery channel. Carriers, handset settings, and network conditions delay and drop messages, so do not rely on one as the sole safeguard where a missed alert could cause harm.

pushWorth knowing, not worth waking someone
emailDetail and after-action records
smsNeeds attention soon
voiceUrgent, or dangerous to get wrong

Every SMS and call opens with “Trusted Router”. An unrecognized number reading an unattributed sentence at 3am is indistinguishable from a scam, and gets hung up on.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.