Public API
The public API lets your own tools — an internal developer portal such as Backstage, a wiki or a script — read a cloud workspace's catalog, endpoints and decisions. It only reads; nothing can be changed through it.
The workspace owner manages it in Workspace › Integrations › Public API (read-only). It exists in cloud workspaces only.
Coding assistants can read the same data over MCP: see Coding assistants (MCP).
Creating a token
- Open Workspace › Integrations and scroll to Public API (read-only).
- Give the token a name (for example the portal's name), choose how long it stays valid and create it.
- The token (
sga_…) is shown once — copy it into your portal's secret settings.
A token belongs to the workspace, not to a person, so it keeps working when someone leaves the team. Revoke stops it immediately. A workspace can have up to 10 active tokens.
Requests
Send the token in the Authorization header to the address shown next to the tokens:
curl -H "Authorization: Bearer sga_…" https://<address>/functions/v1/public-api/v1/catalog| Request | Returns |
|---|---|
GET /v1 | The API version, the workspace and the collections |
GET /v1/catalog | Catalog items (?kind=system and so on to filter) |
GET /v1/catalog/{id} | One catalog item |
GET /v1/endpoints | Endpoints (?item={catalog item} for one application's endpoints) |
GET /v1/endpoints/{id} | One endpoint with its contract (parameters, body fields, responses, security) |
GET /v1/decisions | Decisions (?status=accepted and so on) |
GET /v1/decisions/{id} | One decision with its context, options, decision and consequences (Markdown) |
GET /v1/flows | Live flows (?item={catalog item} for flows it takes part in) |
GET /v1/flows/{id} | One live flow with its Mermaid diagram |
Lists come in pages of up to 200 (?limit=, default 100). When there is more, the answer has next; send it back as ?cursor= for the next page:
{ "items": [ { "id": "orders", "name": "Orders", "kind": "container", "url": "https://…" } ], "next": "b3JkZXJz" }Each record has a url that opens it in sysgraph.
What is included
| Record | Fields |
|---|---|
| Catalog item | id, name, kind, parent, description, role, zone, codeNames, owners (teams), url |
| Endpoint | id, item, type, method, name, description, url; one endpoint also contract |
| Decision | id, number, key (ADR-0007), name, status, date, tags, catalog, supersedes, supersededBy, url; one decision also context, options, decision, consequences |
| Flow | id, name, title, state (current, or changing while an open project changes it), generated (from code), participants (id, label, item), endpoints, decisions, steps, url; one flow also mermaid |
Never included: people's names, ids or email addresses, approvals, a project's working copies, flows that are only planned or were dropped, and deleted records. Owners appear as teams only.
These fields are a promise for version 1: new fields can be added over time, existing ones don't change or disappear. Ignore fields you don't know. A breaking change would come as a new version (/v2).
Limits and errors
- Up to 120 requests a minute and 10,000 a day per token. Over the limit the answer is
429withRetry-After. 401: the token is missing, unknown, revoked or expired.403: the workspace is not active.404: no such record.400: a badcursor.- Only
GETrequests are accepted. Browsers may call the API directly (CORS is open); keep the token on the server side of your portal anyway.
See also Webhooks to be told when something changes.