> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.sevalla.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sevalla API Reference

> 200+ endpoints to deploy, scale, and manage your entire cloud infrastructure programmatically. Applications, databases, static sites, load balancers, object storage, and more.

One API. Full control over your infrastructure. Deploy applications, provision databases, manage load balancers, store objects, and automate every part of your stack without touching a dashboard.

<div style={{ display: "flex", gap: "2rem", flexWrap: "wrap", margin: "1.5rem 0 2rem" }}>
  <div>
    <div style={{ fontSize: "2rem", fontWeight: 700, lineHeight: 1 }}>200+</div>
    <div style={{ opacity: 0.7, fontSize: "0.875rem" }}>API endpoints</div>
  </div>

  <div>
    <div style={{ fontSize: "2rem", fontWeight: 700, lineHeight: 1 }}>13</div>
    <div style={{ opacity: 0.7, fontSize: "0.875rem" }}>Resource types</div>
  </div>

  <div>
    <div style={{ fontSize: "2rem", fontWeight: 700, lineHeight: 1 }}>REST</div>
    <div style={{ opacity: 0.7, fontSize: "0.875rem" }}>JSON over HTTPS</div>
  </div>

  <div>
    <div style={{ fontSize: "2rem", fontWeight: 700, lineHeight: 1 }}>Bearer</div>
    <div style={{ opacity: 0.7, fontSize: "0.875rem" }}>Token auth</div>
  </div>
</div>

## Get started in 60 seconds

<Steps>
  <Step title="Generate an API key">
    Create a key from your [Sevalla dashboard](https://app.sevalla.com/api-keys). One key authenticates every endpoint.
  </Step>

  <Step title="Make your first request">
    ```bash theme={null}
    curl -H "Authorization: Bearer YOUR_API_KEY" \
      https://api.sevalla.com/v3/applications
    ```
  </Step>

  <Step title="Build from here">
    Browse the **v3** tab in the sidebar for full endpoint specs, schemas, and code examples. Use the **Try it** console on any page to make live calls.
  </Step>
</Steps>

## Let AI manage your infrastructure

Your AI coding tools can talk to Sevalla directly. Connect Claude Code, Cursor, Codex, Windsurf, or any MCP-enabled agent and let it handle deployments, debugging, and scaling for you.

<Columns cols={2}>
  <Card title="MCP server for coding agents" icon="microchip" href="https://docs.sevalla.com/quick-starts/coding-agents/overview">
    Connect your agent to Sevalla in one command. The MCP server gives AI tools full access to the API through natural language, with OAuth authentication and sandboxed execution. Works with Claude Code, Cursor, Codex, Windsurf, and OpenCode.
  </Card>

  <Card title="Safe by default" icon="shield-halved" href="/v3/api-keys/list-api-keys">
    OAuth-based authentication for MCP connections, scoped API keys for direct access. Read-only for debugging, deploy-only for CI, full access for trusted tools. Rotate any key instantly.
  </Card>
</Columns>

<Columns cols={3}>
  <Card title="Deploy and rollback" icon="arrow-rotate-left">
    "Deploy the latest commit." "Roll back to yesterday." Your agent triggers deployments, watches build logs, and rolls back automatically if something breaks.
  </Card>

  <Card title="Debug from your editor" icon="bug">
    "Why is the app slow?" Your agent pulls runtime logs, access logs, and metrics to diagnose issues without switching to a dashboard.
  </Card>

  <Card title="Scale when needed" icon="arrows-up-down">
    "Scale web to 3 instances." Your agent adjusts process counts and resource limits based on what the traffic actually looks like.
  </Card>
</Columns>

<Tip>Get started with the [coding agents quick-start guide](https://docs.sevalla.com/quick-starts/coding-agents/overview) to connect your favorite AI tool to Sevalla in minutes.</Tip>

## Everything you can manage

<Columns cols={3}>
  <Card title="Applications" icon="rocket" href="/v3/applications/list-applications">
    Deploy from Git or Docker. Configure processes, domains, env vars, CDN, TCP proxies, IP restrictions, and deployment hooks. Monitor with 13 metrics endpoints.
  </Card>

  <Card title="Databases" icon="database" href="/v3/databases/list-databases">
    Provision PostgreSQL, MySQL, MariaDB, MongoDB, Redis, or Valkey. Manage backups, internal connections, external access, password resets, and resource metrics.
  </Card>

  <Card title="Static Sites" icon="globe" href="/v3/static-sites/list-static-sites">
    Deploy to Cloudflare's edge. Manage domains, env vars, deployments, cache purging, access logs, and performance metrics.
  </Card>

  <Card title="Load Balancers" icon="scale-balanced" href="/v3/load-balancers/list-load-balancers">
    Distribute traffic across applications. Configure destinations, custom domains, and toggle routing on the fly.
  </Card>

  <Card title="Object Storage" icon="hard-drive" href="/v3/object-storage/list-object-storage-buckets">
    S3-compatible buckets with CORS policies, CDN domains, and object management built in.
  </Card>

  <Card title="Pipelines" icon="code-branch" href="/v3/pipelines/list-pipelines">
    Staging-to-production workflows. Promote between stages, manage preview apps for feature branches.
  </Card>
</Columns>

<Columns cols={3}>
  <Card title="Docker Registries" icon="docker" href="/v3/docker-registries/list-docker-registries">
    Connect private registries for Docker-based deployments. Full CRUD management.
  </Card>

  <Card title="Webhooks" icon="bell" href="/v3/webhooks/list-webhooks">
    Get notified on infrastructure events. Inspect deliveries, rotate secrets, toggle endpoints.
  </Card>

  <Card title="Projects" icon="folder" href="/v3/projects/list-projects">
    Organize services into logical groups. Add or remove applications, databases, and sites from projects.
  </Card>
</Columns>

<Columns cols={3}>
  <Card title="API Keys" icon="key" href="/v3/api-keys/list-api-keys">
    Create, rotate, and toggle API keys programmatically. Full lifecycle management.
  </Card>

  <Card title="Deployments" icon="arrow-up-from-bracket" href="/v3/applications/deployments/list-deployments">
    Trigger from branches or images. Track status, view build logs, cancel in progress, and rollback to last successful.
  </Card>

  <Card title="Metrics & Logs" icon="chart-line" href="/v3/applications/metrics/get-requests-per-minute">
    Requests per minute, response times, status codes, top pages, CPU, memory, and storage for both apps and databases.
  </Card>
</Columns>

## Built for automation

<Columns cols={2}>
  <Card title="CI/CD integration" icon="rotate">
    Trigger deployments from GitHub Actions, GitLab CI, or any pipeline. Use deployment hooks for zero-touch releases.
  </Card>

  <Card title="Infrastructure as code" icon="terminal">
    Script your entire stack. Spin up applications, provision databases, configure load balancers, and set env vars in a single workflow.
  </Card>
</Columns>

<Columns cols={2}>
  <Card title="Monitoring & alerting" icon="chart-bar">
    Pull CPU, memory, storage, and request metrics via API. Feed them into Datadog, Grafana, or your own dashboards.
  </Card>

  <Card title="Webhook-driven workflows" icon="bolt">
    React to deployment completions, scaling events, and status changes in real time with configurable webhooks.
  </Card>
</Columns>
