latestOpenAPI 3.0.32026-08-20146131.7 MB
672b1916ba61
API Keys
Replace or clear API-key policy bindings
Explicitly replaces the complete all-wallet/selected-wallet policy binding set, or clears it. Existing bindings are otherwise preserved by API-key updates and rotation.
put/v1/api-keys/{keyId}/policy-bindings
Path parameters
keyIdstring required
API key identifier.
Example:key_example
API key identifier.
Headers
x-project-idstring
Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.
Example:prj_example
Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.
Request body
Response
API-key policy bindings updated
Example response
{
"data": {
"policyBindings": [
{
"id": "akwpol_123",
"bindingScope": "selected",
"walletId": "privy_wallet_123",
"custodyWalletId": "cwlt_123",
"walletControlProfileId": "wcp_123",
"walletControlProfileRevisionId": "wcpr_123",
"apiKeyControlProfileId": "akcp_123",
"apiKeyControlProfileRevisionId": "akcpr_123",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-02T00:00:00.000Z"
}
]
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}