View as Markdown

Identify · API reference

Traffic checks

The hosted check and the middleware's policy bundle.

Related guide: Verify signed agents

The traffic assessment object

Attributes

network_signalsobject
What the Provenance network knows about a passkey or an agent, from other companies' events. Every value is a count, a rate (0 to 1, three significant figures) or a fixed bucket. A value is null and sufficient_data false until it rests on at least 50 events from at least 5 companies other than you. See network signals.
Show child attributes
objectenumRequired
The type of object. One of network_signals.
contributingbooleanRequired
False when your account doesn't share with the network: then no values are returned.
as_oftimestamp
When the values were last counted (hourly).
passkeyobject
The approving passkey, across companies.
Show child attributes
first_seen_attimestamp | null
When the network first saw it.
companies_countinteger | null
Companies other than you that saw it.
decisions_countinteger | null
Decisions made with it.
denials_countinteger | null
Requests it denied.
unrecognized_denials_countinteger | null
Denials with deny_reason: unrecognized.
fraud_reports_countinteger | null
Active fraud reports.
sufficient_databoolean
Whether the minimums are met.
agentobject
The agent, across companies. Returned for verified agents.
Show child attributes
agent_idstring
The agent.
verifiedboolean
Whether the agent has a registered signing key.
months_activeinteger | null
Months since the network first saw it.
companies_count_bucketenum
A fixed count bucket; null below the minimums. One of 0, 1_9, 10_99, 100_999, 1000_9999, 10000_99999, 100000_plus.
requests_30d_bucketenum
A fixed count bucket; null below the minimums. One of 0, 1_9, 10_99, 100_999, 1000_9999, 10000_99999, 100000_plus.
approval_ratenumber | null
Approved decisions over all decisions.
unrecognized_ratenumber | null
Unrecognized denials over all decisions.
off_task_ratenumber | null
"Not what I asked for" denials over all decisions.
fraud_report_ratenumber | null
Fraud reports over orders and decisions.
network_mandates_active_bucketenum
A fixed count bucket; null below the minimums. One of 0, 1_9, 10_99, 100_999, 1000_9999, 10000_99999, 100000_plus.
sufficient_databoolean
Whether the minimums are met.
takeover_confirmed_30dinteger
Takeovers the agent's owner confirmed in the last 30 days, shown whatever the minimums. Present only when there's at least one.
external_riskobject
Present when one of your risk providers covers the agent, its directory or its key: their combined verdict (your account only).
Show child attributes
riskenum
The highest risk across providers, or unavailable. One of none, low, medium, high, critical, unavailable.
categoriesarray of strings
The flagging verdicts' categories.
providers_flagginginteger
Providers with a verdict above none.
providersarray of objects
Each covering provider's answer.
objectenum
The type of object. One of traffic_assessment.
idstring
Unique identifier for the object.
classenum
The request's class. Only a verified signature makes a signed_agent. One of signed_agent, declared_bot, suspected_bot, likely_human, unknown.
agentobject | null
The signing agent, when the request carries a Web Bot Auth signature.
Show child attributes
idstring | null
The registered agent ID.
namestring | null
The agent's name.
categorystring | null
The agent's category.
operatorstring | null
The operator.
verifiedboolean
The signature verified against keys its Signature-Agent URL publishes.
directorystring | null
The directory the signature resolved to.
key_idstring | null
On a read: the signing key's ID.
signatureobject
The signature.
Show child attributes
validboolean
Whether it verified.
key_idstring | null
The keyid.
createdinteger | null
When it was made (Unix seconds).
expiresinteger | null
When it expires (Unix seconds).
coversarray of strings
The covered components.
purposeenum
Verified signatures only: what the agent signed the request for. general for Web Bot Auth; browse or pay for a card network agent program's tag (agent-browser-auth, agent-payer-auth, agent-pay-auth). One of general, browse, pay.
programobject
Present only on a verified card network signature: the program whose tag it carries, what it signed for, and whether the program's body objects carry the signature's nonce. A program is not an agent platform.
Show child attributes
nameenum
The card network agent program. One of visa_tap, mastercard_agent_pay.
purposeenum
What the agent signed for. One of browse, pay.
objectsobject
Whether each body object (the consumer object and the payment object) carries the verified signature's nonce: match, mismatch, or null when it isn't there. Their contents are never read or kept.
Show child attributes
consumerenum
The consumer object. One of match, mismatch.
paymentenum
The payment object. One of match, mismatch.
cardobject
Present when a verified signature's key came from a Signature Agent card: its name (cleaned, at most 80 characters) and its site's host, with its purpose and trigger when they are short strings. Never its contacts or logo.
Show child attributes
namestring | null
The card's client_name.
sitestring | null
The host of the card's client_uri.
purposestring
The card's web_bot_auth.purpose.
triggerstring
The card's web_bot_auth.trigger.
operator_kindenum
How a verified agent is run, present only when your own edge passes it to the middleware (an operatorKind reader): direct (its own operator) or intermediary (a service for many users). The hosted check never reads a header for it. One of direct, intermediary.
humanobject | null
The person behind the agent, when the request carries an Authorize approval.
Show child attributes
backedboolean
A person approved this agent's action.
pseudonymstring | null
The person's pseudonym at your site (hum_…).
approved_atstring | null
When they approved.
methodstring | null
How: passkey, device_biometric, device or mandate.
biometric_boundboolean
A biometric was verified.
device_trust_tierstring | null
The approving device's tier.
intent_validboolean
The intent token verified.
intent_reasonstring
Why it didn't: token_invalid, token_expired, token_revoked, audience_mismatch, payload_unbound, payload_hash_mismatch, grant_not_applicable, approval_required or approval_too_weak.
intent_jtistring | null
The token's ID.
approval_idstring | null
The Authorize approval the token carries, when a person approved this exact action.
sourceenum
The header the token came from: intent (Provenance-Intent) or mandate (Provenance-Mandate). One of intent, mandate.
bot_scoreinteger
Identify's rules, additive and advisory.
signalsarray of objects
The named signals behind bot_score.
Show child attributes
codestring
The signal.
descriptionstring
What it means.
vendor_scoreobject
Your vendor's score through your own key, or {status: not_configured}. Never fabricated.
Show child attributes
vendorstring
The vendor.
statusenum
The outcome. One of ok, not_configured, error, quota_exhausted, absent.
scorenumber
The score (0–1).
messagestring
The vendor's message.
protocolobject | null
The payment-protocol object the request carried (AP2, which maps to AP2 0.2; ACP; x402 v2), and whether it verified. Null when there is none, which is normal.
Show child attributes
nameenumRequired
The protocol. One of ap2, acp, x402.
kindenumRequired
What arrived. One of checkout_mandate, payment_mandate, checkout_session, payment.
statusenumRequired
unverified means no verifier, no claim to check or missing facts; an unconfigured AP2 verifier is never verified. One of verified, unverified, invalid.
reasonstring
Why it isn't verified: ap2_verifier_not_configured, ap2_verifier_unavailable, ap2_signature_invalid, no_expected_checkout, no_expected_order, no_intent, payload_hash_mismatch, …
amountinteger
The verified amount: minor units, or the asset's atomic units for x402.
currencystring
The verified currency (lowercase ISO 4217), or the x402 asset.
payeestring
The payee the verified object names.
provenance_intentbooleanRequired
The object carries a Provenance intent claim.
decisionobject
What your traffic policy decided.
Show child attributes
actionenum
The action. One of allow, reject, log_only, rate_limit, challenge, require_intent.
shadowobject | null
What the shadow policy would have done.
rate_limitobject
The window that applied.
bundle_staleboolean
The middleware's bundle was past its TTL.
respondobject
On a reject or an exceeded rate limit: what the client received (the rule's respond, by default not_possible), so you can tell a disguised answer from a real one. Absent when the request passed.
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.
policyobject | null
The rule that decided, the same block on every product's assessment and simulation: your policy's ID and the version that decided, the rule's ID and name, when it ran, what it did, and each of its conditions with the value the engine compared (actual). Only the deciding rule is listed. A computed comparison (a location match, a distance) appears in a result only here. Null when no rule decided; reason then says what did.
Show child attributes
idstring | nullRequired
The product's policy (pol_…), one per account and product, the same on every version.
versioninteger | nullRequired
The version that decided: null on the built-in default rules, 0 when a simulation runs a draft.
ruleobjectRequired
The rule, and what it compared.
Show child attributes
idstringRequired
The rule's ID (rul_…, or rul_default_… for a default row), kept across versions.
refstring | null
The rule's short display ID (R-103, or R-04 outside checkout), the one the console shows beside the rule. Checkout rules carry their phase digit first: R-1nn at checkout, R-2nn after the customer answers. Kept across versions and never reused in the policy. Null when the rule's text is gone.
namestring | nullRequired
The rule's name in the builder, when it has one.
phaseenumRequired
When it ran: assess, or after_approval (a store's checkout rule run once the person decided); a Trace rule runs at action (before a tool call) or completion (on model output). One of assess, after_approval, action, completion.
actionenumRequired
What the rule did: Approve, Challenge (ask a person), Reject or Review. See outcome words. One of approve, challenge, reject, review.
conditionsarray of objectsRequired
Each condition of the rule, with the value compared.
Show child attributes
factstringRequired
The fact (order.amount, approval.location, class, …).
opstringRequired
The operator.
valueanyRequired
The value the condition compares with.
actualanyRequired
The value the engine compared; null when the fact was absent.
unavailablestring
Why actual is null: not_collected, not_recorded on a result read back from a record that didn't keep the value, or withheld for a raw field-timing fact (agent.typing_interval_ms, agent.checkout_fill_seconds), which rules read but no result returns.
metricstring
A velocity condition's counter (verify_count, amount_sum).
windowstring
A velocity condition's window.
perstring
A velocity condition's subject.
setstring
A canary or prediction condition's family or probe.
baselinestring
A relative canary condition's baseline.
pathstring
A field condition's path in the request.
traceobject
The deciding rule's path, however deep: its groups, conditions, signals, scorecards with their rows, rule references and rule groups, each with its value and result. Present only when the path says more than rule.conditions (a nested group, a derived fact, an unavailable reading). Bounded at depth 6 and 60 nodes, then truncated.
Show child attributes
roundsinteger
Rounds of fact resolution the decision took.
nodesarray of objectsRequired
The path's nodes. kind is condition, all, any, none, at_least, signal, scorecard, rule, group, flow or risk_score; groups and signals hold nodes, a scorecard its rows. A risk_score node is a condition on a custom risk score: key, label, version, answer, p (as rules read them), raw (the model's own), calibrated, fact, op, value, actual, result, evaluation_id and reason.status (the text is on the evaluation).
skippedobject
Facts the decision never had to read, by cost tier (tier_3: 1).
truncatedboolean
The path was longer than the bounds.
unavailablearray of objects
The facts the decision found unavailable, and why. Present only when there were some.
Show child attributes
factstringRequired
The fact.
reasonstringRequired
Why: timeout, error, unconfigured, deadline and the rest.
signatureobject | any | null
How the request was signed. The hosted check also reads http_signature (a key registered with Provenance); the middleware reads web_bot_auth. A read of a check recorded before November 17, 2026 returns null.
Show child attributes
methodenum
How the request was signed: web_bot_auth, http_signature, network (a card network agent program's tag), or none (no signature, or no request was checked). One of web_bot_auth, http_signature, network, none.
validboolean | null
True when the signature verified, false when one was sent and didn't, null when nothing was signed. A traffic assessment reports a failed signature (your traffic policy decides what it gets); a mandate assessment refuses it first (agent_signature_invalid).
key_idstring | null
The signature's keyid (the key's JWK thumbprint).
directorystring | null
Where the key was found: the Signature-Agent directory URL, or provenance_registry for a key registered with Provenance.
agent_idstring | null
The registered agent (agt_…) the key belongs to, when the signature verified against a key registered with Provenance or its hosted directory.
platformobject | any | null
Checkout assessments only: the agent platform Identify named for the checkout (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.
coversarray of strings
The covered components, by name (@authority, @method, @path, signature-agent, content-digest). Empty when nothing was signed.
authorityobject | any | null
What covered the request: the person's token it carried (provenance_intent_token or provenance_mandate), or none when that token didn't verify or didn't satisfy your policy. Null when the request carried no token.
Show child attributes
kindenum
What covered the action. Assessments today return provenance_intent_token, provenance_mandate, third_party_mandate (checkout only) or none. One of provenance_intent_token, provenance_mandate, third_party_mandate, spc, platform_confirmation, none.
verifiedboolean
True when the token verified (ES256 against Provenance's published keys).
verified_againstenum
What it was verified against: Provenance's published keys. One of provenance_jwks.
algenum
The token's signing algorithm. One of ES256.
key_idstring | null
The kid of the key that signed the token.
issuerstring | null
The token's issuer (iss); on third_party_mandate, the name you listed the issuer under (or, through your own AP2 verifier, the mandate's iss).
mandate_idstring | null
The mandate the token was issued under, or the grant itself; null for a token with no mandate.
mandate_chainarray of strings
The mandates from the person's grant down to the one the agent holds, root first (up to 5). Present with mandate_id; a traffic assessment leaves it out (the middleware can't see the chain).
approval_context_idstring | null
On provenance_intent_token: the approval context of the person's yes that minted the token, when one is known.
cart_matchenum
How the covered thing matched what was assessed: matched (the token's binding hash, or an AP2 Payment Mandate's total, currency and payee, equal the cart's), merchant_facts (an AP2 Checkout Mandate matched your own Checkout), or not_applicable (an agent action or a request, where the payload or request hash binds instead). One of matched, merchant_facts, not_applicable.
protocolenum
On third_party_mandate: the mandate's protocol. One of ap2, acp.
verified_byenum
On third_party_mandate: verified against the keys of an issuer you list (issuer_jwks), or by your own AP2 verifier through Identify (merchant_verifier). One of issuer_jwks, merchant_verifier.
evidence_hashstring | null
On third_party_mandate: the SHA-256 (hex) of the mandate as presented, never the mandate; null when Provenance never saw it (a verdict your middleware reported).
actionstring | null
Your route map's action for this request.
clientobject | any | null
The per-client window's facts the rules read (client.requests_per_min, client.distinct_paths_5m, client.read_share_1h, client.asset_ratio_5m), or null when no window ran (the request had no address).
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.
sourceenum
Where the verdict was computed. One of hosted, middleware, edge.
botobject
How likely the request is automated: Identify's score, its band and the named signals (headless, hosting_ip). A request alone is never low: under 30 it reads unclassified with reason: no_field_timing. On a read it is computed from what was recorded (with the visit's field timing when it ran); the list filters on its band (bot_likelihood).
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, …).
requestobject
The assessed request.
Show child attributes
methodstring
The request's method.
pathstring
The request's path (never the query).
agentobject
The agent behind the request.
Show child attributes
platformobject | any | null
The agent platform that sent it, labelled by source (signed through the platform's signing directory, declared by a known crawler's user agent), or null when neither names one. Never guessed.
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.
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 created.
expires_attimestamp
On a read: when the record is deleted (your retention setting).
responseobject | null
Hosted check only: the response to send instead of serving the request (the rule's respond: by default a 403 or 429 problem body with no rule id or reason; or the 401 ProvenanceIntent challenge), or null.
Show child attributes
statusinteger
The status.
headersobject
The headers.
bodyobject
The problem body (empty when text is set).
textstring
Send these exact bytes instead of body (status_only, page, empty and alternate).
set_cookiestring
Hosted check, with per-session counting on: the pv_cid cookie to set on whatever you answer, the page or the response above (present only then).

The traffic assessment object

{
  "object": "traffic_assessment",
  "id": "tas_01M8J0P3105DDJ5TGK5B8F84AY",
  "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)."
    }
  ],
  "vendor_score": {
    "status": "not_configured"
  },
  "protocol": null,
  "decision": {
    "action": "allow",
    "shadow": null,
    "bundle_stale": false
  },
  "policy": null,
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": []
  },
  "authority": null,
  "action": "browse",
  "client": null,
  "source": "hosted",
  "bot": {
    "likelihood": 40,
    "band": "medium",
    "reason": null,
    "signals": []
  },
  "request": {
    "method": "GET",
    "path": "/products",
    "agent": {
      "platform": null
    }
  },
  "network": {
    "kind": "unknown",
    "asn": null,
    "as_org": null,
    "provider": null,
    "agent_range": null,
    "privacy": {
      "tor": null,
      "private_relay": null,
      "vpn": null
    },
    "country": null,
    "ip_prefix": null,
    "sources": {
      "asn": "hosting-asns-2026-11-28",
      "ranges": "2026-10-25"
    },
    "unavailable": [
      "ip"
    ]
  },
  "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.503Z",
  "expires_at": "2026-12-28T21:23:53.503Z"
}

