---
title: "Create a new snapshot of a database"
method: POST
path: "/v2/databases/{databaseId}/snapshots"
tags: ["Database Snapshots"]
---

# Create a new snapshot of a database

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

Captures a snapshot of the database and returns a signed download URL valid for 30 days.

The snapshot has a soft deadline: if it finishes within ~90s the response carries the signed URL. Otherwise the route answers `202 SNAPSHOT_PROCESSING` while it keeps generating in the background — expected for large databases, not a failure. Poll the snapshot listing (`GET /v2/databases/:databaseId/snapshots`) ~2min later instead of re-posting.

Rate limits: 1 snapshot per 5s per user, 1 snapshot per 3min per database, and the plan's daily snapshot quota per user.

## Path parameters

- `databaseId` string, required

## Response `200`

Snapshot created. The `url` is a signed download URL valid for 30 days.

- object
  - `status` 'success', required
  - `response` object, required
    - `url` string, uri, required
    - `key` string, required

## Other responses

- `202` — Snapshot is still generating and will appear in the snapshot listing on its own (typically within ~2min). Expected for large databases, not a failure — confirm completion via `GET /v2/databases/:databaseId/snapshots` instead of re-posting.
- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `404` — The database is not owned by the caller, or the snapshot could not be captured.
- `429` — Rate limit hit. `code: KEEP_CALM` covers the short-term limits (1r/5s per user, 1r/3min per database) — clients should back off and retry. `code: DAILY_SNAPSHOTS_LIMIT_REACHED` means the owner consumed the plan's daily quota — clients should surface an upgrade prompt instead of retrying.
- `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)
