Skip to main content

Authentication

Data API requests use an API key in the x-api-key header. The /health and /health/* endpoints do not require a key.

curl --fail-with-body -sS \
-H "x-api-key: $CONSTELLATION_API_KEY" \
"https://api.constellation.space/topology?freshness_seconds=900"

Signing into Platform gives you a session token, not an API key. /telemetry, /topology, and /predictions accept only x-api-key. A session token or an API key sent as Authorization: Bearer fails with 401 auth_failed and reason missing api key. Only the MCP server at /mcp takes the key as a bearer token.

Get a key​

Create keys on Integrations, API and MCP in Platform:

  1. Sign in and open Integrations, then API and MCP.
  2. Choose Create key and what the key is for, which ticks its scopes; then name it and choose its Expiration.
  3. Choose Create key and copy the secret. It is shown only once.

Live keys start with cos_live_ and call the API on your fleet. The Platform makes live keys only. A key that starts with cos_test_, which an older account may still hold, reads only the shared sandbox, which is read-only: a write with it returns 403 sandbox_read_only.

A key works only in the workspace it was created in. Switch workspaces before creating a key for another one.

Enterprise credentials and endpoints are supplied during onboarding.

Key expiration​

Every key has an expiry, chosen when you create it. The Expiration field offers 7, 30, 60, or 90 days, a custom date, or no expiration, and states the exact date before the key is made. A custom date must be after today. The key works until 23:59:59 that day UTC.

  • If you keep the default, the key expires after your deployment's default lifetime, 90 days unless your deployment sets another.
  • A deployment can set a maximum lifetime. It then offers only expiries within that limit and no No expiration option, so every key expires.
  • A key that never expires works until you revoke it. Prefer an expiry so a leaked key stops working on its own.
  • After its expiry a key is rejected like any invalid key: 401 auth_failed.

The key list shows when each key expires. A key due within 7 days is amber and says when it expires, such as Expires in 3 days, and a past one reads Expired.

Scopes​

ScopeGrants
topology:readGET /topology (its config needs config:read, config:write, or workflows:write too), GET /topology/series, GET /topology/passes, and GET /assets/satellites and GET /assets/stations
predictions:readGET /predictions, GET /predictions/runs, GET /predictions/actions and GET /predictions/actions/decisions, every route under /predictions/feed but DELETE /predictions/feed/readers/{consumer}, and GET /predictions/connectors
results:readGET /predictions/feed and nothing else, answered for a page on any origin, without cookies, so a browser can hold the key, as the Open MCT plugin does.
telemetry:writePOST /telemetry, POST /telemetry/pass-logs and GET /telemetry/pass-logs/demo-sample
config:writePUT /topology/config, PATCH /topology/config, GET /topology/config, GET /topology/orbits, POST and DELETE /topology/demo-fleet, POST /topology/scenarios and DELETE /topology/scenarios/{scenario_id}, reading, saving and deleting workflows under /predictions/workflows, reading and saving views and the contract minimum, approving or removing connectors, and DELETE /predictions/feed/readers/{consumer}. Live keys only.
config:readGET /topology/config, GET /topology/orbits, GET /topology/scenarios, and reading workflows under /predictions/workflows, views, and the contract minimum. The Platform offers it on live keys where workflows are available; config:write includes it.
workflows:writePOST /predictions (starting a workflow run), POST /predictions/runs/{run_id}/cancel, GET /topology/config, GET /topology/orbits, reading, saving and deleting workflows under /predictions/workflows, reading and saving views and the contract minimum, approving or removing connectors, and DELETE /predictions/feed/readers/{consumer}. Live keys only.
act:approveApproving and rejecting the actions a workflow run holds, under /predictions/actions. Approving also needs the Operator + Act plan. See Send for approval. Live keys only.
raw-data:writePUT /telemetry/files/{source}/{name}, GET /telemetry/files, GET /telemetry/files/whoami, and signing in over SFTP with the key as the password. The Platform shows it as Upload and list files stored as they are, such as logs and captures. See Telemetry files. Live keys only.

A valid key without a required scope receives 403 insufficient_scope; the required field names the missing scope. Grant only the scopes your integration needs.

Keys identify the caller. Use the endpoint for the environment the key was issued in. Authentication and scopes do not imply tenant isolation on shared plans; see Tenant isolation.

Authentication failures​

ResponseMeaning
401 auth_failedThe key is missing, wrong, expired, revoked, or not valid in this environment. Stop and correct it.
403 insufficient_scopeThe key lacks the scope named in required.
403 sandbox_read_onlyA test key attempted a write.
403 live_key_requiredA test key called a workflow route under /predictions.
429 auth_lockoutRepeated failures locked out the client, even if the key is now correct. Stop it and wait the full delay; see Failed-auth lockout.

Store and rotate keys​

Keep keys in an environment variable such as CONSTELLATION_API_KEY or in a secrets manager. Do not commit them, log them, include them in URLs, or ship them in frontend code.

Use one key per integration. Revoke exposed or unused keys on Integrations, API and MCP, which lists each key's prefix, scopes, when it was last used, and when it expires.

Rotate before a key expires: create the new key, deploy it, confirm calls succeed, then revoke the old one. An expired key cannot be extended. For managed Enterprise credentials, contact Constellation for rotation.

The fleet agent keeps its own copy of the key on the host; applications that publish through it never handle the key.

Verify access​

Run the connection smoke test. An authenticated 200 from /topology confirms the key works. An empty state array means no telemetry was returned for the requested window.