CloudInfraOS

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/api

Authentication

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 window
  • X-RateLimit-Remaining β€” requests remaining in current window
  • X-RateLimit-Reset β€” Unix timestamp when the window resets

API Endpoints

Projects

  • GET /api/projects β€” list all projects in your organization
  • POST /api/projects β€” create a new project
  • GET /api/projects/:id β€” get project details
  • PATCH /api/projects/:id β€” update a project
  • DELETE /api/projects/:id β€” delete a project

Resources

  • GET /api/resources β€” list synced resources across providers
  • GET /api/resources/:id β€” get resource details

Costs

  • GET /api/costs β€” list cost snapshots with optional date range
  • GET /api/costs/summary β€” aggregated cost summary by provider

Alerts

  • GET /api/alerts β€” list alerts and alert configurations
  • POST /api/alerts β€” create an alert rule
  • PATCH /api/alerts/:id β€” update an alert rule
  • DELETE /api/alerts/:id β€” delete an alert rule

See the detailed endpoint documentation: