Which secret goes where
The two logs tokens are not interchangeable. A logs token only sends delivery records; if one is
exposed, ask doubleshift to replace it.
Create a key
In the console, open Settings → API keys, give the key a name, then Create key. Only an owner of the account can create or revoke keys. The full key is shown once: copy it immediately. Afterwards the console lists only its prefix, never the secret. Keys are account-scoped: no per-site or per-fragment scope, and no expiry. A key stays valid until you revoke it.Use it on every request
Send the key in theX-API-Key header of each fragment call. It keeps the key out of URLs, access
logs and downstream caches. On GET /v1/fragment the header is the only place read: a key in the
query string is ignored, so without the header the call answers 401 once it reaches authentication.
A call refused earlier, such as one missing a parameter, answers before the key is read. On ESI, your
CDN adds the header to the include subrequest (ESI), never the tag’s src.
doubleshift checks the key on every call and finds your account from it:
- No key in the header, or an unknown or revoked key:
401. - A valid key whose account is not the
partner_idof the call:403.

