API Overview
The CloudInfraOS REST API gives you programmatic access to projects, resources, costs, alerts, DNS, runbooks, and webhooks. Use it to automate your infrastructure workflows and integrate with your existing toolchain.
Base URL
https://app.stackpilot.dev/apiAuthentication
Dashboard API requests authenticate with your session cookie (the same login as the app) β handlers verify it via getUser() on every mutating call. Scoped Bearer API keys are planned; see Authentication for the roadmap.
Rate Limits
The API enforces rate limits per user (or per IP on unauthenticated endpoints). On a rate-limited response (HTTP 429) the limits are returned in headers:
X-RateLimit-Limitβ requests allowed per windowX-RateLimit-Remainingβ requests remaining in current windowX-RateLimit-Resetβ Unix timestamp when the window resets
API Endpoints
Projects
GET /api/projectsβ list all projects in your organizationPOST /api/projectsβ create a new projectGET /api/projects/:idβ get project detailsPATCH /api/projects/:idβ update a projectDELETE /api/projects/:idβ delete a project
Resources
GET /api/resourcesβ list synced resources across providersGET /api/resources/:idβ get resource details
Costs
GET /api/costsβ list cost snapshots with optional date rangeGET /api/costs/summaryβ aggregated cost summary by provider
Alerts
GET /api/alertsβ list alerts and alert configurationsPOST /api/alertsβ create an alert rulePATCH /api/alerts/:idβ update an alert ruleDELETE /api/alerts/:idβ delete an alert rule
See the detailed endpoint documentation: