---
title: "Activate a license"
method: POST
path: "/v1/license/activate"
tags: ["License"]
---

# Activate a license

`POST /v1/license/activate`

Set the activation date for a license to the current timestamp

## Request body

- object
  - `key` string, required — The license key to activate
  - `activationIso` string, date-time — Optional activation timestamp (ISO 8601 string)

## Response `200`

License successfully activated

- object
  - `success` boolean
  - `license` object
    - `id` string, uuid
    - `key` string
    - `gridKw` integer, nullable
    - `solarKw` integer, nullable
    - `batteryKw` integer, nullable
    - `evKw` integer, nullable
    - `creationDate` string, date-time
    - `activationDate` string, date-time, nullable
    - `duration` integer
    - `deactivationDate` string, date-time, nullable
    - `type` 'residential' | 'commercial'

## Other responses

- `400` — License is already activated
- `401` — Authentication required or invalid token
- `403` — User does not have permission to activate this license
- `404` — License not found

---

[API](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api.md) · [All operations](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eniris/eniris-metadata-telemetry-query-api/revisions/fe3723575e19/schema)
