View as Markdown

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 agent program (name, purpose), its card's card.name and its operator_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, status and verified amount, 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 as agent.bot_likelihood_score.
bandenumRequired
medium (30 to 69) or high (70 and over) from likelihood; low only when it is under 30 and field timing saw a person (typed or pointer_seen); otherwise unclassified: nothing shows a bot or a person (a score of 0 because nothing tripped is no evidence either way). A request alone is never low. Checkout rules read it as agent.bot_likelihood. One of low, medium, high, unclassified.
reasonenumRequired
Why band is unclassified: not_checked (nothing to score), no_field_timing (the score is under 30 and no field timing ran) or no_person_signal (field timing ran and saw no typing and no pointer). Null otherwise. One of not_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) and pointer_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 (signed or declared), 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).
sourceenum
signed (verified through the platform's signing directory) or declared (a known crawler's user agent). One of signed, 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_possible is the generic blocked body with no rule id or reason. One of not_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. hosting comes from the cloud ranges or a hosting AS number; residential, mobile and business only from the IP lookup provider. unknown when nothing says. One of residential, 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. vpn is 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 | null
hosting-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; unknown with no readable user agent. One of desktop, 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"

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. A next_cursor carries its order; pass it back with the same sort. One of created, -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; any for any operator, none for an address in no published range. One of openai, 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"

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 with signed or declared; any other value rejects that decision. A verified agent's agent_program (visa_tap, mastercard_agent_pay), agent_signed_for (general, browse, pay), agent_card_name (at most 80 characters) and agent_operator_kind (direct, intermediary) are kept for the traffic backtest. Optional ip (at most 64 characters) and user_agent (at most 1,024) give the decision its network and device blocks; without them network.unavailable is [ip] and device.type is unknown.

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
      }
    ]
  }'

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.
bucketenumquery
30m with window=24h: 48 points of 30 minutes each instead of 24 of an hour. One of 30m.

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"

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/null

Response 201

{
  "object": "identify_calibration_label",
  "decision_id": "tas_01M8CHB39YSAMWMY7VZ943EHXF",
  "label": "scraper",
  "labelled_at": "2026-11-26T18:19:32.547Z"
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.