Retrieve a traffic assessment

GET/v1/identify/assessments/{id}

Returns one recorded hosted check as its traffic_assessment.

Parameters

idstringpathRequired
The assessment's ID (tas_…).

Returns

The assessment. See the traffic assessment 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": "Mozilla/5.0 (compatible; GPTBot/1.1; +https://openai.com/gptbot)"
      }
    }
  }' > step.json
export TRAFFIC_ASSESSMENT_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/assessments/$TRAFFIC_ASSESSMENT_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "traffic_assessment",
  "id": "tas_01M8J0P314QRATXHPW0855Q7B2",
  "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)."
    }
  ],
  "vendor_score": {
    "status": "not_configured"
  },
  "protocol": null,
  "decision": {
    "action": "allow",
    "shadow": null,
    "bundle_stale": false
  },
  "policy": null,
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": []
  },
  "authority": null,
  "action": "browse",
  "client": null,
  "source": "hosted",
  "bot": {
    "likelihood": 40,
    "band": "medium",
    "reason": null,
    "signals": []
  },
  "request": {
    "method": "GET",
    "path": "/products",
    "agent": {
      "platform": {
        "name": "openai",
        "label": "OpenAI",
        "source": "declared"
      }
    }
  },
  "network": {
    "kind": "unknown",
    "asn": null,
    "as_org": null,
    "provider": null,
    "agent_range": null,
    "privacy": {
      "tor": null,
      "private_relay": null,
      "vpn": null
    },
    "country": null,
    "ip_prefix": null,
    "sources": {
      "asn": "hosting-asns-2026-11-28",
      "ranges": "2026-10-25"
    },
    "unavailable": [
      "ip"
    ]
  },
  "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.508Z",
  "expires_at": "2026-12-28T21:23:53.508Z"
}

