---
title: "POST /sites/{site_id}/database/snapshot"
method: POST
path: "/sites/{site_id}/database/snapshot"
tags: ["database"]
---

# POST /sites/{site_id}/database/snapshot

`POST /sites/{site_id}/database/snapshot`

Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.

## Request body

- CreateDatabaseSnapshotRequest — Request body for creating a database snapshot
  - `branch_name` string — The name of the branch to snapshot. Defaults to "production" if not specified.
  - `name` string — An optional name for the snapshot

## Response `201`

Created

- DatabaseSnapshot — A point-in-time snapshot of a database branch
  - `id` string — The unique identifier of the snapshot
  - `timestamp` string, dateTime — The timestamp when the snapshot was created
  - `source_branch_id` string — The ID of the branch that was snapshotted

## Other responses

- `default` — error

## Changes

- **2026-02-03** `9757c1b9bd72` — 1 info
  - endpoint added
- **2025-10-01** `dd4e48196663` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netlify/apis/netlify-s-api-documentation/changes/sites/:site_id/database/snapshot/post.md)

---

[API](https://skmtc.dev/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.dev/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/revisions/f6fbbc439fc2/schema)
