---
search:
  tags:
    - console-backup
    - POST
seo:
  description: >-
    Makes an age key pair and returns the private key once,… Reference for the
    POST /api/v1/console-backup/keys/setup endpoint in the TimescaleDB
    Enterprise API.
  noindex: true
sidebar:
  label: Make the first recovery key
  badge: POST
title: Make the first recovery key
type: openapi-operation
---
Makes an age key pair and returns the private key once, as a file. The console keeps only the public key. The backups stay off until an admin confirms the key. A new setup replaces a key that waits for its confirm. With a confirmed key, use rotate.

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

**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"
}
```
