Identify · API reference
Identify settings
The route map, origins, fail mode, retention, starter traffic policies and the response templates rules serve.
Related guide: Write a traffic policy
The identify config object
Attributes
objectenum- The type of object. One of
identify_config. route_maparray of objects- The route map.
Show child attributes
methodstring- The HTTP method, or any.
pathstringRequired- An anchored glob over the path.
actionstringRequired- The action name your policy reads.
originsarray of strings- Your origins.
display_namestring | null- The display name.
fail_modeenum- The fail mode. One of
open,closed. decisions_ttl_daysinteger- Decision retention.
pseudonymsenum- Pseudonyms in verdicts. One of
on,off. protocolsobject- The hosted check's payment-protocol settings. The AP2 verifier's secret is never returned.
Show child attributes
routesarray of strings- Path globs whose
request.bodyis read. ap2object- Your own AP2 verifier.
Show child attributes
headerstring | null- The header that carries the SD-JWT.
verify_urlstring | null- Your AP2 verifier (HTTPS).
secret_last4string | null- The last four characters of its secret.
verifier_configuredboolean- Both the URL and the secret are set.
x402object- x402 settings.
Show child attributes
legacyboolean- Always false: Identify reads x402 payments from
PAYMENT-SIGNATUREonly.
vendorsobject- The vendor keys you stored, by vendor: region and the key's last four characters, never the key.
storefrontobject- The storefront check on your own site (the script under a publishable key).
Show child attributes
field_timingboolean- Field timing on your cart and checkout pages. Default
false; runs only for visitors who allow analytics.
keep_full_ipboolean- Keep whole request addresses on decisions (Pro). Default
false: only the /24 (IPv4) or /48 (IPv6) prefix is kept, after the network is classified on the whole address. is_defaultboolean- No settings saved yet.
updated_atstring | null- When they last changed.
The identify config object
{
"object": "identify_config",
"route_map": [
{
"path": "/checkout*",
"action": "checkout"
},
{
"path": "/login*",
"action": "login"
},
{
"path": "/account*",
"action": "account_change"
},
"… 3 more"
],
"origins": [],
"display_name": null,
"fail_mode": "closed",
"decisions_ttl_days": 30,
"pseudonyms": "on",
"protocols": {
"routes": [],
"ap2": {
"header": null,
"verify_url": null,
"secret_last4": null,
"verifier_configured": false
},
"x402": {
"legacy": false
}
},
"vendors": {},
"storefront": {
"field_timing": false
},
"keep_full_ip": false,
"is_default": true,
"updated_at": null
}Create a response template
POST/v1/identify/response_templates
Stores a page your traffic rules can serve. A rejection page (purpose: block) is what a rule with respond: { kind: page } sends. Alternate content (purpose: alternate) is refused if it holds a price, a discount, a delivery or return promise or a form that posts, and needs your confirmation that it has no prices, offers or terms.
Parameters
namestringRequired- The template's name.
purposeenumRequiredblock(at most 32 KB) oralternate(at most 64 KB). One ofblock,alternate.content_typestringRequiredtext/html,application/jsonortext/plain; text types are served withcharset=utf-8.bodystringRequired- The exact bytes to serve.
confirm_no_offersboolean- Alternate content only: you confirm it has no prices, offers or terms. Required.
Returns
The template.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><title>Not available</title><p>This page isn'\''t available.</p>"
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><title>Not available</title><p>This page isn't available.</p>"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><title>Not available</title><p>This page isn't available.</p>"
}).json()Response 201
{
"id": "irt_01M8CE5T56K72ZX8EG1PSTY707",
"object": "identify_response_template",
"name": "Not available",
"purpose": "block",
"content_type": "text/html; charset=utf-8",
"body": "<!doctype html><title>Not available</title><p>This page isn't available.</p>",
"confirmation": null,
"created_at": "2026-11-26T17:24:13.606Z",
"updated_at": "2026-11-26T17:24:13.606Z"
}Create an alternate
POST/v1/identify/alternates
Names cached or alternate content a traffic rule can serve to suspected scrapers: one of your alternate templates (static, template) or your own cached copy of the page (snapshot, read by the middleware's hook or your edge cache). Provenance never fetches or stores your pages.
Parameters
namestringRequired- The alternate's name.
sourceenumRequired- Where the content comes from. One of
snapshot,static,template. template_idstringstaticandtemplate: an alternate template (irt_…).snapshotobjectsnapshotonly.Show child attributes
cache_key_prefixstring | null- Your edge cache's key prefix.
max_age_secondsinteger- The oldest snapshot served (default 86400).
content_typesarray of enums- The content types it answers (default: the template's, or
text/htmlfor a snapshot).
Returns
The alternate.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Catalogue page",
"purpose": "alternate",
"content_type": "text/html",
"body": "<!doctype html><title>Catalogue</title><p>Browse the catalogue.</p>",
"confirm_no_offers": true
}' > step.json
export TEMPLATE_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"name\": \"Catalogue\",
\"source\": \"static\",
\"template_id\": \"$TEMPLATE_ID\"
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Catalogue page",
"purpose": "alternate",
"content_type": "text/html",
"body": "<!doctype html><title>Catalogue</title><p>Browse the catalogue.</p>",
"confirm_no_offers": true
}),
})).json();
const templateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Catalogue",
"source": "static",
"template_id": templateId
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Catalogue page",
"purpose": "alternate",
"content_type": "text/html",
"body": "<!doctype html><title>Catalogue</title><p>Browse the catalogue.</p>",
"confirm_no_offers": True
}).json()
template_id = step1["id"]
data = httpx.post(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Catalogue",
"source": "static",
"template_id": template_id
}).json()Response 201
{
"id": "ialt_01M8CQ310BK10XM537RYB8M5VB",
"object": "identify_alternate",
"name": "Catalogue",
"source": "static",
"template_id": "irt_01M8CQ31091MVQ5PHHAPBNCVW8",
"snapshot": null,
"max_age_seconds": 86400,
"content_types": [
"text/html"
],
"served_count": 0,
"guarded_count": 0,
"fallbacks": {},
"created_at": "2026-11-26T19:59:59.499Z",
"updated_at": "2026-11-26T19:59:59.499Z"
}Retrieve the Identify settings
GET/v1/identify/settings/site
Returns your route map, origins, display name, fail mode, retention and pseudonym setting, or the defaults with is_default true.
Parameters
No parameters.
Returns
The settings. See the identify config object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/settings/site" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/settings/site`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/settings/site", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "identify_config",
"route_map": [
{
"path": "/checkout*",
"action": "checkout"
},
{
"path": "/login*",
"action": "login"
},
{
"path": "/account*",
"action": "account_change"
},
"… 3 more"
],
"origins": [],
"display_name": null,
"fail_mode": "closed",
"decisions_ttl_days": 30,
"pseudonyms": "on",
"protocols": {
"routes": [],
"ap2": {
"header": null,
"verify_url": null,
"secret_last4": null,
"verifier_configured": false
},
"x402": {
"legacy": false
}
},
"vendors": {},
"storefront": {
"field_timing": false
},
"keep_full_ip": false,
"is_default": true,
"updated_at": null
}Retrieve the scraping settings
GET/v1/identify/settings/scraping
Returns your scraping detection thresholds, per-session counting and calibration sharing, or the defaults with is_default true.
Parameters
No parameters.
Returns
The settings.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/settings/scraping" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/settings/scraping`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/settings/scraping", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "identify_scraping_settings",
"version": 1,
"thresholds": {
"min_distinct_paths": 60,
"min_read_share": 0.95,
"max_asset_ratio": 0.1,
"max_interval_cv": 0.15
},
"session_counting": false,
"calibration_sharing": false,
"is_default": true,
"updated_at": null
}Retrieve a response template
GET/v1/identify/response_templates/{id}
Returns one response template.
Parameters
No parameters.
Returns
The template.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn'\''t available.</p>"
}' > step.json
export TEMPLATE_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/response_templates/$TEMPLATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}),
})).json();
const templateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates/${templateId}`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}).json()
template_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/response_templates/{template_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "irt_01M8CE60TS6TWS51092E77R4D0",
"object": "identify_response_template",
"name": "Not available",
"purpose": "block",
"content_type": "text/html; charset=utf-8",
"body": "<!doctype html><p>This page isn't available.</p>",
"confirmation": null,
"created_at": "2026-11-26T17:24:20.441Z",
"updated_at": "2026-11-26T17:24:20.441Z"
}Retrieve the scraping preview
GET/v1/identify/scraping_preview
For 30 days after the release that added scraping_suspected, how many of your last 7 days' recorded visits the signal moved into suspected_bot (unsigned visits at 50 or more that would be under 50 without it).
Parameters
No parameters.
Returns
The preview.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/scraping_preview" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/scraping_preview`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/scraping_preview", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "identify_scraping_preview",
"released_at": "2026-11-26T00:00:00.000Z",
"shown_until": "2026-12-26T00:00:00.000Z",
"active": true,
"from": "2026-11-26T00:00:00.000Z",
"to": "2026-11-26T21:31:39.165Z",
"visits": 7,
"moved_into_suspected_bot": 0,
"truncated": false
}Retrieve an alternate
GET/v1/identify/alternates/{id}
Returns one alternate with its served count, guard replacements and fallbacks by reason.
Parameters
No parameters.
Returns
The alternate.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}' > step.json
export ALTERNATE_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/alternates/$ALTERNATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}),
})).json();
const alternateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates/${alternateId}`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}).json()
alternate_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/alternates/{alternate_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "ialt_01M8CQ310C3XJNQ3Q4C438ACK8",
"object": "identify_alternate",
"name": "Edge cache",
"source": "snapshot",
"template_id": null,
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 86400,
"content_types": [
"text/html"
],
"served_count": 0,
"guarded_count": 0,
"fallbacks": {},
"created_at": "2026-11-26T19:59:59.500Z",
"updated_at": "2026-11-26T19:59:59.500Z"
}Update the Identify settings
PUT/v1/identify/settings/site
Updates the fields you send. The route map turns paths into the actions your traffic policy reads (checkout, login, account_change, …); origins are the audiences your site accepts.
Parameters
route_maparray of objects- First match wins.
Show child attributes
methodstring- The HTTP method, or any.
pathstringRequired- An anchored glob over the path.
actionstringRequired- The action name your policy reads.
originsarray of strings- Your site's origins (at most 20).
display_namestring | null- The name shown in approval requests and as your agents' operator.
fail_modeenum- What the middleware does before it has ever loaded a bundle. One of
open,closed. decisions_ttl_daysinteger- How long decisions are kept.
pseudonymsenum- Whether verdicts carry a per-person pseudonym. One of
on,off. keep_full_ipboolean- Keep whole request addresses on decisions (Pro; turning it off is always allowed). Off, only the /24 or /48 prefix is kept.
storefrontobject- The storefront check on your own site.
Show child attributes
field_timingboolean- Field timing on your cart and checkout pages (off by default; runs only for visitors who allow analytics).
protocolsobject- The hosted check's payment-protocol settings (AP2, ACP, x402).
Show child attributes
routesarray of strings- Path globs whose
request.bodyis read. ap2object- Your own AP2 verifier. Identify posts the SD-JWT to it, signed with the secret in
Provenance-Signature, and it answers{content}with the closed mandate.Show child attributes
headerstring | null- The header that carries the SD-JWT.
verify_urlstring | null- Your verifier, https only.
secretstring | null- The signing secret (encrypted at rest; null removes it).
x402object- x402 settings.
Show child attributes
legacyboolean- Accepted and ignored: Identify reads x402 payments from
PAYMENT-SIGNATUREonly.
Returns
The settings. See the identify config object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/identify/settings/site" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"origins": [
"https://harborbean.example"
],
"display_name": "Harbor Bean Coffee",
"storefront": {
"field_timing": true
}
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/settings/site`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"origins": [
"https://harborbean.example"
],
"display_name": "Harbor Bean Coffee",
"storefront": {
"field_timing": true
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/identify/settings/site", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"origins": [
"https://harborbean.example"
],
"display_name": "Harbor Bean Coffee",
"storefront": {
"field_timing": True
}
}).json()Response 200
{
"object": "identify_config",
"route_map": [
{
"path": "/checkout*",
"action": "checkout"
},
{
"path": "/login*",
"action": "login"
},
{
"path": "/account*",
"action": "account_change"
},
"… 3 more"
],
"origins": [
"https://harborbean.example"
],
"display_name": "Harbor Bean Coffee",
"fail_mode": "closed",
"decisions_ttl_days": 30,
"pseudonyms": "on",
"protocols": {
"routes": [],
"ap2": {
"header": null,
"verify_url": null,
"secret_last4": null,
"verifier_configured": false
},
"x402": {
"legacy": false
}
},
"vendors": {},
"storefront": {
"field_timing": true
},
"keep_full_ip": false,
"is_default": false,
"updated_at": "2026-11-28T21:23:53.516Z"
}Update the scraping settings
PUT/v1/identify/settings/scraping
Updates the fields you send. A threshold change raises version, which each decision records and the policy bundle carries. Per-session counting must be on before a rule uses per: session. Turning calibration sharing off starts the 90 days after which your labels are removed; turning it back on keeps them.
Parameters
thresholdsobject- The thresholds to change; the others stay.
Show child attributes
min_distinct_pathsinteger- Distinct pages in five minutes, at least.
min_read_sharenumber- Share of reads, at least.
max_asset_rationumber- Assets per page under this.
max_interval_cvnumber- Gap variation under this.
calibration_sharingboolean- Label your own decisions for the calibration.
session_countingboolean- Per-session counting: the middleware sets the first-party
pv_cidcookie (a random id, 30 idle minutes, 24 hours at most) so aper: sessionrule counts a visitor across addresses. Turning it off stops the cookie and expires the session records.
Returns
The settings.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/identify/settings/scraping" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "thresholds": { "min_distinct_paths": 80 } }'const data = 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({ "thresholds": { "min_distinct_paths": 80 } }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/identify/settings/scraping", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"thresholds": {
"min_distinct_paths": 80
}
}).json()Response 200
{
"object": "identify_scraping_settings",
"version": 2,
"thresholds": {
"min_distinct_paths": 80,
"min_read_share": 0.95,
"max_asset_ratio": 0.1,
"max_interval_cv": 0.15
},
"session_counting": false,
"calibration_sharing": false,
"is_default": false,
"updated_at": "2026-11-26T18:19:28.974Z"
}Update a response template
PATCH/v1/identify/response_templates/{id}
Updates the fields you send. Changed alternate content is checked again and needs your confirmation again. The policy bundle carries the new bytes from its next refresh.
Parameters
namestring- The template's name.
content_typestringtext/html,application/jsonortext/plain.bodystring- The exact bytes to serve.
confirm_no_offersboolean- Alternate content only: required when the content changes.
Returns
The template.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Catalogue",
"purpose": "alternate",
"content_type": "application/json",
"body": "{\"items\":[],\"page\":1}",
"confirm_no_offers": true
}' > step.json
export TEMPLATE_ID=$(jq -r '.id' step.json)
curl -X PATCH "$PROVENANCE_API/v1/identify/response_templates/$TEMPLATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Empty catalogue",
"body": "{\"items\":[]}",
"confirm_no_offers": true
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Catalogue",
"purpose": "alternate",
"content_type": "application/json",
"body": "{\"items\":[],\"page\":1}",
"confirm_no_offers": true
}),
})).json();
const templateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates/${templateId}`, {
method: "PATCH",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Empty catalogue",
"body": "{\"items\":[]}",
"confirm_no_offers": true
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Catalogue",
"purpose": "alternate",
"content_type": "application/json",
"body": "{\"items\":[],\"page\":1}",
"confirm_no_offers": True
}).json()
template_id = step1["id"]
data = httpx.patch(f"{api}/v1/identify/response_templates/{template_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Empty catalogue",
"body": "{\"items\":[]}",
"confirm_no_offers": True
}).json()Response 200
{
"id": "irt_01M8CE646NWS1BENXSBFC6YM8A",
"object": "identify_response_template",
"name": "Empty catalogue",
"purpose": "alternate",
"content_type": "application/json",
"body": "{\"items\":[]}",
"confirmation": {
"confirmed_by": "key_01M8CE63KX80WYKJRBGFQP1RPZ",
"confirmed_at": "2026-11-26T17:24:23.903Z"
},
"created_at": "2026-11-26T17:24:23.893Z",
"updated_at": "2026-11-26T17:24:23.903Z"
}Update an alternate
PATCH/v1/identify/alternates/{id}
Updates the fields you send. The source can't change. The policy bundle carries the change from its next refresh.
Parameters
namestring- The alternate's name.
template_idstringstaticandtemplate: another alternate template.snapshotobjectsnapshotonly.Show child attributes
cache_key_prefixstring | null- Your edge cache's key prefix.
max_age_secondsinteger- The oldest snapshot served.
content_typesarray of enums- The content types it answers.
Returns
The alternate.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}' > step.json
export ALTERNATE_ID=$(jq -r '.id' step.json)
curl -X PATCH "$PROVENANCE_API/v1/identify/alternates/$ALTERNATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "max_age_seconds": 7200 }'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}),
})).json();
const alternateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates/${alternateId}`, {
method: "PATCH",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "max_age_seconds": 7200 }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
}
}).json()
alternate_id = step1["id"]
data = httpx.patch(f"{api}/v1/identify/alternates/{alternate_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"max_age_seconds": 7200
}).json()Response 200
{
"id": "ialt_01M8CQ310DD5CKTQ2GV0S67SZD",
"object": "identify_alternate",
"name": "Edge cache",
"source": "snapshot",
"template_id": null,
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 7200,
"content_types": [
"text/html"
],
"served_count": 0,
"guarded_count": 0,
"fallbacks": {},
"created_at": "2026-11-26T19:59:59.501Z",
"updated_at": "2026-11-26T19:59:59.502Z"
}List the published ranges' sources
GET/v1/identify/list_sources
Every crawler and cloud range source the rules read, when it was fetched, how many entries it has, and the ones marked absent.
Parameters
No parameters.
Returns
The sources.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/list_sources" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/list_sources`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/list_sources", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "identify_list_sources",
"refreshed_at": "2026-11-28T23:41:09.130Z",
"sources": [
{
"id": "googlebot",
"kind": "crawler",
"source": "https://developers.google.com/static/search/apis/ipranges/googlebot.json",
"status": "ok",
"fetched_at": "2026-11-28T23:41:09.130Z",
"count": 317
},
{
"id": "bingbot",
"kind": "crawler",
"source": "https://www.bing.com/toolbox/bingbot.json",
"status": "ok",
"fetched_at": "2026-11-28T23:41:09.130Z",
"count": 29
},
{
"id": "applebot",
"kind": "crawler",
"source": "https://search.developer.apple.com/applebot.json",
"status": "ok",
"fetched_at": "2026-11-28T23:41:09.130Z",
"count": 24
},
"… 15 more"
]
}List response templates
GET/v1/identify/response_templates
Lists your rejection pages and alternate content, oldest first.
Parameters
No parameters.
Returns
The account's response templates.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn'\''t available.</p>"
}' > /dev/null
curl "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}).json()
data = httpx.get(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "irt_01M8CE5XH79WHPV9BCXVM1EC81",
"object": "identify_response_template",
"name": "Not available",
"purpose": "block",
"content_type": "text/html; charset=utf-8",
"body": "<!doctype html><p>This page isn't available.</p>",
"confirmation": null,
"created_at": "2026-11-26T17:24:17.063Z",
"updated_at": "2026-11-26T17:24:17.063Z"
}
],
"has_more": false,
"next_cursor": null
}List alternates
GET/v1/identify/alternates
Lists your alternate content sources, oldest first, each with its served count, guard replacements and fallbacks.
Parameters
No parameters.
Returns
The account's alternates.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 3600
}' > /dev/null
curl "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 3600
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Edge cache",
"source": "snapshot",
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 3600
}).json()
data = httpx.get(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "ialt_01M8CQ310BHNC71R8JNV913TE8",
"object": "identify_alternate",
"name": "Edge cache",
"source": "snapshot",
"template_id": null,
"snapshot": {
"cache_key_prefix": "https://cache.harborbean.example/"
},
"max_age_seconds": 3600,
"content_types": [
"text/html"
],
"served_count": 0,
"guarded_count": 0,
"fallbacks": {},
"created_at": "2026-11-26T19:59:59.499Z",
"updated_at": "2026-11-26T19:59:59.499Z"
},
{
"id": "ialt_01M8CQ310BK10XM537RYB8M5VB",
"object": "identify_alternate",
"name": "Catalogue",
"source": "static",
"template_id": "irt_01M8CQ31091MVQ5PHHAPBNCVW8",
"snapshot": null,
"max_age_seconds": 86400,
"content_types": [
"text/html"
],
"served_count": 0,
"guarded_count": 0,
"fallbacks": {},
"created_at": "2026-11-26T19:59:59.499Z",
"updated_at": "2026-11-26T19:59:59.499Z"
}
],
"has_more": false,
"next_cursor": null
}List traffic policy templates
GET/v1/identify/policy_templates
The four starter traffic policies. Save one with PUT /v1/identify/policies.
Parameters
No parameters.
Returns
The templates.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/identify/policy_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/policy_templates`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/identify/policy_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "welcome_shopping_agents",
"object": "traffic_policy_template",
"name": "Welcome verified shopping agents with a human approval at checkout",
"description": "Signed shopping agents browse freely; at checkout they need the shopper's approval of the exact order.",
"document": {
"rules": [
{
"id": "shopping-agent-checkout",
"when": [
{
"fact": "agent.class",
"op": "eq",
"value": "signed_agent"
},
{
"fact": "agent_category",
"op": "eq",
"value": "shopping_agent"
},
{
"fact": "action",
"op": "eq",
"value": "checkout"
}
],
"then": {
"action": "require_intent",
"binding": "order"
}
},
{
"id": "shopping-agent-browse",
"when": [
{
"fact": "agent.class",
"op": "eq",
"value": "signed_agent"
},
{
"fact": "agent_category",
"op": "eq",
"value": "shopping_agent"
}
],
"then": {
"action": "allow"
}
}
],
"default": "allow"
}
},
{
"id": "block_ai_training",
"object": "traffic_policy_template",
"name": "Block AI training crawlers",
"description": "Signed or declared AI training crawlers are blocked; search crawlers and assistants are not.",
"document": {
"rules": [
{
"id": "block-training-signed",
"when": [
{
"fact": "agent_category",
"op": "eq",
"value": "ai_training_crawler"
}
],
"then": {
"action": "block",
"reason": "ai_training_not_allowed"
}
},
{
"id": "block-training-declared",
"when": [
{
"fact": "signals",
"op": "contains",
"value": "known_ai_crawler"
}
],
"then": {
"action": "block",
"reason": "ai_training_not_allowed"
}
}
],
"default": "allow"
}
},
{
"id": "rate_limit_unknown_bots",
"object": "traffic_policy_template",
"name": "Rate-limit unknown bots",
"description": "Suspected bots get 30 requests a minute per address; signed agents and likely humans are unaffected.",
"document": {
"rules": [
{
"id": "rate-limit-suspected",
"when": [
{
"fact": "agent.class",
"op": "eq",
"value": "suspected_bot"
}
],
"then": {
"action": "rate_limit",
"per": "ip",
"window_seconds": 60,
"max": 30
}
}
],
"default": "allow"
}
},
"… 3 more"
],
"has_more": false,
"next_cursor": null
}Delete a response template
DELETE/v1/identify/response_templates/{id}
Deletes a template no traffic rule names. While your active or shadow policy names it, the delete is refused.
Parameters
No parameters.
Returns
The deleted template.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/response_templates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn'\''t available.</p>"
}' > step.json
export TEMPLATE_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/identify/response_templates/$TEMPLATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}),
})).json();
const templateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/response_templates/${templateId}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/response_templates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Not available",
"purpose": "block",
"content_type": "text/html",
"body": "<!doctype html><p>This page isn't available.</p>"
}).json()
template_id = step1["id"]
data = httpx.delete(f"{api}/v1/identify/response_templates/{template_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "irt_01M8CE67NVVVW7R5R5YKVWWMZT",
"object": "identify_response_template",
"deleted": true
}Delete an alternate
DELETE/v1/identify/alternates/{id}
Deletes an alternate. Refused while a rule in your active or shadow traffic policy serves it.
Parameters
No parameters.
Returns
The deleted alternate.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/identify/alternates" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Edge cache", "source": "snapshot" }' > step.json
export ALTERNATE_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/identify/alternates/$ALTERNATE_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Edge cache", "source": "snapshot" }),
})).json();
const alternateId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/alternates/${alternateId}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/alternates", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Edge cache",
"source": "snapshot"
}).json()
alternate_id = step1["id"]
data = httpx.delete(f"{api}/v1/identify/alternates/{alternate_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "ialt_01M8CQ310ECWQCDWW2ZDGJ332Y",
"object": "identify_alternate",
"deleted": true
}Remove a vendor key
DELETE/v1/identify/vendors/{vendor}
Removes the stored key. Verdicts then report vendor_score.status as not_configured.
Parameters
vendorenumpathRequired- The vendor. One of
fingerprint.
Returns
The removed key.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X PATCH "$PROVENANCE_API/v1/identify/vendors/fingerprint" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "api_key": "fp_live_secret_example_0001", "region": "us" }' > /dev/null
curl -X DELETE "$PROVENANCE_API/v1/identify/vendors/fingerprint" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/vendors/fingerprint`, {
method: "PATCH",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "api_key": "fp_live_secret_example_0001", "region": "us" }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/vendors/fingerprint`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.patch(f"{api}/v1/identify/vendors/fingerprint", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"api_key": "fp_live_secret_example_0001",
"region": "us"
}).json()
data = httpx.delete(f"{api}/v1/identify/vendors/fingerprint", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "fingerprint",
"object": "identify_vendor",
"deleted": true
}Store a vendor key
PATCH/v1/identify/vendors/{vendor}
Stores your own bot-score vendor key for the hosted check, encrypted at rest. fingerprint only; Cloudflare's score is read at the edge.
Parameters
vendorenumpathRequired- The vendor. One of
fingerprint. api_keystringRequired- Your secret Server API key. Never returned.
regionenum- Your workspace region (default us). One of
us,eu,ap.
Returns
The vendor's settings.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PATCH "$PROVENANCE_API/v1/identify/vendors/fingerprint" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "api_key": "fp_live_secret_example_0001", "region": "us" }'
curl -s -X DELETE "$PROVENANCE_API/v1/identify/vendors/fingerprint" \
-H "Authorization: Bearer $PROVENANCE_KEY" > /dev/nullconst data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/vendors/fingerprint`, {
method: "PATCH",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "api_key": "fp_live_secret_example_0001", "region": "us" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.patch(f"{api}/v1/identify/vendors/fingerprint", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"api_key": "fp_live_secret_example_0001",
"region": "us"
}).json()Response 200
{
"id": "fingerprint",
"object": "identify_vendor",
"configured": true,
"region": "us",
"key_last4": "0001",
"updated_at": "2026-11-07T19:22:53.546Z"
}Test a vendor key
POST/v1/identify/vendors/{vendor}/test
Scores one Fingerprint requestId with your stored key, so you can check the key and region.
Parameters
vendorenumpathRequired- The vendor. One of
fingerprint. request_idstringRequired- A Fingerprint requestId from your pages.
Returns
The vendor score.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/identify/vendors/fingerprint/test" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "request_id": "1708102555327.NLOjmg" }'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/vendors/fingerprint/test`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "request_id": "1708102555327.NLOjmg" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/identify/vendors/fingerprint/test", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request_id": "1708102555327.NLOjmg"
}).json()Response 200
{
"object": "vendor_score",
"vendor": "fingerprint",
"status": "ok",
"score": 0,
"label": "not_detected",
"raw": 0
}