---
search:
  tags:
    - console-backup
    - POST
seo:
  description: >-
    Makes a new age key pair and returns the private key… Reference for the POST
    /api/v1/console-backup/keys/rotate endpoint in the TimescaleDB Enterprise
    API.
  noindex: true
sidebar:
  label: Make a new recovery key
  badge: POST
title: Make a new recovery key
type: openapi-operation
---
Makes a new age key pair and returns the private key once, as a file. The new key waits for its confirm; until then each backup uses the current key. The old archives still need the old key.

`POST /api/v1/console-backup/keys/rotate`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "created_at": "2019-08-24T14:15:22Z",
  "file_name": "string",
  "fingerprint": "string",
  "key_file": "string",
  "recipient": "string"
}
```