Get the policy bundle

GET/v1/identify/policy_bundle

Everything the middleware needs to decide in-process: your route map, traffic policy and lists, Provenance's token keys, the hosted agent directories and your pseudonym key. Send If-None-Match with the last ETag; a 304 means nothing changed. Free on every plan; it needs your secret API key. Each call counts toward your account's daily Identify usage, which is never billed.

Parameters

If-None-Matchstringheader
The ETag of the bundle you hold.
Provenance-Originstringheader
The sites this middleware serves, comma-separated origins (at most 10 are read). The middleware sends it once it has served a request. Only the scheme, host and port are kept.
listsenumquery
omit leaves out the vendored crawler and cloud ranges, so the rules run without addresses to match. The middleware takes full. One of full, omit.

Returns

The policy bundle.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/policy_bundle?lists=omit" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "identify_policy_bundle",
  "etag": "57735d7c4c083221a7d464c33915b7ff",
  "generated_at": "2026-11-17T18:30:15.202Z",
  "environment": "sandbox",
  "merchant": {
    "account_id": "acct_000000000000000000000000000000a2",
    "origins": [],
    "display_name": null,
    "pseudonym_key": "-0RyVeIo3EzVwnnK-0Ilgdaa1Hpd7jMSBW2fyMlzfjw"
  },
  "route_map": [
    {
      "path": "/checkout*",
      "action": "checkout"
    },
    {
      "path": "/login*",
      "action": "login"
    },
    {
      "path": "/account*",
      "action": "account_change"
    },
    "… 3 more"
  ],
  "policy": {
    "id": "pol_B48657D1A9F063C2215A7F9CEE",
    "version": null,
    "document": {
      "version": 0,
      "rules": [],
      "default": "allow"
    }
  },
  "shadow": null,
  "lists": {},
  "jwks": {
    "keys": [
      {
        "kty": "EC",
        "crv": "P-256",
        "x": "Xbm166xjlNLRSvahj_T_dYsQnJoMTsDPm1YEV6Jhvek",
        "y": "Ey88QjN92J8cb3W1irA7M5QGWnCbXz-5n7pmrY9SDOU",
        "kid": "9709b87a1edbdb99",
        "use": "sig",
        "alg": "ES256"
      }
    ]
  },
  "directories": [
    {
      "identifiers": [
        "http://127.0.0.1:59712/v1/public/agents/agt_01JDSAMPLE0TIDEPOOL0SALES00/directory",
        "http://127.0.0.1:59712/v1/public/agents/agt_01JDSAMPLE0TIDEPOOL0SALES00/card"
      ],
      "agent": {
        "id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
        "name": "Tidepool Sales",
        "category": null,
        "operator": "saltmarsh.example"
      },
      "keys": [
        {
          "kty": "OKP",
          "crv": "Ed25519",
          "x": "aL5yQgjzM_B3dWDy6lgxlWeU9A_9_jRLNYQsRGLiN48",
          "kid": "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U",
          "use": "sig"
        }
      ]
    },
    {
      "identifiers": [
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7F2EKKR5SQQ1G84R09R/directory",
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7F2EKKR5SQQ1G84R09R/card"
      ],
      "agent": {
        "id": "agt_01M7NCC7F2EKKR5SQQ1G84R09R",
        "name": "pantry-pal",
        "category": "shopping_agent",
        "operator": "sandbox.example"
      },
      "keys": [
        {
          "kty": "OKP",
          "crv": "Ed25519",
          "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
          "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
          "use": "sig"
        }
      ]
    },
    {
      "identifiers": [
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7F8X3C61ZDMR4J109X1/directory",
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7F8X3C61ZDMR4J109X1/card"
      ],
      "agent": {
        "id": "agt_01M7NCC7F8X3C61ZDMR4J109X1",
        "name": "pantry-pal",
        "category": "shopping_agent",
        "operator": "sandbox.example"
      },
      "keys": [
        {
          "kty": "OKP",
          "crv": "Ed25519",
          "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
          "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
          "use": "sig"
        }
      ]
    },
    {
      "identifiers": [
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7KKG63R2CEGEV9KSGAV/directory",
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7KKG63R2CEGEV9KSGAV/card"
      ],
      "agent": {
        "id": "agt_01M7NCC7KKG63R2CEGEV9KSGAV",
        "name": "pantry-pal",
        "category": "shopping_agent",
        "operator": "sandbox.example"
      },
      "keys": [
        {
          "kty": "OKP",
          "crv": "Ed25519",
          "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
          "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
          "use": "sig"
        }
      ]
    },
    {
      "identifiers": [
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7KQ2RRAGW2CXEHEFR4Y/directory",
        "http://127.0.0.1:59712/v1/public/agents/agt_01M7NCC7KQ2RRAGW2CXEHEFR4Y/card"
      ],
      "agent": {
        "id": "agt_01M7NCC7KQ2RRAGW2CXEHEFR4Y",
        "name": "pantry-pal",
        "category": "shopping_agent",
        "operator": "sandbox.example"
      },
      "keys": [
        {
          "kty": "OKP",
          "crv": "Ed25519",
          "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
          "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
          "use": "sig"
        }
      ]
    }
  ],
  "fail_mode": "closed",
  "max_signature_age_seconds": 60,
  "ttl_seconds": 300
}

