Organization keys
An ak_… key lets a club website or back-office system work with organization data over the API: roster, event entries, passes, classes and attendance. The key is for servers only: never put it into page code or mobile apps.
Issuing
Account → organization → “API keys” → “Issue key”. The section is visible to the organization owner. Set:
- name — what the key is for (up to 80 characters);
- access sections — one or more: roster (
roster), roster entries to events (club_entries), passes (passes), classes and attendance (attendance). The operations of each section are listed in the reference; - read-only — the key passes
GETrequests only; - expiry — a date after which the key stops working; without a date it works until revoked.
The ak_… key is shown once, right after issuing. The server stores only its hash and the key cannot be recovered: issue a new one and revoke the old one. An organization can have up to 20 active keys.
What a key can do
A key never has more rights than the person who issued it in this organization, narrowed further by the chosen sections. A key sees only its own organization: another organization answers 404 not_found. If the creator leaves the organization, their keys are revoked (401 key_revoked).
Using a key
Send the key in a header to the API host:
curl -H "Authorization: Bearer $KEY" https://api.ruunso.com/v1/orgs/<orgId>/rosterThere is one API host for all sites: api.ruunso.com. A request outside the key’s sections gets 403 key_scope, a write with a read-only key gets 403 key_read_only; other codes and limits are on the “Limits and errors” page. The account area shows when each key was last used.
Revoking
“Revoke” in the key list stops the key at once (401 key_revoked). Revoked keys stay in the list for history and do not count towards the limit.