---
search:
  tags:
    - license
    - POST
seo:
  description: >-
    Activate a license online by key. Reference for the POST
    /api/v1/license/activate endpoint in the TimescaleDB Enterprise API.
  noindex: true
sidebar:
  label: Activate a license online
  badge: POST
title: Activate a license online
type: openapi-operation
---
Activate a license online by key.

`POST /api/v1/license/activate`

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

- `key` (string, required) — License key to activate online

Request body example:

```json
{
  "key": "string"
}
```

**Responses**

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

Response example, 200:

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