List traffic assessments

GET/v1/identify/assessments

Your recorded hosted checks (POST /v1/identify/assessments), newest first, as traffic_assessment objects. Each carries what was recorded: no response and no paid human detail. Middleware and edge reports are traffic decisions (GET /v1/identify/decisions). The filters and the page are read in the store; <provenance-traffic-list> takes the same filters.

Parameters

limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back to get the next page.
outcomearray of enumsquery
Only assessments with these decisions (decision.action). One value, or several separated by commas.
classarray of enumsquery
Only these classes. One value, or several separated by commas: an agent is signed_agent, declared_bot or suspected_bot; a person is likely_human.
signedenumquery
Only visits whose agent signature verified (true), or didn't (false). One of true, false.
bot_likelihoodarray of enumsquery
Only these bot likelihood bands. One value, or several separated by commas.
created_gtetimestampquery
Assessed at or after this time.
created_ltetimestampquery
Assessed at or before this time.

Returns

The assessments.

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"
      }
    }
  }' > /dev/null
curl "$PROVENANCE_API/v1/identify/assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [
    {
      "object": "traffic_assessment",
      "id": "tas_01M8J0P3105DDJ5TGK5B8F84AY",
      "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)."
        }
      ],
      "vendor_score": {
        "status": "not_configured"
      },
      "protocol": null,
      "decision": {
        "action": "allow",
        "shadow": null,
        "bundle_stale": false
      },
      "policy": null,
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": []
      },
      "authority": null,
      "action": "browse",
      "client": null,
      "source": "hosted",
      "bot": {
        "likelihood": 40,
        "band": "medium",
        "reason": null,
        "signals": []
      },
      "request": {
        "method": "GET",
        "path": "/products",
        "agent": {
          "platform": null
        }
      },
      "network": {
        "kind": "unknown",
        "asn": null,
        "as_org": null,
        "provider": null,
        "agent_range": null,
        "privacy": {
          "tor": null,
          "private_relay": null,
          "vpn": null
        },
        "country": null,
        "ip_prefix": null,
        "sources": {
          "asn": "hosting-asns-2026-11-28",
          "ranges": "2026-10-25"
        },
        "unavailable": [
          "ip"
        ]
      },
      "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.503Z",
      "expires_at": "2026-12-28T21:23:53.503Z"
    },
    {
      "object": "traffic_assessment",
      "id": "tas_01M8J0P30V370MYJ0BZE44TWKE",
      "class": "declared_bot",
      "agent": null,
      "human": null,
      "bot_score": 65,
      "signals": [
        {
          "code": "declared_bot_ua",
          "description": "The user agent declares automation (a bot, crawler or spider token)."
        },
        {
          "code": "datacenter_ip",
          "description": "The address is in a cloud provider's published ranges."
        }
      ],
      "vendor_score": {
        "status": "not_configured"
      },
      "protocol": null,
      "decision": {
        "action": "allow",
        "shadow": null,
        "bundle_stale": false
      },
      "policy": null,
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": []
      },
      "authority": null,
      "action": "browse",
      "client": {
        "key_kind": "ip",
        "requests_per_min": 2,
        "distinct_paths_5m": 1,
        "read_share_1h": 1,
        "asset_ratio_5m": null,
        "scraping_version": 1
      },
      "source": "hosted",
      "bot": {
        "likelihood": 65,
        "band": "medium",
        "reason": null,
        "signals": [
          "hosting_ip"
        ]
      },
      "request": {
        "method": "GET",
        "path": "/products",
        "agent": {
          "platform": null
        }
      },
      "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"
    },
    {
      "object": "traffic_assessment",
      "id": "tas_01M8J0P30K998DKVTZYAFXKZ61",
      "class": "declared_bot",
      "agent": null,
      "human": null,
      "bot_score": 65,
      "signals": [
        {
          "code": "declared_bot_ua",
          "description": "The user agent declares automation (a bot, crawler or spider token)."
        },
        {
          "code": "datacenter_ip",
          "description": "The address is in a cloud provider's published ranges."
        }
      ],
      "vendor_score": {
        "status": "not_configured"
      },
      "protocol": null,
      "decision": {
        "action": "allow",
        "shadow": null,
        "bundle_stale": false
      },
      "policy": null,
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": []
      },
      "authority": null,
      "action": "browse",
      "client": {
        "key_kind": "ip",
        "requests_per_min": 1,
        "distinct_paths_5m": 1,
        "read_share_1h": 1,
        "asset_ratio_5m": null,
        "scraping_version": 1
      },
      "source": "hosted",
      "bot": {
        "likelihood": 65,
        "band": "medium",
        "reason": null,
        "signals": [
          "hosting_ip"
        ]
      },
      "request": {
        "method": "GET",
        "path": "/products",
        "agent": {
          "platform": null
        }
      },
      "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.491Z",
      "expires_at": "2026-12-28T21:23:53.491Z"
    },
    {
      "object": "traffic_assessment",
      "id": "tas_01M8J0P30B2QHC7REVEHRMJ91X",
      "class": "declared_bot",
      "agent": null,
      "human": null,
      "bot_score": 65,
      "signals": [
        {
          "code": "declared_bot_ua",
          "description": "The user agent declares automation (a bot, crawler or spider token)."
        },
        {
          "code": "datacenter_ip",
          "description": "The address is in a cloud provider's published ranges."
        }
      ],
      "vendor_score": {
        "status": "not_configured"
      },
      "protocol": null,
      "decision": {
        "action": "allow",
        "shadow": null,
        "bundle_stale": false
      },
      "policy": null,
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": []
      },
      "authority": null,
      "action": "browse",
      "client": {
        "key_kind": "ip",
        "requests_per_min": 0,
        "distinct_paths_5m": 0,
        "read_share_1h": 0,
        "asset_ratio_5m": null,
        "scraping_version": 1
      },
      "source": "hosted",
      "bot": {
        "likelihood": 65,
        "band": "medium",
        "reason": null,
        "signals": [
          "hosting_ip"
        ]
      },
      "request": {
        "method": "GET",
        "path": "/products",
        "agent": {
          "platform": null
        }
      },
      "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"
    },
    {
      "object": "traffic_assessment",
      "id": "tas_01M8J0P30334B7TBCGJNTNEKJC",
      "class": "unknown",
      "agent": null,
      "human": null,
      "bot_score": 0,
      "signals": [],
      "vendor_score": {
        "status": "not_configured"
      },
      "protocol": null,
      "decision": {
        "action": "allow",
        "shadow": null,
        "bundle_stale": false
      },
      "policy": null,
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": []
      },
      "authority": null,
      "action": "browse",
      "client": {
        "key_kind": "ip",
        "requests_per_min": 0,
        "distinct_paths_5m": 0,
        "read_share_1h": 0,
        "asset_ratio_5m": null,
        "scraping_version": 1
      },
      "source": "hosted",
      "bot": {
        "likelihood": 0,
        "band": "unclassified",
        "reason": "no_field_timing",
        "signals": []
      },
      "request": {
        "method": "GET",
        "path": "/products/house-blend",
        "agent": {
          "platform": null
        }
      },
      "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
}

