Available on Enterprise plans as an add-on.
Setting headers
Headers can be set from the source’s detail page in the Console or through the API. Over the API, pass aheaders object on POST /sources or PATCH /sources/{source_id}. values maps header names to values. tokenized names the values that are secret, the same way tokenized source fields work on credentials.
values and only their names appear in tokenized. Non-tokenized values are returned in the clear. headers is omitted when none are set.
Rotating and removing headers
OnPATCH, headers replaces the whole set, so rotate a token by sending the full object again. Send "headers": null to remove all headers, or omit the field to leave them unchanged. Deck can’t see when a token expires, so rotating it before then is up to you.
Limits
Any of the following returnsinvalid_field_value:
- More than 10 headers on a source, a name that is not a valid HTTP header name, or a value that is not a string.
- An entry in
tokenizedthat doesn’t name a key invalues. - A header the browser manages:
Host,Cookie,Content-Length,Connection,Transfer-Encoding,User-Agent,Origin, orReferer.
headers before the feature is enabled for your organization returns feature_not_available.