Update OAuth credentials
EA Early Availability: this endpoint may change before GA.
Updates only the fields present in the request; anything omitted is left as it is. Sending clientSecret on its own rotates the secret for every webhook using these credentials.
customJwtClaims, customBodyParams and customHeaders are all merged key by key rather than replaced, the same way a webhook’s own customHeaders behaves: a key sent with a value is added or overwritten, a key sent with a null value is deleted, and a key you omit is left alone. Setting one of the three to null as a whole clears that map, which is the quick way to empty it without naming every key. There is no ambiguity between the two uses of null — one names an entry to delete, the other names the field. A claim cannot be set to JSON null, though, on this endpoint or on create, because null is spent on deletion. webhookMtlsId is a scalar rather than a map, so null there does remove it.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Path Parameters
Body
A partial update. Every field is optional and an omitted field is left as it is, so { "clientSecret": "new-secret" } rotates the secret and changes nothing else. A rotation applies to every webhook referencing these credentials.
The result is checked against the resulting authMethod, not just the fields sent: the secret methods must end up with a clientSecret, and a signingAlg value is only valid when the resulting method is private_key_jwt.
The two custom maps merge. A key with a value is upserted, a key with null is deleted, a key you leave out is untouched, and the whole field set to null clears the map. There is no ambiguity between the two uses of null — one names an entry, the other names the field. webhookMtlsId and webhookCustomHeadersId are scalars, so null there removes them.
A new OAuth client secret. Limited to 480 bytes when UTF-8 encoded, so a secret using non-ASCII characters fits fewer than 480 of them. Write-only — never returned in any response. Send this on its own to rotate the secret without changing anything else. Omit to leave it unchanged. Must not be sent with a value when the resulting authMethod is private_key_jwt (400 otherwise). A secret already stored from before a switch to private_key_jwt is kept, unused, so switching back needs no new one; send null to clear it. A secret method must still end up with a secret, so null is refused unless the resulting method is private_key_jwt.
1 - 480"my-new-client-secret"
client_secret_basic, client_secret_post, client_secret_jwt or private_key_jwt. Omit to leave it unchanged — it does not revert to the default.
Switching to private_key_jwt brings back the key pairs these credentials held before, if they are still kept, and otherwise generates a signing key and its successor. Either way the first assertion names a kid your authorization server may not hold yet, so it fetches the JWKS again. Switching away from private_key_jwt empties signingAlg, and keeps the key pairs published for 30 days before deleting them, so switching back within that time restores them; it needs a clientSecret, either sent here or still stored.
"client_secret_jwt"
A new algorithm for the key pairs of private_key_jwt credentials. Omit to leave it unchanged. A value is only valid when the resulting authMethod is private_key_jwt (400 otherwise); a switch to private_key_jwt that omits it uses RS256, or the algorithm of the key pairs it brings back. null means no algorithm, and is accepted only when the resulting method is client_secret_basic, client_secret_post or client_secret_jwt; with private_key_jwt it is a 400.
A change generates a new signing key and successor in the new algorithm, and signing switches to them at once. The previous keys stay published for 5 minutes and are kept for 30 days: changing back within that time restores them, with their original expiry, instead of generating new ones, and revoke_key can delete them by kid until then.
RS256, PS256, ES256 "ES256"
A delta applied to the JWT assertion claims. A claim with a value is added or replaced, a claim with null is deleted, and a claim you leave out is untouched. So { "aud": "https://auth.example.com", "resource": null } sets aud, drops resource, and changes nothing else.
Send customJwtClaims: null to clear every claim in one call. That does not collide with a null value on a name: one names the claim to delete, the other names the whole field.
Same rules as on create: any JSON type except null, iss/sub/jti/iat/exp reserved, names case-sensitive, resulting set under 16 KB, values write-only.
A delta applied to the token request body parameters. A parameter with a value is added or replaced, a parameter with null is deleted, and one you leave out is untouched. So { "scope": "payments.read", "audience": null } sets scope, drops audience, and changes nothing else.
Send customBodyParams: null to clear every parameter in one call. That does not collide with a null value on a name: one names the parameter to delete, the other names the whole field.
Same rules as on create: string values only, grant_type/client_id/client_secret/ client_assertion/client_assertion_type reserved, names case-sensitive, resulting set under 16 KB, values write-only.
The id of the set of custom HTTP headers added to the token request, from /v1/webhooks_settings/custom_headers. Omit to leave it unchanged, or send null to stop sending extra headers. The same rules apply as for a webhook delivery, including the reserved header names. Under client_secret_basic Fireblocks sends its own Authorization header with the credentials, and a custom Authorization header is not sent. Replaces the inline customHeaders field, which is now refused with a 400: use webhookCustomHeadersId. An unknown id, or one belonging to another workspace, is a 404.
"6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"
The id of the mTLS configuration presented to the token endpoint, from /v1/webhooks_settings/mtls. Omit to leave it unchanged, or send null to stop using mTLS for the token request. Requires a configuration of this workspace (404 otherwise) that is linked to a private key (400 otherwise).
"6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"
Response
Updated OAuth credentials object
A stored OAuth 2.0 client credential set, referenced by webhooks through their webhookOauthId. Deliveries for a webhook that references one carry Authorization: Bearer {token}, using a token fetched from url and cached until it expires, so your authorization server sees far fewer token requests than deliveries. Secret material is never returned: clientSecret is absent from this schema entirely, and the customJwtClaims and customBodyParams fields are reduced to their names, without the configured values. Extra token request headers are a separate resource, referenced by webhookCustomHeadersId. The key pairs of private_key_jwt credentials are never returned here either; their public halves are published at the URL in jwksUri.
How the client credentials are presented to the token endpoint: client_secret_basic, client_secret_post, client_secret_jwt or private_key_jwt. Credentials created without this field report client_secret_basic, which is what they use.
"client_secret_basic"
Algorithm of the key pairs, and of the assertions signed with them. Present only when authMethod is private_key_jwt. Which key is signing is never returned; each assertion names it in its kid header. Defaults to RS256 on create only.
RS256, PS256, ES256 "RS256"
The id of the set of custom headers added to the token request sent to the authorization server — not to the webhook delivery. Absent when the token request adds none. Header values are write-only and are never returned; read the header names from /v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}.
"6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"