Update enterprise security controls
Enterprise Governance, Security & Access
/security
Update enterprise security controls
updateEnterpriseSecurityUpdates partner-managed enterprise controls. A full API key is required. Once signed requests or mTLS are enabled, subsequent write requests must satisfy the configured controls.
Parameters
This endpoint has no path or query parameters.
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Idempotency-KeystringheaderRequiredUnique string that makes write calls safe to retry on network failure. Required for money movement, trading, KYC, subscriptions, and webhook creation. Deduplicated for 24 hours -- duplicate keys return the cached response. HTTP 409 if a concurrent request with the same key is still in progress.
Example: dep_user42_1743152580
Request body
ipAllowliststring[]Exact IP addresses or IPv4 CIDR ranges allowed to call this partner key. Empty means no IP restriction.
Example: ["203.0.113.10","198.51.100.0/24"]
requireSignedRequestsbooleanRequire HMAC-signed non-GET requests. Send X-MS-Timestamp (ISO-8601, within a 5-minute window) and X-MS-Signature = hex HMAC-SHA256(apiKey, "{timestamp}.{METHOD}.{path}{?query}.{sha256(body)}"). The signed path includes the query string (leading ?, empty when absent) so query-parameter tampering is detected. Signing without the query string is accepted for backward compatibility but deprecated.
Example: true
requireMtlsbooleanRequire upstream mTLS verification headers from the API gateway.
Example: false
scopedKeysRequiredbooleanWhen true, API keys must carry explicit scopes — a key with no scopes is denied (403) rather than granted broad access. A key that should retain full access under this policy must hold the scope. When false (default), unscoped keys keep broad access.
Example: true
keyRotationDaysinteger | nullRequired API key rotation interval in days.
Example: 90
oauthClientCredentialsEnabledbooleanIndicates OAuth client-credentials support is enabled for this partner.
Example: false
soc2EvidenceUrlstring | nullHTTPS link to SOC 2 evidence or trust-center artifact.
pentestEvidenceUrlstring | nullHTTPS link to penetration-test evidence.
lastRotationAtstring | nullResponse fields
messagestringpolicyobjectpolicy.ipAllowliststring[]Exact IP addresses or IPv4 CIDR ranges allowed to call this partner key. Empty means no IP restriction.
Example: ["203.0.113.10","198.51.100.0/24"]
policy.requireSignedRequestsbooleanRequire HMAC-signed non-GET requests. Send X-MS-Timestamp (ISO-8601, within a 5-minute window) and X-MS-Signature = hex HMAC-SHA256(apiKey, "{timestamp}.{METHOD}.{path}{?query}.{sha256(body)}"). The signed path includes the query string (leading ?, empty when absent) so query-parameter tampering is detected. Signing without the query string is accepted for backward compatibility but deprecated.
Example: true
policy.requireMtlsbooleanRequire upstream mTLS verification headers from the API gateway.
Example: false
policy.scopedKeysRequiredbooleanWhen true, API keys must carry explicit scopes — a key with no scopes is denied (403) rather than granted broad access. A key that should retain full access under this policy must hold the scope. When false (default), unscoped keys keep broad access.
Example: true
policy.keyRotationDaysinteger | nullRequired API key rotation interval in days.
Example: 90
policy.oauthClientCredentialsEnabledbooleanIndicates OAuth client-credentials support is enabled for this partner.
Example: false
policy.soc2EvidenceUrlstring | nullHTTPS link to SOC 2 evidence or trust-center artifact.
policy.pentestEvidenceUrlstring | nullHTTPS link to penetration-test evidence.
policy.lastRotationAtstring | nullResponse codes
200Updated enterprise security policy.