Mandate · Guide
Send verdicts to Provenance
Use this page to deliver your verdicts to a company that uses Provenance. The company adds you as a risk provider in its account and chooses how verdicts arrive: you push them, Provenance looks them up on your endpoint, or you serve a list. Verdicts stay inside that company's account and are used only by its rules.
Before you begin: the company adds you in Settings → Agents → Risk signals and gives you what your kind needs: a push key, or the secret it set for your lookup endpoint, or the URL of your list.
1. Use the verdict format
Every kind uses the same verdict:
{
"entity": { "kind": "origin", "value": "https://login-lumen.example" },
"risk": "high",
"categories": ["phishing", "impersonation"],
"observed_at": "2026-10-27T09:00:00Z",
"expires_at": "2026-11-26T09:00:00Z",
"reference": "case-4821"
}
| Field | Rules |
|---|---|
entity. | domain, origin, agent, agent_ (a key's JWK SHA-256 thumbprint), account or email_. |
entity. | Normalized on arrival: a host in lower case (IDN to punycode), an origin as scheme:/, an email address to its domain. |
risk | none, low, medium, high or critical. none withdraws an earlier verdict. |
categories | phishing, impersonation, fraud, compromised, shell_, laundering, malware, spam or other. Anything else becomes other. |
observed_ | ISO 8601; defaults to now and can't be in the future. |
expires_ | ISO 8601; defaults to 30 days after observed_. An expired verdict is never used. |
reference | Your reference, up to 512 characters. |
A later verdict for the same entity replaces the earlier one.
2. Push verdicts
Send up to 1,000 verdicts per request to POST / with the push key the company gave you, here in PUSH_KEY. The key can only call this endpoint.
{
"object": "risk_signal_batch",
"accepted": 1,
"rejected": 0,
"errors": []
}
Each verdict is checked on its own. Invalid ones come back in errors with their index, the param at fault and a message; the valid ones are kept. Send Idempotency-Key to retry a batch safely.
3. Answer lookups
For a lookup provider, Provenance POSTs to your HTTPS endpoint the first time a company's decision needs an entity you cover:
{ "object": "risk_lookup", "entity": { "kind": "origin", "value": "https://login-lumen.example" }, "requested_at": "2026-10-27T09:00:01.120Z" }
| Your answer | Meaning |
|---|---|
200 with a verdict (risk, categories, …; entity optional) | The verdict, cached for the company's cache time or until expires_. |
200 with { "risk": "none" }, 404 or 204 | No verdict, cached the same way. |
| Anything else, or no answer within the timeout | unavailable: nothing is cached, and the company's rules decide what it means. |
Answer within the company's timeout: 300 ms by default, 1 second at most. Responses are capped at 16 KB, redirects aren't followed, and the endpoint must be public HTTPS.
4. Verify the request signature
Each lookup carries Provenance-Signature: t=<unix seconds>,v1=<hex>, an HMAC-SHA256 under the secret the company set, over <t>.<raw body>. Check it, and refuse a timestamp more than 5 minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyLookup(rawBody: string, header: string, secret: string): boolean {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
const t = Number(parts.t);
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return typeof parts.v1 === "string" && parts.v1.length === expected.length && timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}
It's the same scheme as Provenance webhooks, so a webhook verifier works too.
5. Serve a list
A list is CSV with a header row, or JSON (an array of verdicts, or { "signals": [...] }), up to 10,000 verdicts and 4 MB. In CSV, split categories with |:
entity_kind,entity_value,risk,categories,expires_at,reference
domain,shell-shop.example,high,shell_site,,case-4821
origin,https://login-lumen.example,critical,phishing|impersonation,2026-11-26T09:00:00Z,
The company uploads it, or gives Provenance your list's HTTPS URL to fetch daily. Each upload or fetch replaces the last list.
Errors you might see
| Code | What to do |
|---|---|
insufficient_ | Use the push key the company gave you; it only sends verdicts. |
risk_ | Send at most 1,000 verdicts, in the format above. |
risk_ | The company paused you; it resumes you in Settings → Agents → Risk signals. |
api_ | The company rotated your key or removed you. Ask it for a new key. |