Identify · API reference
Traffic decisions
Recorded decisions, reported decisions and the traffic summary.
Related guide: Traffic assessment
The traffic decision object
Attributes
idstring- Unique identifier for the object.
objectenum- The type of object. One of
traffic_decision. sourcestring- hosted, middleware or edge.
classstring- The class.
actionstring | null- The route action.
decisionstring- The decision.
rule_idstring | null- The rule.
policy_versioninteger | null- The policy version.
shadowobject | null- The shadow policy's action.
agentobject | null- The agent. A verified one also carries what its signature said, when recorded:
purpose, the card network agentprogram(name,purpose), its card'scard.nameand itsoperator_kind. humanobject | null- The person's pseudonym, when backed.
intent_jtistring | null- The intent token's ID.
bot_scoreinteger- The rule score.
signalsarray of strings- The signal codes.
vendor_scoreobject | null- The vendor score.
methodstring- The method.
pathstring- The path (no query).
bundle_staleboolean- The middleware's bundle was stale.
protocolobject | null- The protocol object's
name,statusand verifiedamount, or null. botobject- How likely the visitor is automated, as an assessment naming this visit (
visit_id) would see it with no request: the score (with the visit's field timing when it ran), its band and the named signals. The raw timing is never returned.Show child attributes
likelihoodinteger | nullRequired- 0 to 100: the higher of Identify's bot score and the visit's field-timing score (
automation_score). Null when nothing scored the visitor. Checkout rules read it asagent.bot_likelihood_score. bandenumRequiredmedium(30 to 69) orhigh(70 and over) fromlikelihood;lowonly when it is under 30 and field timing saw a person (typedorpointer_seen); otherwiseunclassified: nothing shows a bot or a person (a score of 0 because nothing tripped is no evidence either way). A request alone is neverlow. Checkout rules read it asagent.bot_likelihood. One oflow,medium,high,unclassified.reasonenumRequired- Why
bandisunclassified:not_checked(nothing to score),no_field_timing(the score is under 30 and no field timing ran) orno_person_signal(field timing ran and saw no typing and no pointer). Null otherwise. One ofnot_checked,no_field_timing,no_person_signal. signalsarray of enumsRequired- The named signals that are true, from a fixed list:
headless(a headless browser or an automation driver),hosting_ip(a cloud or hosting provider's network),typed(field timing saw a field typed, not every value pasted or autofilled) andpointer_seen(a pointer moved, clicked or touched before submit). Each is also a checkout rule fact (agent.headless, …).
agent_platformobject | any | null- The agent platform the verdict named (
signedordeclared), or null.Show child attributes
nameenum- The platform's catalog name. One of
openai,anthropic,google,microsoft,apple,perplexity,meta,common_crawl. labelstring- The platform's display name (
OpenAI). sourceenumsigned(verified through the platform's signing directory) ordeclared(a known crawler's user agent). One ofsigned,declared.
clientobject | any | null- The per-client window's facts as decided, or null (no window ran, or recorded before December 2026).
Show child attributes
key_kindenum- The counting key: the address, a session cookie or a header fingerprint. One of
ip,session,fingerprint. requests_per_mininteger | null- Requests in the last minute.
distinct_paths_5minteger | null- Distinct pages read in the last five minutes.
read_share_1hnumber | null- Share of browse and search among the client's actions in the last hour.
asset_ratio_5mnumber | null- Assets per page in the last five minutes; null when no asset request reaches Identify.
scraping_versioninteger | null- The scraping settings version that decided.
respondobject | any | null- What the client received on a reject or an exceeded rate limit, or null (it passed, or the decision was recorded before December 2026).
Show child attributes
kindenum- The kind the client received.
not_possibleis the generic blocked body with no rule id or reason. One ofnot_possible,message,status_only,page,empty,alternate. alternate_idstring | null- The alternate the rule named, or null.
fallbackenum- Why the rule's kind wasn't served, or null when it was. One of
not_read_action,template_missing,content_type_mismatch,snapshot_unavailable,snapshot_too_old,snapshot_timeout,guarded.
networkobject | any | null- Where the request came from (the /24 or /48 prefix unless you keep full addresses), or null on a decision recorded before November 28, 2026.
Show child attributes
kindenum- The kind of network.
hostingcomes from the cloud ranges or a hosting AS number;residential,mobileandbusinessonly from the IP lookup provider.unknownwhen nothing says. One ofresidential,mobile,business,hosting,unknown. asninteger | null- The AS number, from the IP lookup provider; null without one.
as_orgstring | null- The AS organisation's name.
providerstring | null- A listed cloud or hosting provider (
aws,gcp,azure,hetzner), else null. agent_rangeobject | null- The agent operator whose published IP range holds the address, and which crawler's. Never a verified identity: only a signature verifies an agent. Null when the address is in no published range.
Show child attributes
operatorenum- The agent operator. One of
openai,anthropic,google,microsoft,apple,perplexity,meta,commoncrawl. crawlerstring- The crawler's id (
chatgpt-user,googlebot).
privacyobject- Privacy services.
vpnis null (unknown) without the IP lookup provider.Show child attributes
torboolean | null- A Tor exit.
private_relayboolean | null- iCloud Private Relay.
vpnboolean | null- A VPN or proxy, per the IP lookup provider.
countrystring | null- ISO 3166-1 alpha-2, from the IP lookup provider.
ip_prefixstring | null- The address's /24 or /48 prefix (the default).
ipstring | null- The whole address, only when the account keeps full addresses.
sourcesobject- The lists this decision was classified with, by date.
Show child attributes
asnstring | nullhosting-asns-<date>,ip_intel, or null with no AS number.rangesstring | null- The date of the crawler and cloud ranges.
unavailablearray of enums- The fields that couldn't be known.
ip: no address was sent, and every field is null.
deviceobject | any | null- The device the request describes, or null on a decision recorded before November 28, 2026.
Show child attributes
osstring | null- The operating system (
macOS,Windows,iOS,Android). os_versionstring | null- Its version, when the user agent or client hints state it.
browserstring | null- The browser (
Chrome,Safari,Firefox,Edge). browser_versionstring | null- Its major version.
typeenum- The device type;
unknownwith no readable user agent. One ofdesktop,mobile,tablet,bot,unknown. time_zonestring | null- The IANA time zone your page reported.
localestring | null- The language your page reported (BCP 47).
sourceenum- What the fields rest on. One of
user_agent,client_hints,browser.
created_attimestamp- When it was decided.
expires_attimestamp- When it is deleted.
The traffic decision object
{
"id": "tas_01M8J0P30B2QHC7REVEHRMJ91X",
"object": "traffic_decision",
"source": "hosted",
"class": "declared_bot",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow": null,
"agent": null,
"human": null,
"intent_jti": null,
"bot_score": 65,
"signals": [
"declared_bot_ua",
"datacenter_ip"
],
"vendor_score": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false,
"protocol": null,
"bot": {
"likelihood": 65,
"band": "medium",
"reason": null,
"signals": [
"hosting_ip"
]
},
"agent_platform": null,
"respond": null,
"client": {
"key_kind": "ip",
"requests_per_min": 0,
"distinct_paths_5m": 0,
"read_share_1h": 0,
"asset_ratio_5m": null,
"scraping_version": 1
},
"network": {
"kind": "hosting",
"asn": null,
"as_org": null,
"provider": "aws",
"agent_range": null,
"privacy": {
"tor": false,
"private_relay": false,
"vpn": null
},
"country": null,
"ip_prefix": "35.180.4.0/24",
"sources": {
"asn": null,
"ranges": "2026-10-25"
},
"unavailable": [
"asn",
"country",
"vpn"
]
},
"device": {
"os": null,
"os_version": null,
"browser": null,
"browser_version": null,
"type": "bot",
"time_zone": null,
"locale": null,
"source": "user_agent"
},
"created_at": "2026-11-28T21:23:53.483Z",
"expires_at": "2026-12-28T21:23:53.483Z"
}Retrieve a traffic decision
GET/v1/identify/decisions/{id}
Returns one recorded decision.
Parameters
idstringpathRequired- The decision's ID.
Returns
The decision. See the traffic decision object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/assessments" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}' > step.json
export TRAFFIC_DECISION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/decisions/$TRAFFIC_DECISION_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}),
})).json();
const trafficDecisionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions/${trafficDecisionId}`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}).json()
traffic_decision_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/decisions/{traffic_decision_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "tas_01M8J0P30V370MYJ0BZE44TWKE",
"object": "traffic_decision",
"source": "hosted",
"class": "declared_bot",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow": null,
"agent": null,
"human": null,
"intent_jti": null,
"bot_score": 65,
"signals": [
"declared_bot_ua",
"datacenter_ip"
],
"vendor_score": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false,
"protocol": null,
"bot": {
"likelihood": 65,
"band": "medium",
"reason": null,
"signals": [
"hosting_ip"
]
},
"agent_platform": null,
"respond": null,
"client": {
"key_kind": "ip",
"requests_per_min": 2,
"distinct_paths_5m": 1,
"read_share_1h": 1,
"asset_ratio_5m": null,
"scraping_version": 1
},
"network": {
"kind": "hosting",
"asn": null,
"as_org": null,
"provider": "aws",
"agent_range": null,
"privacy": {
"tor": false,
"private_relay": false,
"vpn": null
},
"country": null,
"ip_prefix": "35.180.4.0/24",
"sources": {
"asn": null,
"ranges": "2026-10-25"
},
"unavailable": [
"asn",
"country",
"vpn"
]
},
"device": {
"os": null,
"os_version": null,
"browser": null,
"browser_version": null,
"type": "bot",
"time_zone": null,
"locale": null,
"source": "user_agent"
},
"created_at": "2026-11-28T21:23:53.498Z",
"expires_at": "2026-12-28T21:23:53.498Z"
}List traffic decisions
GET/v1/identify/decisions
Lists recorded decisions (hosted checks and middleware reports), newest first. Decisions are kept for your retention setting (30 days by default).
Parameters
sortenumquery- The order of the list:
created, with-in front for descending. Newest first when omitted. Anext_cursorcarries its order; pass it back with the samesort. One ofcreated,-created. classarray of enumsquery- Only these classes. One value, or several separated by commas.
decisionarray of enumsquery- Only these decisions. One value, or several separated by commas.
qstringquery- Search text. Matches when the decision's ID, the agent's ID, directory or operator, the path, the action or the rule's ID contains it, ignoring case. At most 200 characters.
actionstringquery- Only this route action.
agent_idstringquery- Only this agent.
pseudonymstringquery- Only this person's pseudonym.
sourceenumquery- Only this source. One of
hosted,middleware,edge. human_backedenumquery- Only decisions with (or without) a person behind the agent. One of
true,false. shadow_differsenumquery- Only decisions where the shadow policy would have decided differently (or the same). One of
true,false. protocolenumquery- Only decisions whose request carried this payment protocol. One of
ap2,acp,x402. network_kindenumquery- Only decisions from this kind of network (decisions with no address are left out). One of
residential,mobile,business,hosting,unknown. agent_rangeenumquery- Only decisions whose address is in this operator's published range;
anyfor any operator,nonefor an address in no published range. One ofopenai,anthropic,google,microsoft,apple,perplexity,meta,commoncrawl,any,none. created_gtetimestampquery- The start of the window.
created_ltetimestampquery- The end of the window.
Returns
The decisions.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/assessments" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}' > step.json
export TRAFFIC_DECISION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}),
})).json();
const trafficDecisionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}).json()
traffic_decision_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/decisions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "tas_01M8J0P30B2QHC7REVEHRMJ91X",
"object": "traffic_decision",
"source": "hosted",
"class": "declared_bot",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow": null,
"agent": null,
"human": null,
"intent_jti": null,
"bot_score": 65,
"signals": [
"declared_bot_ua",
"datacenter_ip"
],
"vendor_score": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false,
"protocol": null,
"bot": {
"likelihood": 65,
"band": "medium",
"reason": null,
"signals": [
"hosting_ip"
]
},
"agent_platform": null,
"respond": null,
"client": {
"key_kind": "ip",
"requests_per_min": 0,
"distinct_paths_5m": 0,
"read_share_1h": 0,
"asset_ratio_5m": null,
"scraping_version": 1
},
"network": {
"kind": "hosting",
"asn": null,
"as_org": null,
"provider": "aws",
"agent_range": null,
"privacy": {
"tor": false,
"private_relay": false,
"vpn": null
},
"country": null,
"ip_prefix": "35.180.4.0/24",
"sources": {
"asn": null,
"ranges": "2026-10-25"
},
"unavailable": [
"asn",
"country",
"vpn"
]
},
"device": {
"os": null,
"os_version": null,
"browser": null,
"browser_version": null,
"type": "bot",
"time_zone": null,
"locale": null,
"source": "user_agent"
},
"created_at": "2026-11-28T21:23:53.483Z",
"expires_at": "2026-12-28T21:23:53.483Z"
},
{
"id": "tas_01M8J0P30334B7TBCGJNTNEKJC",
"object": "traffic_decision",
"source": "hosted",
"class": "unknown",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow": null,
"agent": null,
"human": null,
"intent_jti": null,
"bot_score": 0,
"signals": [],
"vendor_score": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products/house-blend",
"bundle_stale": false,
"protocol": null,
"bot": {
"likelihood": 0,
"band": "unclassified",
"reason": "no_field_timing",
"signals": []
},
"agent_platform": null,
"respond": null,
"client": {
"key_kind": "ip",
"requests_per_min": 0,
"distinct_paths_5m": 0,
"read_share_1h": 0,
"asset_ratio_5m": null,
"scraping_version": 1
},
"network": {
"kind": "unknown",
"asn": null,
"as_org": null,
"provider": null,
"agent_range": null,
"privacy": {
"tor": false,
"private_relay": false,
"vpn": null
},
"country": null,
"ip_prefix": "203.0.113.0/24",
"sources": {
"asn": null,
"ranges": "2026-10-25"
},
"unavailable": [
"asn",
"country",
"vpn"
]
},
"device": {
"os": "macOS",
"os_version": "14.6",
"browser": null,
"browser_version": null,
"type": "desktop",
"time_zone": "America/Los_Angeles",
"locale": "en-US",
"source": "browser"
},
"created_at": "2026-11-28T21:23:53.474Z",
"expires_at": "2026-12-28T21:23:53.474Z"
}
],
"has_more": false,
"next_cursor": null
}Report decisions
POST/v1/identify/decisions
Reports decisions the middleware or an edge template made, at most 1,000 per call. A repeated decision id counts once; a malformed one is listed in rejected. An optional ip is classified, then kept as its /24 or /48 prefix unless you keep full addresses. Reports are free: stored and shown in your decisions and summary, never metered.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
Provenance-Originstringheader- The sites this middleware serves, comma-separated origins (at most 10 are read). Only the scheme, host and port are kept.
decisionsarray of objectsRequired- The decisions (the
reportOf(verdict)shape from@provenanceauth/identify).agent_platform, when the verdict named one, is kept only as a catalog name withsignedordeclared; any other value rejects that decision. A verified agent'sagent_program(visa_tap,mastercard_agent_pay),agent_signed_for(general,browse,pay),agent_card_name(at most 80 characters) andagent_operator_kind(direct,intermediary) are kept for the traffic backtest. Optionalip(at most 64 characters) anduser_agent(at most 1,024) give the decision itsnetworkanddeviceblocks; without themnetwork.unavailableis[ip]anddevice.typeisunknown.
Returns
How many were accepted, repeated or rejected.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/identify/decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"decisions": [
{
"id": "tas_01JREFERENCE00000000000001",
"created_at": "2026-10-25T18:00:00.000Z",
"source": "middleware",
"class": "signed_agent",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow_action": null,
"shadow_rule_id": null,
"agent_id": null,
"agent_directory": "https://agents.example/.well-known/http-message-signatures-directory",
"operator": "agents.example",
"agent_category": null,
"agent_verified": true,
"key_id": "poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U",
"human_backed": false,
"pseudonym": null,
"intent_jti": null,
"bot_score": 0,
"signals": [],
"vendor": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false
}
]
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"decisions": [
{
"id": "tas_01JREFERENCE00000000000001",
"created_at": "2026-10-25T18:00:00.000Z",
"source": "middleware",
"class": "signed_agent",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow_action": null,
"shadow_rule_id": null,
"agent_id": null,
"agent_directory": "https://agents.example/.well-known/http-message-signatures-directory",
"operator": "agents.example",
"agent_category": null,
"agent_verified": true,
"key_id": "poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U",
"human_backed": false,
"pseudonym": null,
"intent_jti": null,
"bot_score": 0,
"signals": [],
"vendor": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false
}
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/identify/decisions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"decisions": [
{
"id": "tas_01JREFERENCE00000000000001",
"created_at": "2026-10-25T18:00:00.000Z",
"source": "middleware",
"class": "signed_agent",
"action": "browse",
"decision": "allow",
"rule_id": None,
"policy_version": None,
"shadow_action": None,
"shadow_rule_id": None,
"agent_id": None,
"agent_directory": "https://agents.example/.well-known/http-message-signatures-directory",
"operator": "agents.example",
"agent_category": None,
"agent_verified": True,
"key_id": "poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U",
"human_backed": False,
"pseudonym": None,
"intent_jti": None,
"bot_score": 0,
"signals": [],
"vendor": {
"vendor": None,
"status": "not_configured",
"score": None
},
"method": "GET",
"path": "/products",
"bundle_stale": False
}
]
}).json()Response 201
{
"object": "decision_report",
"accepted": 1,
"duplicates": 0,
"rejected": []
}Summarize traffic
GET/v1/identify/decisions/summary
Counts decisions by class, decision and action over a window, with the top agents, the top signals and the shadow policy's divergence.
Parameters
windowenumquery- The window. One of
24h,7d,30d. bucketenumquery30mwithwindow=24h: 48 points of 30 minutes each instead of 24 of an hour. One of30m.
Returns
The summary.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/assessments" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}' > step.json
export TRAFFIC_DECISION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/decisions/summary?window=24h" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}),
})).json();
const trafficDecisionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions/summary?window=24h`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}).json()
traffic_decision_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/decisions/summary?window=24h", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "traffic_summary",
"window": "24h",
"from": "2026-11-27T21:23:53.495Z",
"total": 3,
"by_class": {
"declared_bot": 2,
"unknown": 1
},
"by_decision": {
"allow": 3
},
"by_action": {
"browse": 3
},
"human_backed": 0,
"top_agents": [],
"top_signals": [
{
"code": "declared_bot_ua",
"count": 2
},
{
"code": "datacenter_ip",
"count": 2
}
],
"shadow": {
"evaluated": 0,
"diverged": 0,
"divergence_rate": 0
},
"points": [
{
"start": "2026-11-27T21:23:53.495Z",
"count": 0,
"by_class": {},
"by_decision": {}
},
{
"start": "2026-11-27T22:23:53.495Z",
"count": 0,
"by_class": {},
"by_decision": {}
},
{
"start": "2026-11-27T23:23:53.495Z",
"count": 0,
"by_class": {},
"by_decision": {}
},
"… 21 more"
],
"previous_total": 0
}Label a decision for the bot-score calibration
POST/v1/identify/decisions/{id}/label
Labels one of your decisions as a scraper, a good agent or a person, for Identify's bot-score calibration. Only with calibration sharing on (PUT /v1/identify/settings/scraping). Only the label, the signal codes and the facts are copied, never a path, address, user agent or cookie value; labels are removed 90 days after you turn sharing off. Labelling again replaces the label.
Parameters
labelenumRequired- What the client was. One of
scraper,good_agent,person.
Returns
The label.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X PUT "$PROVENANCE_API/v1/identify/settings/scraping" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "calibration_sharing": true }' > /dev/null
curl -s -X POST "$PROVENANCE_API/v1/identify/assessments" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"request": {
"method": "GET",
"url": "https://harborbean.example/products/house-blend",
"headers": {
"user-agent": "python-requests/2.32.3"
}
}
}' > step.json
export TRAFFIC_ASSESSMENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/identify/decisions/$TRAFFIC_ASSESSMENT_ID/label" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "label": "scraper" }'
curl -s -X PUT "$PROVENANCE_API/v1/identify/settings/scraping" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "calibration_sharing": false }' > /dev/nullconst step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/settings/scraping`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "calibration_sharing": true }),
})).json();
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"request": {
"method": "GET",
"url": "https://harborbean.example/products/house-blend",
"headers": {
"user-agent": "python-requests/2.32.3"
}
}
}),
})).json();
const trafficAssessmentId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions/${trafficAssessmentId}/label`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "label": "scraper" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.put(f"{api}/v1/identify/settings/scraping", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"calibration_sharing": True
}).json()
step2 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request": {
"method": "GET",
"url": "https://harborbean.example/products/house-blend",
"headers": {
"user-agent": "python-requests/2.32.3"
}
}
}).json()
traffic_assessment_id = step2["id"]
data = httpx.post(f"{api}/v1/identify/decisions/{traffic_assessment_id}/label", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"label": "scraper"
}).json()Response 201
{
"object": "identify_calibration_label",
"decision_id": "tas_01M8CHB39YSAMWMY7VZ943EHXF",
"label": "scraper",
"labelled_at": "2026-11-26T18:19:32.547Z"
}