Skip to content

API Keys

API keys are how non-browser clients authenticate against the Runsite Public API — CI/CD pipelines, CLIs, scripts and any custom integration.

Keys are created and managed only from the dashboard, on the API keys page. There is no public endpoint for issuing keys: that surface is intentionally kept inside the authenticated user session.

All API keys use the prefix ak_live_ followed by a random hex string:

ak_live_a1b2c3d4e5f6...

Each key is assigned a scope that controls what it can do:

ScopeDescription
readRead-only access to projects, services and deployments
writeRead + create/update projects, services, env vars and deployments
adminFull access including delete operations

Pick the smallest scope that gets the job done — a CI deploy job rarely needs admin.

From the dashboard you can:

  • Create a key with a name, scope and optional expiration date.
  • Rotate a key — generates a new secret and immediately invalidates the old one. Useful for periodic rotation or when a key may have leaked.
  • Revoke a key — instantly disables it; any further request returns 401 Unauthorized.

Expired keys are automatically rejected.

Send the key in the Authorization header on every Public API request. API keys are accepted only on the Public API, under the /api/v1 prefix — dashboard-only routes such as /api/projects require a session token and reject API keys with 401 Invalid access token.

Terminal window
curl https://api.runsite.app/api/v1/projects \
-H "Authorization: Bearer ak_live_a1b2c3d4..."

That is all there is to it. See the Public API reference for the full set of endpoints, or the API Explorer to try them interactively.

IP geolocation by DB-IP