Access and limits
What needs a token and what does not, how a token is minted, every limit as a number, and how the API tells you when you have hit one.
Two kinds of access
Anonymous. The alert feed and the universe reads take no token. They are public game data and public safety information, metered per address. Start here; most tools never need more.
Signed in. Everything that is about a player (their waypoints, their beacons, the dispatch board they are cleared for) takes that player’s own token, issued by UCI, the identity service every Apex product signs in through. A route that needs one answers 401 without it and never falls back to a public view.
Tokens
A token is an OAuth2 bearer token: an RS256-signed JWT issued by UCI with the audience https://apexstarcomm.space, sent as Authorization: Bearer <token>. Atlas verifies the signature against UCI’s published keys and mints nothing itself.
- For a player, the token comes from the authorization-code flow with PKCE: your app sends the player to UCI, they sign in and consent, and your app exchanges the code. The token carries their roles and, for a verified RSI account that granted the
rsiscope, their handle. - For a machine, the client-credentials flow issues a token whose
permissionsclaim is what Atlas authorises. Machine access is granted per purpose and there is no public purpose yet.
Getting a client
Limits
Two meters, keyed differently on purpose. Every request is first metered by address, before any token is read, so a flood is cheap to refuse. A signed-in request is then metered by the account or client in its token, per kind of route, with a daily budget on top. The numbers below are the configured values on the day this page was checked.
| Caller | Limit | Keyed on |
|---|---|---|
| Anonymous reads | 240 a minute, bursts of 60 | Your address (an IPv6 caller per /64) |
| A signed-in player | 300 reads a minute, 60 searches, 60 writes, plus a daily budget | The account in the token |
| A machine client | 1,200 reads a minute, 300 searches, 120 writes | The client in the token |
| Any address | 240 a minute before a token is even read | Your address |
A refusal is a 429 with Retry-After in seconds, and the body says which budget it came from. The two mean opposite things. A tier refusal is “slow down” and is over in a second or two; a daily refusal is “come back in hours”, and a client that retries it on a short backoff spends the rest of the day being refused. Every response carries the advisory headers:
Caching
Where revalidation makes sense, a response carries an ETag and a matching If-None-Match earns an empty 304. The universe reads tag on the dataset version, so a tag stays valid for weeks; the alert feed and the dispatch board tag on their own version counters and change the moment anything does. A 304 costs you nothing to parse and costs the meter the same as a 200, so poll with the tag and cache the body.
Errors
Errors are RFC 7807 problem details, application/problem+json, with a status, a title and a detail written for a person. A 404 names what was not found; a 409 on a write names the rule that refused it. Every response, error or not, carries an x-request-id; quote it when you report a problem and it can be found in the trace.
Changes
/api/v1is permanent./api/v1/starmapis a module path, not a service name, and will not move.- Fields and endpoints are added without notice. Ignore fields you do not know and treat an enum you do not recognise as its safest value.
- A field is never removed or renamed within v1. A change that would break a reader gets a new path and an announcement in
#announcementsfirst. - This is a fan project run by one person. It may go quiet, and it may go away; it will say so on this site first.