Agents & API¶
Upsteady lets your AI agent — such as Claude Code, Cursor, or any assistant that can call an HTTP API — read your monitoring data and propose changes as drafts. Nothing goes live until you approve it in the Upsteady Console.
1. Create an API token¶
- Open Agent in the console navigation.
- In the API tokens section, click Create token.
- In the modal dialog, enter a Name and select only the scopes your agent needs.
- Confirm creation. The full token (
us_api_...) is displayed once — copy it immediately before clicking Done.
Token security defaults:
- Expiry: 30 days by default, up to 90 days maximum.
- Revocation: Revoke any token in one click from the API tokens table.
- No billing or account access: API tokens can never touch billing, passwords, account deletion, or token management.
2. Choose the right scopes¶
Grant the narrowest scopes required for your workflow:
| Scope | What it allows |
|---|---|
monitors:read |
List monitors and inspect current state and configuration |
monitor-history:read |
Read uptime and latency history series (up to 31 days / 1,000 points per query) |
incidents:read |
Read ongoing and resolved incidents |
status-pages:read |
Read status page configuration and publication state |
notifications:read |
Read channel labels, types, tiers, and enabled state (destinations are redacted) |
billing:read |
Read subscription state and deadlines (no payment actions) |
monitors:draft |
Propose monitor create, update, pause, resume, delete, or one-off check drafts |
status-pages:draft |
Propose status page create, update, publish, or unpublish drafts |
notifications:draft |
Propose notification channel update or test-alert drafts |
Updating an existing resource requires both the matching :read scope and :draft scope.
3. Install SKILL.md in your agent¶
Upsteady ships a SKILL.md file (located at docs/agent-skill/SKILL.md in the Upsteady repository) that teaches your agent the exact endpoints, draft rules, and safety boundaries.
- Add
SKILL.mdto your agent's skills or instructions folder (for example, your Claude Code or Cursor skills directory). - Provide the token to your agent via the environment variable
UPSTEADY_API_TOKEN. - Requests go to base URL
https://console.upsteady.appwith header:
Keep your token secret
Never commit UPSTEADY_API_TOKEN to version control or paste it into public chats. If a token is exposed, revoke it immediately on the Agent page.
4. Draft and approval workflow¶
When your agent proposes a change (for example, POST /api/agent/drafts/monitor-create with an Idempotency-Key header):
- Upsteady saves a pending draft without executing any live change, probe, or alert.
- The draft appears in the Drafts section of your console's Agent page.
- Open the draft to review the exact proposed change, then click Approve or Reject.
- Drafts expire automatically after 24 hours if not reviewed. If the originating token is revoked before approval, the draft cannot be applied.
Rate limits¶
- 60 requests per minute per token.
- 300 requests per minute per account.