---
search:
  tags:
    - license
    - POST
seo:
  description: >-
    Add a license by pasting its file contents. Reference for the POST
    /api/v1/license/key endpoint in the TimescaleDB Enterprise API.
  noindex: true
sidebar:
  label: Paste a license file
  badge: POST
title: Paste a license file
type: openapi-operation
---
Add a license by pasting its file contents.

`POST /api/v1/license/key`

**Request body** (`application/json`, required)

- `certificate` (string, required) — License file contents (-----BEGIN LICENSE FILE----- ...)

Request body example:

```json
{
  "certificate": "string"
}
```

**Responses**

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

Response example, 200:

```json
{
  "results": [
    {
      "error": "string",
      "name": "string",
      "ok": true,
      "status": "string"
    }
  ]
}
```
