SiteSwapDevelopers
API reference: Keys

List keys

GEThttps://dev.siteswap.pro/api/v1/keys

Your company's keys: waiting, active, declined and revoked, with their limits and use. With a key, or signed in on siteswap.pro as an owner or admin of the company.

Needs an API key or sign-in token in Authorization: Bearer or X-API-Key. Authentication

Responses

200OK
400bad_request, key_in_url or invalid_json: the request could not be read
401missing_key or invalid_key: no key, or a key that is not valid or was revoked
403key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
404not_found: nothing here that you may see
413too_large: the body is over 256 KB
429rate_limited or daily_quota: wait for Retry-After seconds

Response fields

idstringrequired
The key's public prefix: the 10 characters after ssk_
namestringrequired
purposestringrequired
status"pending" | "active" | "declined" | "revoked"required
pending until a SiteSwap admin approves it
scopes_askedstring[]required
scopesstring[]required
What it was granted; empty until approved
per_minuteintegerrequired
Requests a minute
per_dayintegerrequired
Requests a day (UTC)
callsintegerrequired
Calls counted so far
last_used_atstring | nullrequired
The last call
created_atstringrequired
When it was asked for. ISO 8601 in UTC
asked_bystringrequired
Who asked for it
notestring | nullrequired
Why it was declined, from the SiteSwap admin
SiteSwap API v1Support