Identify · Concept
Traffic assessment
A traffic assessment is the object that says what Identify concluded about one request: which agent signed it, whether a person approved what the agent does, how bot-like it looks, and what your traffic policy decided. The hosted check, the middleware and the edge templates all return the same shape.
When to use it
- Branch your own code on
classanddecision.actionafter the middleware runs. - Log an assessment next to an order, so support can see that a signed agent placed it for an approving person.
- Report assessments from your middleware in batches, so the console shows your traffic.
How it works
Three signals sit side by side. Identify never merges them into one number:
| Signal | Where it comes from | What can change it |
|---|---|---|
agent | A Web Bot Auth signature checked against keys its Signature-Agent URL publishes, or, on the hosted check, an HTTP message signature checked against a key the agent registered with Provenance | Only cryptography |
bot_ | Identify's own rules, each a named signal with a weight, added and capped at 100 | The request's headers and behavior |
vendor_ | Your vendor's model, through your own key, labelled with the vendor's name | The vendor |
class: "signed_agent" comes from a verified signature alone. A high bot_score or vendor_score never makes a signed agent anything else; your policy can still read both scores and decide.
classstringsigned_agent,declared_bot,suspected_bot,likely_humanorunknown.agentobject | null- The signing agent:
idandnamefor an agent registered with Provenance,category,operator, andverified. Null when the request carries no signature. humanobject | null- The person behind the agent, when the request carries an Authorize intent token or a grant:
backed, apseudonym, when and how they approved, andintent_valid. bot_scoreinteger- 0 to 100, advisory.
signalsarray- The named signals behind
bot_score, each with a description. vendor_scoreobject{ "status": "not_configured" }without a vendor key. Never fabricated.decisionobject- Your policy's
action, and what a shadow policy would have done. policyobject | null- The rule that decided, with each condition and the value it compared (see the rule that decided). Null when no rule matched and your policy's default applied.
signatureobject- How the request was signed:
web_bot_auth,http_signature(noSignature-Agent, checked against a key the agent registered with Provenance; the hosted check only) ornone(see how the agent signed). authorityobject | null- The person's token the request carried and what it covered (see what covered it). Null when it carried none.
botobject- How likely the request is automated:
likelihood(the score),band,reasonand the namedsignalsthat are true (see how likely it's a bot). A request alone under 30 isunclassified. actionstring | null- Your route map's name for the request, such as
checkoutorlogin. requestobject- The request's
methodandpath(never the query), andagent.platform: the platform that sent it,signedthrough its signing directory ordeclaredby a known crawler's user agent, or null (see which platform sent it). networkobject- Where the request came from (see network and device).
deviceobject- The device the request describes (see network and device).
Network and device
Every decision says where the request came from and what device it describes. A range says where a request came from, not who sent it: only a signature verifies an agent.
network.kindstringhostingfrom a cloud provider's published range or a hosting company's AS number;residential,mobileorbusinessonly from an IP lookup provider; elseunknown, never a guess.network.providerstring | null- The cloud or hosting company, such as
aws,azureorhetzner. network.agent_rangeobject | null- The agent operator whose published range holds the address, and which crawler's: OpenAI, Anthropic, Google, Microsoft, Apple, Perplexity, Meta or Common Crawl.
network.privacyobject- A Tor exit, iCloud Private Relay, and a VPN or proxy when an IP lookup provider is set (null without one).
network.asninteger | null- The AS number and, in
as_org, its organisation, from the IP lookup provider. network.countrystring | null- Two letters, from the IP lookup provider.
network.ip_prefixstring | null- The /24 (IPv4) or /48 (IPv6) prefix. The whole address is in
network.iponly when your account keeps full addresses. network.unavailablearray- The fields Identify couldn't know. A request with no address reads
["ip"]. network.sourcesobject- The dates of the lists the decision was classified with.
device.osstring | null- The operating system and, in
os_version, its version. device.browserstring | null- The browser and, in
browser_version, its major version. device.typestringdesktop,mobile,tablet,botorunknown.device.time_zonestring | null- The time zone your page's script sent in
clienton the hosted check, withlocalefor its language.
The network is worked out on the whole address, then only the prefix is stored. Owners and admins on Pro and up can keep whole addresses with keep_full_ip in the site settings; they are still deleted with the decision. Embeds never show the address or its prefix, only the country. Nothing in device identifies a device across visits.
Rules read the same facts:
| Fact | Reads |
|---|---|
network., network., network. | The kind of network, the provider, the AS number |
network., network. | An agent operator's published range |
network., network., network. | Privacy services |
network. | The network's country |
device., device., device. | The device |
For example, challenge a hosting address that isn't a signed agent:
{
"id": "hosting-unsigned",
"when": [
{ "fact": "network.kind", "op": "eq", "value": "hosting" },
{ "fact": "agent.class", "op": "ne", "value": "signed_agent" }
],
"then": { "action": "challenge" }
}
A rule that names a fact the request didn't have doesn't match. Filter the decision list with network_kind and agent_range (an operator, any or none).
The person behind an agent
human.pseudonym is a hum_ id that stays the same for one person at your site and is unrelated to the id another site sees. Use it to rate-limit or block one person's agents. It never appears inside a token, and the person's identity is never in an assessment.
The pseudonym comes from the token's subject, which is pairwise per audience. An agent that mints its intent token with your origin as the audience gives the person a stable pseudonym at your site. A token without an audience, or a grant, carries a per-token subject, so its assessment has human.pseudonym: null while human.backed still says a person approved.
Signature outcomes
| Outcome | Signal | Makes a signed agent |
|---|---|---|
| Verifies against a key its directory publishes | none | Yes |
| Fails: forged, tampered, too old or replayed | signature_, signature_, signature_ | No, and adds to bot_ |
| Can't be attributed: the directory didn't resolve or doesn't list the key | unknown_ | No, and adds to bot_ |
Example
Check a request with POST /. This one comes from curl, which names itself in its user agent:
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s $PROVENANCE_API/v1/identify/assessments \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "request": { "method": "GET", "url": "https://quillstack.example/products/linen-a5", "headers": { "user-agent": "curl/8.7.1" } } }'
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const assessment = await prov.identify.assess({
request: { method: "GET", url: "https://quillstack.example/products/linen-a5", headers: { "user-agent": "curl/8.7.1" } },
});
import os
from provenanceauth import Provenance
prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
assessment = prov.identify.assess(request={
"method": "GET", "url": "https://quillstack.example/products/linen-a5", "headers": {"user-agent": "curl/8.7.1"},
})
The full assessment:
{
"object": "traffic_assessment",
"id": "tas_01M6M6EF2X58TGZGVF8FKGG0N9",
"class": "declared_bot",
"agent": null,
"human": null,
"bot_score": 40,
"signals": [{ "code": "declared_bot_ua", "description": "The user agent declares automation (a bot, crawler or spider token). (an HTTP library)" }],
"vendor_score": { "status": "not_configured" },
"protocol": null,
"decision": { "action": "allow", "shadow": null },
"policy": null,
"signature": { "method": "none", "valid": null, "key_id": null, "directory": null, "agent_id": null, "covers": [] },
"authority": null,
"bot": { "likelihood": 40, "band": "medium", "reason": null, "signals": [] },
"action": "browse",
"request": { "method": "GET", "path": "/products/linen-a5", "agent": { "platform": null } },
"source": "hosted",
"created_at": "2026-11-04T21:11:40.377Z",
"response": null
}
class is the conclusion; signals say why. decision is what your traffic policy did with it, and response, when the policy answers for you, is the status, headers and body to send back.
A hosted check is recorded, so you can read it back by its tas_ id at GET /v1/identify/assessments/{id}, or list them at GET /v1/identify/assessments. A read carries what was recorded: the request's method and path, the class, the agent, the signals and the decision, never the response. Reports from your middleware are traffic decisions, at GET /v1/identify/decisions.
The list filters on the outcome, the class, the signature, the bot likelihood and when it was assessed. To show these visits to your staff in your own admin tool, use the traffic list and traffic result embeds.