Skip to main content
POST
TypeScript

Headers

Idempotency-Key
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Body

application/json

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.

name
string
required

A label for this set, shown when listing them.

Required string length: 1 - 128
Example:

"Production gateway key"

headers
object
required

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.

Example:

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.

id
string<uuid>
required

The id of the custom headers set. Pass this as a webhook's, or OAuth credentials', webhookCustomHeadersId to attach it.

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

The label given to this set.

Example:

"Production gateway key"

headerNames
string[]
required

Names of the headers in the set, lowercased. Header values are never returned.

Example:
createdAt
integer<int64>
required

The date and time the set was created, in milliseconds.

Example:

1625097600000

updatedAt
integer<int64>
required

The date and time the set was last updated, in milliseconds.

Example:

1625097600000