Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions _database_api/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,38 @@ Headers:
```


--- row ---

## Recovery window for Point-in-Time Restoration

--- row ---

`GET https://$DB_API_URL/api/databases/[:db_id]/pitr/recovery_window`

Fetch the recovery window for a given database, to then use the restore endpoint. This is currently only
available for PostgreSQL databases.

||| col |||

Example request

```shell
curl -H "Accept: application/json" -H "Content-Type: application/json" \
-H "Authorization: Bearer $DB_BEARER_TOKEN" \
-X GET https://$DB_API_URL/api/databases/my-db-123/pitr/recovery_window
```

Returns 200 OK

```json
{
"recovery_window": {
"earliest_recoverable_at": "2026-04-23T08:00:00Z",
"latest_recoverable_at": "2026-04-30T22:00:00Z"
}
}
```

--- row ---

## Point-in-Time Restoration
Expand Down