---
title: "GET /external-services/{id}/restore-capabilities"
method: GET
path: "/external-services/{id}/restore-capabilities"
tags: ["Restore"]
---

# GET /external-services/{id}/restore-capabilities

`GET /external-services/{id}/restore-capabilities`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/restore-capabilities`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

Capabilities declared by the service

- RestoreCapabilitiesResponse: Capabilities a service exposes for the generic restore framework. Each engine overrides `ExternalService::restore_capabilities` to declare what it supports. The handler layer uses this to validate requests and the UI uses it to conditionally show options (e.g., PITR picker).
  - `earliest_pitr_time` string, date-time, nullable: Earliest recoverable timestamp, if `pitr` is true. Derived from engine-specific archive metadata (e.g., `pg_stat_archiver`).
  - `latest_pitr_time` string, date-time, nullable: Latest recoverable timestamp, if `pitr` is true.
  - `pitr` boolean, required: Point-in-time recovery using engine-specific continuous archives (WAL for Postgres, AOF for Redis, oplog for MongoDB, object versions for S3).
  - `restore_in_place` boolean, required: Restore a backup onto the same running service (destructive).
  - `restore_to_new_service` boolean, required: Restore a backup into a freshly provisioned service.
  - `suggested_new_service_name` string, required: Suggested name for the new service when creating a clone. Safe to pre-fill into the UI dialog; the user can edit before submitting.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service not found
- `503`: The service's engine cannot be reached to read its restore options

## Changes

- **2026-11-12** `e052e98bb073`: 1 info
  - added the non-success response with the status `503`
- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `404` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/restore-capabilities/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
