Skip to main content

Database Snapshots

Create point-in-time backups of your databases.

Create Snapshot

POST /v1/databases/{db_type}/{db_name}/snapshots
curl -X POST "https://api.wayscloud.services/v1/databases/postgresql/my_app_db/snapshots" \
-H "Authorization: Bearer $WAYSCLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Before production deployment"
}'

List Snapshots

GET /v1/databases/{db_type}/{db_name}/snapshots

Restore Snapshot

POST /v1/databases/{db_type}/{db_name}/restore
{
"snapshot_id": "snap_abc123"
}

Delete Snapshot

DELETE /v1/databases/{db_type}/{db_name}/snapshots/{snapshot_id}