SDK reference · Node SDK

prov.identify.updateConfig

prov.identify.updateConfig in Node SDK.

Signature

prov.identify.updateConfig(params: IdentifyConfigParams): Promise<Record<string, unknown>>

Parameters

paramsIdentifyConfigParamsRequired

Request fields

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.body is 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-SIGNATURE only.

Returns

Promise<Record<string, unknown>> The settings.

HTTP operation

PUT /v1/identify/settings/site: Update the Identify settings

Errors

Example

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.