Assess a request

POST/v1/identify/assessments

Assesses one request the way the middleware does and returns a traffic_assessment: verifies its Web Bot Auth signature, reads the person's approval, applies your traffic policy and records the decision. response is what to answer instead of serving the request, or null. Metered per 1,000 checks, with the network, risk and revocation signals it adds.

Parameters

requestobjectRequired
The request as your server received it.
Show child attributes
methodstringRequired
The HTTP method.
urlstringRequired
The absolute URL the client called.
headersobject
The request headers (at most 100).
bodystring
The request body, when it may hold a protocol object (an AP2 mandate, an ACP completion). Read for this check only and never stored.
protocolsobject
Your own facts for this request's protocol object.
Show child attributes
ap2_expectedobject
Your Checkout: checkout_jwt or checkout_hash, payee_id, amount (minor units) and currency. Needed to verify an AP2 Checkout Mandate.
x402_expectedobject
The payment you advertised (resource, scheme, network, amount, asset, payTo); the intent token must bind it.
ipstring
The client address. The network is classified on the whole address for this check; only its /24 or /48 prefix is stored, unless your account keeps full addresses.
clientobject
What your own page's script reported about the browser. Never inferred.
Show child attributes
time_zonestring
An IANA time zone (Europe/Paris).
localestring
A BCP 47 language tag (fr-FR).
orderobject
Your order for this request, when it is a checkout (enables binding="order").
recordboolean
Record the decision (default true).
challenge_passedboolean
Your own challenge passed this client: for 30 minutes it is never served alternate content (held on its counting keys).

