Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get list of backups

GET/v1/databases/{databaseId}/backupsGet list of backups

Returns backups for the specified database.

Parameters

databaseIdstringpathrequired

pattern ^(db_)?([cC][^\s-]{8,}|[a-z0-9]+)$

limitintegerquery

default 25 · maximum 100 · minimum 1

Responses

200Returned backups for the given database.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
backupTypestringrequired

one of "full", "incremental", "differential"

createdAtstringrequired
idstringrequired
sizenumber
statusstringrequired

one of "running", "completed", "failed", "unknown"

typestring

const "backup"

metaobjectrequired
Show child attributes
backupRetentionDaysnumberrequired
paginationobjectrequired
Show child attributes
hasMorebooleanrequired
limitvaluerequired
Show child attributes
anyOf · 2 options
Option 1integer

maximum 100 · minimum 1

Option 2nullnullable
Example response
{
  "data": [
    {
      "backupType": "differential",
      "createdAt": "string",
      "id": "string",
      "size": 0,
      "status": "completed",
      "type": "backup"
    }
  ],
  "meta": {
    "backupRetentionDays": 0
  },
  "pagination": {
    "hasMore": true,
    "limit": 0
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Database with the given ID was not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
422Remote database backups are not supportedapplication/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu