App node API reference
Routes of the app node API, with the base URL, authentication, team selection, and permissions that apply to them.
The app node API is the HTTP API that cosmicac-app-node serves. The web interface and the CLI use it to manage accounts, teams, API keys, jobs, storage volumes, and the other resources of a CosmicAC deployment. This page describes the base URL, authentication, team selection, and permissions of the API, and lists its routes. Each route page lists the route's parameters, request body, permissions, and example requests.
Base URL
Every path in this reference is relative to your app node URL, which is the APP_NODE_URL value that cosmicac config show prints. The deployment serves the API under the /api path of its base URL, so the app node URL has the form <base-url>/api. The example requests on the route pages use https://your-app-node-url in its place.
Authentication
CosmicAC reads the session token from the ttr-token header. Signing in issues the token.
ttr-token: <session-token>CosmicAC binds a token to the IP address that requested it, and rejects the token from any other host. A request without the header, or with a token that doesn't resolve, fails with a 401 status code.
The following routes don't require a session token.
GET /v1/healthPOST /loginPOST /pwd/forgot,POST /pwd/reset, andPOST /pwd/reset/verify, which reset a forgotten password- The Google and CLI sign-in routes under
/oauth
POST /v1/invites/accept accepts a request with or without a session token. If the request includes a token, CosmicAC validates it.
Team selection
A route that acts on a team reads the team from one of two places. Each route page says which.
- Path parameter: the route acts on the team in the
idpath parameter, as in/v1/teams/<id>/members. X-Team-Idheader: the route acts on the team that the header names. If your account belongs to more than one team, you must send the header, and a request without it fails with a400status code. If your account belongs to one team, the route uses that team.
Permissions
Each route page lists what the route requires beyond a session token. The following table explains each requirement, worded as the route pages state it.
| Requirement | Meaning |
|---|---|
Requires platform admin. | The caller's account is a platform administrator. |
Requires team capability | The caller's role in the selected team grants the named capability, such as jobs.read. |
Requires global permission | A deployment-wide role of the caller's account grants the named permission, such as users.activate. |
Requires permission | A deployment-wide role of the caller's account grants the named permission, such as users:rw. |
If the caller doesn't meet a team capability or permission requirement, the request fails with a 403 status code. For the actions that each role can take, see Teams and roles.
Route pages
Authentication routes
Sign-in, sessions, OAuth and passkey flows.
Team routes
Team membership and team settings.
User routes
User accounts and profile management.
Invitation routes
Invitations to join teams.
API key routes
Create, list and revoke API keys.
Job routes
Job submission, status and history.
Recommended model configuration routes
Model catalog definitions.
Storage volume routes
Storage volume lifecycle.
Storage quota routes
Storage quota limits per team.
Node reservation routes
Reserving nodes for workloads.
Resource routes
Compute resources available to teams.
Notification routes
User notifications and delivery channels.
Webhook routes
Outbound webhook configuration.
Observability routes
Metrics and observability settings.
Instance setting routes
Instance-wide configuration (secrets are masked).
Dashboard routes
Aggregated summary data for the UI.
Feedback routes
User feedback submissions.
Health routes
Liveness and readiness checks.
Endpoints
| Method | Path | Route page |
|---|---|---|
GET | /oauth/google/callback | Authentication routes |
POST | /oauth/exchange | Authentication routes |
GET | /oauth/cli/authorize | Authentication routes |
GET | /oauth/cli/session/<session-id> | Authentication routes |
POST | /oauth/cli/exchange | Authentication routes |
POST | /login | Authentication routes |
POST | /pwd/forgot | Authentication routes |
POST | /pwd/reset | Authentication routes |
POST | /pwd/reset/verify | Authentication routes |
GET | /auth/userinfo | Authentication routes |
PATCH | /auth/userinfo | Authentication routes |
POST | /auth/change-password | Authentication routes |
POST | /auth/logout | Authentication routes |
POST | /auth/logout/all | Authentication routes |
POST | /auth/token | Authentication routes |
POST | /auth/team-auth | Authentication routes |
GET | /v1/teams | Team routes |
POST | /v1/teams | Team routes |
GET | /v1/teams/<id> | Team routes |
PATCH | /v1/teams/<id> | Team routes |
GET | /v1/teams/<id>/permissions | Team routes |
POST | /v1/teams/<id>/archive | Team routes |
POST | /v1/teams/<id>/unarchive | Team routes |
GET | /v1/teams/<id>/members | User routes |
POST | /v1/teams/<id>/members | User routes |
DELETE | /v1/teams/<id>/members/<user-id> | User routes |
PATCH | /v1/teams/<id>/members/<user-id> | User routes |
POST | /v1/admin/users/deactivate | User routes |
POST | /v1/admin/users/activate | User routes |
POST | /v1/teams/<id>/invites | Invitation routes |
DELETE | /v1/teams/<id>/invites/<invite-id> | Invitation routes |
POST | /v1/invites/accept | Invitation routes |
GET | /v1/api-keys | API key routes |
POST | /v1/api-keys | API key routes |
GET | /v1/api-keys/usage | API key routes |
GET | /v1/api-keys/<id> | API key routes |
DELETE | /v1/api-keys/<id> | API key routes |
PATCH | /v1/api-keys/<id> | API key routes |
POST | /v1/admin/api-keys/backfill-team | API key routes |
POST | /auth/jobs/action | Job routes |
GET | /v1/auth/jobs | Job routes |
POST | /v1/auth/jobs | Job routes |
GET | /auth/job/<id> | Job routes |
POST | /auth/job/<id> | Job routes |
DELETE | /auth/job/<id> | Job routes |
PATCH | /auth/job/<id> | Job routes |
POST | /auth/job/<id>/replica/<replica-id> | Job routes |
DELETE | /auth/job/<id>/replica/<replica-id> | Job routes |
GET | /auth/job/<id>/status-flow | Job routes |
POST | /v1/auth/jobs/validate | Job routes |
GET | /v1/auth/endpoints/availability | Job routes |
POST | /v1/admin/jobs/backfill-team | Job routes |
GET | /v1/model-masters | Recommended model configuration routes |
POST | /v1/model-masters | Recommended model configuration routes |
GET | /v1/model-masters/preview | Recommended model configuration routes |
GET | /v1/model-masters/options | Recommended model configuration routes |
GET | /v1/model-masters/<id> | Recommended model configuration routes |
DELETE | /v1/model-masters/<id> | Recommended model configuration routes |
PATCH | /v1/model-masters/<id> | Recommended model configuration routes |
GET | /v1/teams/<id>/storage-volumes | Storage volume routes |
POST | /v1/teams/<id>/storage-volumes | Storage volume routes |
GET | /v1/teams/<id>/storage-volumes/racks | Storage volume routes |
GET | /v1/teams/<id>/storage-volumes/<volume-id> | Storage volume routes |
DELETE | /v1/teams/<id>/storage-volumes/<volume-id> | Storage volume routes |
PATCH | /v1/teams/<id>/storage-volumes/<volume-id> | Storage volume routes |
POST | /v1/teams/<id>/storage-volumes/<volume-id>/resize | Storage volume routes |
GET | /v1/admin/storage-quotas | Storage quota routes |
PUT | /v1/admin/storage-quotas/<team-id> | Storage quota routes |
GET | /v1/admin/nodes | Node reservation routes |
GET | /v1/admin/node-reservations | Node reservation routes |
GET | /v1/node-stats | Node reservation routes |
PUT | /v1/admin/node-reservations/<team-id> | Node reservation routes |
GET | /v1/teams/<id>/capacity | Node reservation routes |
GET | /auth/list-things | Resource routes |
GET | /auth/list-racks | Resource routes |
GET | /auth/tail-log | Resource routes |
GET | /auth/servers | Resource routes |
GET | /auth/user/notification-channel | Notification routes |
POST | /auth/user/notification-channel | Notification routes |
GET | /auth/user/notification | Notification routes |
POST | /auth/user/notification/<notification-id>/dismiss | Notification routes |
POST | /auth/user/notification/dismiss-all | Notification routes |
GET | /auth/user/vapid-key | Notification routes |
POST | /auth/user/push-notification-test | Notification routes |
GET | /auth/user/activities | Notification routes |
GET | /auth/settings/webhook | Webhook routes |
POST | /auth/settings/webhook | Webhook routes |
DELETE | /auth/settings/webhook | Webhook routes |
PATCH | /auth/settings/webhook | Webhook routes |
POST | /auth/settings/webhook/test | Webhook routes |
POST | /auth/settings/webhook/regenerate-secret | Webhook routes |
GET | /auth/settings/webhook/deliveries | Webhook routes |
GET | /v1/observability-settings | Observability routes |
PUT | /v1/observability-settings | Observability routes |
DELETE | /v1/observability-settings | Observability routes |
GET | /v1/instance-settings | Instance setting routes |
POST | /v1/instance-settings | Instance setting routes |
GET | /v1/instance-settings/<key> | Instance setting routes |
PUT | /v1/instance-settings/<key> | Instance setting routes |
GET | /v1/dashboard | Dashboard routes |
GET | /v1/control-plane/health | Dashboard routes |
GET | /v1/feedback | Feedback routes |
POST | /v1/feedback | Feedback routes |
GET | /v1/feedback/<id> | Feedback routes |
POST | /v1/feedback/<id>/retry-webhook | Feedback routes |
GET | /v1/diagnostic-bundle/<id> | Feedback routes |
GET | /v1/health | Health routes |