Returns

The traffic assessment. See the traffic assessment object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -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": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15",
        "accept-language": "en-US"
      }
    },
    "ip": "203.0.113.24",
    "client": {
      "time_zone": "America/Los_Angeles",
      "locale": "en-US"
    }
  }'

Response 200

{
  "object": "traffic_assessment",
  "id": "tas_01M8J0P30334B7TBCGJNTNEKJC",
  "class": "unknown",
  "agent": null,
  "human": null,
  "bot_score": 0,
  "signals": [],
  "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": 0,
    "band": "unclassified",
    "reason": "no_field_timing",
    "signals": []
  },
  "action": "browse",
  "client": {
    "key_kind": "ip",
    "requests_per_min": 0,
    "distinct_paths_5m": 0,
    "read_share_1h": 0,
    "asset_ratio_5m": null,
    "scraping_version": 1
  },
  "request": {
    "method": "GET",
    "path": "/products/house-blend",
    "agent": {
      "platform": null
    }
  },
  "source": "hosted",
  "created_at": "2026-11-28T21:23:53.474Z",
  "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"
  },
  "response": null
}

Load the storefront check script

GET/v1/identify/storefront.js

The storefront check, an ES module a store's pages load with a <script type="module"> tag, or through the Provenance app embed on Shopify. It carries the site's settings and sets no cookie. See the storefront check guide.

