---
title: "Deactivate a license key instance."
method: POST
path: "/v1/licenses/deactivate"
tags: ["Licenses"]
---

# Deactivate a license key instance.

`POST /v1/licenses/deactivate`

Remove a device activation from a license key. Free up activation slots for new devices.

## Request body

- DeactivateLicenseRequestEntity
  - `key` string, required — The license key to deactivate.
  - `instance_id` string, required — Id of the instance to deactivate.

## Response `200`

Successfully deactivated a license key instance

- LicenseEntity
  - `id` string, required — Unique identifier for the object.
  - `mode` 'test' | 'prod' | 'sandbox', required — String representing the environment.
  - `object` string, required — A string representing the object's type. Objects of the same type share the same value.
  - `product_id` string, required — The ID of the product this license belongs to.
  - `status` 'inactive' | 'active' | 'expired' | 'disabled', required — The current status of the license key.
  - `key` string, required — The license key.
  - `activation` number, required — The number of instances that this license key was activated.
  - `activation_limit` number, nullable — The activation limit. Null if activations are unlimited.
  - `expires_at` string, date-time, nullable — The date the license key expires. Null if it does not have an expiration date.
  - `created_at` string, date-time, required — The creation date of the license key.
  - `instance` LicenseInstanceEntity
    - `id` string, required — Unique identifier for the object.
    - `mode` 'test' | 'prod' | 'sandbox', required — String representing the environment.
    - `object` string, required — A string representing the object’s type. Objects of the same type share the same value.
    - `name` string, required — The name of the license instance.
    - `status` 'active' | 'deactivated', required — The status of the license instance.
    - `created_at` string, date-time, required — The creation date of the license instance.

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `404` — Not Found - Resource does not exist

---

[API](https://skmtc.net/creem/apis/creem-api.md) · [All operations](https://skmtc.net/creem/apis/creem-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/creem/creem-api/versions/aa593160d96c/schema)
