Create a custom headers set
Creates a reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as that webhook’s webhookCustomHeadersId, to send the headers with that webhook’s notifications, or to OAuth credentials as their webhookCustomHeadersId, to send them on the token request to your authorization server. Several webhooks and OAuth credentials may share one set, so changing it covers all of them at once. Header values are write-only and are never returned.
One set of rules applies to every use of a set, whether a webhook or OAuth credentials attach it: a value is a string or an array of strings (one header line per element), except Cookie and Authorization, which take a single string. Where Fireblocks sends its own Authorization header (an OAuth bearer token on a delivery, client_secret_basic on a token request), a custom Authorization header is not sent. Attaching a set checks only that it exists in your workspace.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Headers
Body
A new reusable set of custom HTTP headers. Attach it to a webhook by passing the returned id as that webhook's webhookCustomHeadersId, or to OAuth credentials as theirs. Several webhooks and OAuth credentials may share one set, so changing it covers all of them at once.
The headers, as a map of header name to value. At least one header is required. Values are write-only; responses return only the header names, lowercased.
A value is a string, sent as one header line, or an array of strings, sent as one header line per element under the same name. Cookie and Authorization accept only a string. An empty array is rejected — leave the name out instead. Arrays are accepted whether the set is sent with a webhook's notifications or on an OAuth token request, which sends one header line per element in the same way.
At most 10 headers, counted by name — an array value counts once, however many lines it sends. Names must be valid HTTP header tokens, are case-insensitive, and are at most 128 characters. A value may be empty and has no length limit of its own; the whole object must be under 16 KB when serialized as UTF-8. A value that large may still be refused by your own endpoint, since web servers commonly cap the whole request header block at around 8 KB.
Reserved names: Host, Content-Type, Content-Length, Transfer-Encoding, Connection, User-Agent, Accept, Accept-Encoding, Fireblocks-Signature and Fireblocks-Webhook-Signature are set by Fireblocks and can never be used. The same list applies whether the set is sent with a webhook's notifications or on an OAuth token request.
Authorization may be set. When Fireblocks sends its own Authorization header, a custom one is not sent: an OAuth bearer token on a webhook that has webhookOauthId set, and the client credentials on the token request of OAuth credentials that use client_secret_basic. With no OAuth credentials on a webhook, or with client_secret_post, client_secret_jwt or private_key_jwt on the token request, it is sent as configured.
Response
created the custom headers set successfully
A stored set of custom HTTP headers, referenced by webhooks and by OAuth credentials through their webhookCustomHeadersId. On a webhook the headers go out with every notification; on OAuth credentials they go out on the token request to your authorization server. Header values are write-only: only the names are returned.