No API key needed.

Parameters

shopstringquery
A connected shop's domain (saltmarsh-goods.myshopify.com). Send shop or key.
keystringquery
A publishable key (prv_pub_…) for your own site; its allowed origins are checked.
storestringquery
A WooCommerce connection's ID (stc_); the Provenance for WooCommerce plugin loads it with this. Send one of shop, key or store.

Returns

The module (text/javascript).

Errors

curl "$PROVENANCE_API/v1/identify/storefront.js?key=prv_pub_9cK2mW7xT4vQ8nB3sYd6fJh1gAe5rLp0"

Record a storefront event

POST/v1/identify/storefront_events

One event from the storefront check script: a page view, recorded as the visit (cart and checkout page views are billed hosted checks and return the visit ID), or a form submit carrying the visit's field-timing summary. Name the site with a connected shop or a publishable key. See the storefront check guide.

No API key needed.

Parameters

shopstring
A connected shop's domain (saltmarsh-goods.myshopify.com). Send shop or key.
keystring
A publishable key (prv_pub_…) for your own site. Its allowed origins are checked against the request's Origin.
storestring
A WooCommerce connection's ID (stc_), through the Provenance for WooCommerce plugin. Send one of shop, key or store.
eventenumRequired
A page view, or a cart or checkout form's submit (with visit_id and timing). One of page_view, form_submit.
pageenumRequired
The page type. cart and checkout page views are hosted checks. One of home, product, collection, search, cart, checkout, other.
view_idstringRequired
A random ID per page view, made in the browser and never kept across page views.
webdriverboolean
The page's navigator.webdriver.
visit_idstring
On a form submit: the visit ID the cart or checkout page view returned (tas_).
timingobject
One form fill, summarised in the browser by the storefront check's field timing: numbers, flags and field roles only. Never a field's name, label or value, a key or a raw event; any other property is refused. Scored on the server into the visit's automation score (0 to 100).
Show child attributes
formenumRequired
Which form was filled in. One of cart, checkout.
fill_msintegerRequired
First focus on a field to submit, in milliseconds.
fieldsarray of objectsRequired
Each field the form had, by role.
Show child attributes
roleenumRequired
The field's role. Card, password and one-time-code fields are never watched. One of email, name, phone, address, postal_code, note, discount_code, other.
msintegerRequired
Focus to blur, in milliseconds.
entryenumRequired
How the value arrived, from the input events (never the value). One of typed, pasted, autofilled, mixed, empty.
key_eventsintegerRequired
Key events in typed fields, counted from timestamps only.
key_gap_mean_msnumber | nullRequired
The mean gap between key events, in milliseconds.
key_gap_sd_msnumber | nullRequired
The spread (standard deviation) of those gaps.
pointer_movesintegerRequired
Pointer moves before submit (sampled every 50 ms).
clicksintegerRequired
Clicks before submit.
touchesintegerRequired
Touches before submit.
focus_changesintegerRequired
Focus moves between fields.
untrusted_eventsintegerRequired
Events the browser didn't generate (isTrusted false).

Returns

The event. Nothing about the visitor's score goes back to the browser.

Errors

curl -s -X POST "$PROVENANCE_API/v1/embed/publishable_keys" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{ "name": "storefront" }' > step.json
export PUBLISHABLE_KEY=$(jq -r '.publishable_key' step.json)
curl -X POST "$PROVENANCE_API/v1/identify/storefront_events" \
  -H "Content-Type: application/json" \
  -d "{
    \"key\": \"$PUBLISHABLE_KEY\",
    \"event\": \"page_view\",
    \"page\": \"checkout\",
    \"view_id\": \"Xq3bN8vR2mT6kW9yZc4dF7hJ\",
    \"webdriver\": false
  }"

Response 200

{
  "object": "storefront_event",
  "recorded": true,
  "reason": null,
  "visit_id": "tas_01M7X3R81SJMQ3KM0RXA0PV2K6",
  "field_timing": false
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.