Service-account keys (recommended for agents)
A key is a string shapedsq_agt_<random>. Send it on every request:
- Scoped — carry only the scopes you grant.
- Tenant-bound — locked to a merchant (and optionally specific stores).
- Hashed at rest — only a SHA-256 hash is stored; the plaintext is shown once.
- Rotatable & revocable — rotate (
POST /keys/{id}/rotate) or revoke (DELETE /keys/{id}) anytime. - Rate-limited — per-key, with an optional per-key override.
If a key is bound to multiple stores, pass
X-Store-ID: <store_id> to choose one.