Skip to main content
POST
/
databases
/
{id}
/
backups
/
{backup_id}
/
restore
Restore database backup
curl --request POST \
  --url https://api.sevalla.com/v3/databases/{id}/backups/{backup_id}/restore \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_database_id": "fb5e5168-4281-4bec-94c5-0d1584e9e657"
}
'
{
  "message": "Database backup restore started"
}

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.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Database identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

backup_id
string
required

Backup identifier (K8s snapshot name)

Example:

"manual-my-backup-abc123"

Body

application/json
target_database_id
string<uuid>

Optional ID of a different database to restore the backup into. When provided, the backup is cloned to this target database instead of overwriting the source. The target must be in the same cluster, of the same database type, and on the same major version as the source. Its current data will be replaced.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Response

Default Response

message
string
required

Confirmation message

Example:

"Database backup restore started"