What you need
- An account that is signed in, with an active organisation (Quickstart).
- The API host,
api.scaling.cloud. It is separate from the web application and carries no/apiprefix.
Check the API is alive
/health is public and takes no authentication. Start here, because it
separates “the service is down” from “my credential is wrong”.
Response
commit is the revision currently serving. Quote it in bug reports — it is the
difference between a fixed bug and a stale deployment.
Read the signed-in user
/me requires an authenticated caller and an active organisation. Authenticating
means signing in with OAuth, which is described in the
API reference.
$ACCESS_TOKEN is
not settled, and neither is the shape of the token it returns. This example
assumes a bearer token because that is the OAuth default, not because it is
decided.
Response
name is nullable — an account that has never set one returns null. Render
around that rather than asserting it.
organisationId is taken from the verified credential and never from anything the caller sends.
Passing an organisation in a body, query string or header does nothing, by design.When it fails
Every endpoint returns the same error shape, so one handler covers all of them:401
Branch on
code, never on message. Messages are written for humans and get
rewritten; codes are part of the contract and changing one is a breaking change.