X-API-Key header on every request:
401:
Keys
Your subscription comes with two keys, a primary and a secondary. Both work at the same time, which lets you rotate without downtime:1
Switch to the secondary key
Deploy the secondary key everywhere you use the primary.
2
Ask Sandmark to regenerate the primary
The old primary stops working as soon as it is regenerated.
3
Switch back
Move to the new primary, then repeat the process for the secondary if you need to.
What the key controls
Your key is tied to your subscription, and your subscription decides:- which endpoints you can call (the ones in this documentation)
- how far back you can read, set by your billing plan
- your rate limit