Skip to content

Public REST API

The Plutus REST API lets scripts and CI read and change account data with a bearer-token API key. Every endpoint is the same one the Plutus app uses, under /v1 instead of /api, so the API and the UI return the same data and enforce the same rules.

The OpenAPI 3 document is public (no key needed) at https://console.plutus-cloud.com/v1/openapi.json. It describes each endpoint’s path, query parameters and request body. It doesn’t describe response bodies, which are returned as JSON but aren’t typed in the document.

  1. Open Access in the sidebar and select the API keys tab.
  2. Click + New key and enter a name (for example, “Nightly export”).
  3. Choose an access level: Read-only (the default) or Read + write. For a Read + write key you can also choose the key’s role.
  4. Choose an expiry: 30 days, 90 days, 1 year, 2 years, or never expires.
  5. Click Create key and copy the key. It starts with plu_api_ and is shown once; Plutus stores only a hash.

Creating or revoking a key needs the member role or higher. A key can’t have a higher role than the person who creates it. Anyone who can open the page can see the list of keys, with each key’s creator, access level, status, expiry and last-used time. The creator or an admin can revoke a key.

API keys are separate from MCP keys and from usage ingestion keys. A key from one surface is rejected by the others.

Send the key in an Authorization header. The path is the app’s /api path with /api replaced by /v1:

Terminal window
curl -H "Authorization: Bearer plu_api_..." \
https://console.plutus-cloud.com/v1/accounts/<account-id>/budgets

<account-id> is the numeric ID of your account. The app doesn’t display it. It appears in the /api/accounts/<id>/... URLs of the app’s own requests in your browser’s developer tools.

Browser sessions are not accepted on /v1, and API keys are not accepted on /api.

  • Access level. A Read-only key can make GET requests and the few POST requests that only read data. Any other request returns 403 with This API key is read-only. A Read + write key can also create, change and delete.
  • Role. A key acts with the lower of its own role and its creator’s current role. If the creator is demoted, the key is demoted on its next request.
  • Creator leaves. A key works only while its creator is an active member of the account. If the creator is removed from the account or deactivated, the key returns 401 on its next request and is revoked. Inviting the person again doesn’t bring the key back. Create keys for long-lived integrations as someone who will stay in the account.
  • Suspended and demo accounts. Keys on a suspended account or the demo account return 401.
  • Alert subscription filters. POST /v1/accounts/<account-id>/alert-subscriptions accepts dollar and percent floors and per-value routing for cost spikes alerts. These aren’t available in the app. See Alert channels.
  • Data health. GET /v1/accounts/<account-id>/data-health returns one entry per connection, including health (working, failing, unknown, or no_data for a Kubernetes agent whose pushes carry no rows), consecutive_failures (failed syncs since the last success) and last_successful_sync_at. Each entry also includes is_overdue and recent_failure_count (failures in the last 5 runs). A Kubernetes agent entry also has a collector object whose state is sending_data, connected_no_data or silent (no heartbeat within twice the push interval). collector is null for every other connection.
  • Not exposed. Managing API keys, SSO and SCIM settings isn’t available through the API. A key can’t create or revoke keys.
  • Audit. Creating and revoking keys is recorded in the account activity log. Changes made with a key are attributed to api-key:<key id>.
Condition Response
Missing, wrong, revoked, expired or ineligible key 401 with Invalid or missing API key, the same for every cause
Read key used for a write 403 with This API key is read-only
Key’s role is too low for the endpoint The endpoint’s normal 403
More than 600 requests a minute with one key 429, with Retry-After and X-RateLimit-* headers
An endpoint’s own limit (for example, creating budgets) 429, applied per key
More than 60 failed authentications a minute from one IP 429

Cross-origin browser requests to /v1 are limited to Plutus’s own origin. Server-side scripts and CI aren’t affected.