> ## 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.

> ## Agent Instructions
> This is the Sevalla REST API reference. Base URL: https://api.sevalla.com/v3. Authenticate with an API key in the Authorization header as a Bearer token.
> The OpenAPI spec is at https://api.sevalla.com/v3/openapi.json. Concepts and dashboard guides are at https://docs.sevalla.com (index: https://docs.sevalla.com/llms.txt).
> To act on a Sevalla account from an AI agent, prefer the Sevalla MCP server (https://mcp.sevalla.com/mcp, see https://docs.sevalla.com/ai-agents/overview.md) or the Sevalla CLI (https://api-docs.sevalla.com/v3/cli.md).

# Sevalla API reference

> The Sevalla REST API v3: make a first request with an API key, find the operations for each product, and read the guides on errors, limits, pagination and polling.

The Sevalla API is a REST API for managing your company's services and settings: applications, deployments, processes, databases, static sites, object storage, load balancers, pipelines, projects, domains, environment variables, webhooks and API keys. It sends and receives JSON over HTTPS, and every request is authenticated with an [API key](https://docs.sevalla.com/developer-tools/api-keys).

| What | Value |
| - | - |
| Base URL | `https://api.sevalla.com/v3` |
| Authentication | `Authorization: Bearer <API key>`. See [Authentication](https://api-docs.sevalla.com/v3/authentication.md). |
| Format | JSON request and response bodies, `snake_case` field names, UUIDs as IDs |
| OpenAPI spec | `https://api.sevalla.com/v3/openapi.json` (OpenAPI 3.1) |

## Make your first request

**1. Create an API key**

In the Sevalla dashboard, under **Tools**, click **API keys**, then [create a key](https://docs.sevalla.com/developer-tools/api-keys#create-an-api-key). The **Company viewer** role is enough to read. Copy the key when it's shown, and keep it in an environment variable:

```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}}
export SEVALLA_API_KEY="svl_..."
```

**2. List your applications**

Send the key as a bearer token to [List applications](https://api-docs.sevalla.com/v3/applications/list-applications.md):

```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}}
curl https://api.sevalla.com/v3/applications \
  -H "Authorization: Bearer $SEVALLA_API_KEY"
```

**3. Read the response**

The API returns the first page of the company's applications, ordered by name:

```json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}}
{
  "data": [
    {
      "id": "7f3c2b1a-9e8d-4c7b-a6f5-4e3d2c1b0a9f",
      "name": "storefront-x7k2m",
      "display_name": "storefront",
      "status": "deploymentSuccess",
      "type": "app",
      "source": "privateGit",
      "is_suspended": false,
      "created_at": "2026-09-14T08:21:37.000Z",
      "updated_at": "2026-10-15T16:02:11.000Z"
    }
  ],
  "total": 1,
  "offset": 0,
  "limit": 25
}
```

Each application's `id` is what other operations take, for example `POST /applications/{id}/deployments` to [trigger a deployment](https://api-docs.sevalla.com/v3/applications/trigger-deployment.md). [Pagination](https://api-docs.sevalla.com/v3/pagination.md) explains `total`, `offset` and `limit`.

To see what a key is allowed to do, call [Get current API key](https://api-docs.sevalla.com/v3/api-keys/get-current-api-key.md) (`GET /api-keys/me`).

## What you can manage

> [card] [Applications](https://api-docs.sevalla.com/v3/applications/list-applications.md)
>
> Create, deploy and roll back applications, and manage their processes, domains, environment variables, networking, logs and metrics.

> [card] [Pipelines](https://api-docs.sevalla.com/v3/pipelines/list-pipelines.md)
>
> Stages, promotions without a rebuild, and preview apps for pull requests.

> [card] [Databases](https://api-docs.sevalla.com/v3/databases/list-databases.md)
>
> PostgreSQL, MySQL, MariaDB, Redis and Valkey, with backups, restores and internal connections.

> [card] [Static sites](https://api-docs.sevalla.com/v3/static-sites/list-static-sites.md)
>
> Deployments, custom domains, environment variables, cache purges, logs and metrics.

> [card] [Object storage](https://api-docs.sevalla.com/v3/object-storages/list-object-storage-buckets.md)
>
> Buckets, objects, CORS policies, the CDN domain and S3 credentials.

> [card] [Load balancers](https://api-docs.sevalla.com/v3/load-balancers/list-load-balancers.md)
>
> Destinations and custom domains.

> [card] [Projects](https://api-docs.sevalla.com/v3/projects/list-projects.md)
>
> Group applications, databases, pipelines and buckets, and move services between projects.

> [card] [Webhooks](https://api-docs.sevalla.com/v3/webhooks/list-webhooks.md)
>
> Endpoints, events, signing secrets and deliveries.

The reference also covers global environment variables, registry credentials, API keys, usage alerts, company users, and resources such as locations and sizes.

## Guides

* [Authentication](https://api-docs.sevalla.com/v3/authentication.md): API keys, the `Authorization` header, permissions, and `401` and `403` responses.
* [Errors](https://api-docs.sevalla.com/v3/errors.md): the error body, every status code, and which errors to retry.
* [Rate limits](https://api-docs.sevalla.com/v3/rate-limits.md): the six limit tiers, the `x-ratelimit-*` headers and `429`.
* [Pagination](https://api-docs.sevalla.com/v3/pagination.md): `limit`, `offset` and `total` on list operations.
* [Long-running operations](https://api-docs.sevalla.com/v3/long-running-operations.md): operations that finish in the background, and how to poll for the result.
* [Webhook events](https://api-docs.sevalla.com/v3/webhook-events.md): the requests Sevalla sends to your webhook endpoint.

## Tools built on the API

These tools call this API with the same API keys, so you don't always need to call it by hand.

> [card] [Sevalla CLI](https://docs.sevalla.com/developer-tools/cli)
>
> Commands for a terminal or a CI job, with JSON output.

> [card] [MCP server](https://docs.sevalla.com/ai-agents/overview)
>
> AI agents that deploy, debug and manage services.

> [card] [Terraform provider](https://docs.sevalla.com/developer-tools/terraform)
>
> Services defined as code.

## OpenAPI spec

The spec is generated from the API's code, and every operation page in this reference is built from it. Download it without an API key, as JSON from `https://api.sevalla.com/v3/openapi.json` or as YAML from `https://api.sevalla.com/v3/openapi.yaml`.

For LLMs and agents, `https://api-docs.sevalla.com/llms.txt` lists every page of this reference with its description.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.