API reference: Keys
List keys
GET
https://dev.siteswap.pro/api/v1/keysYour 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
idstringrequiredThe key's public prefix: the 10 characters after
ssk_namestringrequiredpurposestringrequiredstatus"pending" | "active" | "declined" | "revoked"requiredpending until a SiteSwap admin approves itscopes_askedstring[]requiredscopesstring[]requiredWhat it was granted; empty until approved
per_minuteintegerrequiredRequests a minute
per_dayintegerrequiredRequests a day (UTC)
callsintegerrequiredCalls counted so far
last_used_atstring | nullrequiredThe last call
created_atstringrequiredWhen it was asked for. ISO 8601 in UTC
asked_bystringrequiredWho asked for it
notestring | nullrequiredWhy it was declined, from the SiteSwap admin
SiteSwap API v1Support