Authentication
A key travels as a header, never a cookie. Present it wrong and you get the same answer as presenting nothing.
The two accepted headers#
Present your key in either header — both are read, and either is enough on its own:
| Header | Form |
|---|---|
Authorization | Bearer rbx_live_YOUR_KEY |
x-api-key | rbx_live_YOUR_KEY |
Nothing else is read as a credential. A key in a query string, a request body, or any other header is ignored, and the request is treated as if no key were presented at all.
A real request#
curl -H "Authorization: Bearer rbx_live_YOUR_KEY" \
"http://rbx.jumpathy.dev/v2/api/users/v1/users/1"curl -H "x-api-key: rbx_live_YOUR_KEY" \
"http://rbx.jumpathy.dev/v2/api/users/v1/users/1"Cookies are ignored, completely#
A browser signed in to ROBLOX that calls this API with no key gets the exact same 401 a stranger gets. The session cookie that keeps you signed in on the site is never read here, by design:
- There is no CSRF surface to defend, because a cross-site request carries cookies, not an
Authorizationheader, so it authenticates as nobody. Access-Control-Allow-Origin: *is safe on every response, because a wildcard origin has no credential to steal when the credential is never a cookie.- A key you paste into a third-party tool is a scoped, revocable credential — not your account.
No key, or a key that does not work#
A missing key, an unrecognised one, a revoked one, an expired one, a key whose owner’s API access has been suspended by an administrator, or a key whose owner is no longer a visible account all answer identically:
{
"errors": [
{
"code": 0,
"message": "Authorization has been denied for this request."
}
]
}These cases are deliberately indistinguishable from the outside: telling an attacker which of their guesses was once a real key would be handing them information. If your own key is refused and you do not know why, check its status on the API Keys page of your account, where you are authenticated as a person rather than a key.
Services, scopes, and anonymous access#
A key only reaches the services it was created for, itself limited by what your grant allows. Calling an endpoint your key cannot reach answers 403:
{
"errors": [
{
"code": 0,
"message": "This key is not permitted to use the games service."
}
]
}An anonymous caller (no key at all, on a service that allows it) gets the same status and code with a sentence aimed at the actual problem — a missing key, not a rejected one:
{
"errors": [
{
"code": 0,
"message": "Anonymous access to the games service is not enabled."
}
]
}On the legacy service every refusal is that service’s own two-word body instead — {"code":401,"message":"Unauthorized"}, {"code":403,"message":"Forbidden"} — see Errors.
ROBLOX does not currently allow anonymous reads on any service — a key is required everywhere.
Game servers can use a key directly#
A running game server (RCC) is a first-class caller of this API, exactly like any other script: it presents a key in the Authorization header and calls the service host directly (for example groups.<domain> in host mode). There is no proxy step and no cookie involved — a key is a credential that can live in a server script safely, because it is scoped and you can revoke it, which a copied session cookie never was.