---
title: "Stop a database"
method: POST
path: "/v2/databases/{databaseId}/stop"
tags: ["DB Lifecycle"]
---

# Stop a database

`POST /v2/databases/{databaseId}/stop`

Stops a running database. Rejected while a snapshot restore is in progress. Rate limited to 1 stop per 3s per user.

## Path parameters

- `databaseId` string, required

## Response `200`

Action dispatched. Payload reflects the underlying operation result.

- object
  - `status` 'success', required

## Other responses

- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `403` — A snapshot restore is currently in progress for this database.
- `404` — The database does not exist or is not owned by the caller.
- `429` — The endpoint enforces its own rate limit and the caller hit the cooldown.
- `500` — An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
