---
title: License Activation API
description: "## Overview DDLS provides two public REST endpoints for license activation and deactivation. These endpoints are called by client software (plugins, desktop apps) to register and release license activations without requiring WordPress admin credentials. Authentication is performed via the license…"
url: "https://dmsi.gr/docs/ddls/ddls-api-documentation/license-activation-api/"
updated: "2026-05-06"
category: DDLS / API Documentation
---

# License Activation API

## Overview

DDLS provides two public REST endpoints for license activation and deactivation. These endpoints are called by client software (plugins, desktop apps) to register and release license activations without requiring WordPress admin credentials.

Authentication is performed via the license key itself — no WordPress cookie or application password is needed.

## Base URL

```
https://yoursite.com/wp-json/dmsilm/v1/
```

## POST /licenses/activate

Activates a license on a site or machine.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `license_key` | string | Yes | The customer’s license key |
| `site_url` | string | Yes | The URL or identifier of the site/machine being activated |
| `product_id` | integer | Yes | The WooCommerce product ID |

**Success response (200):**

```
{
  "success": true,
  "activation_id": 123,
  "license_key": "XXXX-XXXX-XXXX-XXXX",
  "activations_used": 1,
  "activations_remaining": 4
}
```

**Error responses:** `400` invalid key, `403` activation limit reached, `404` product not found.

---

## POST /licenses/deactivate

Releases a license activation from a site or machine.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `license_key` | string | Yes | The customer’s license key |
| `site_url` | string | Yes | The URL or identifier to deactivate |
| `product_id` | integer | Yes | The WooCommerce product ID |

**Success response (200):**

```
{
  "success": true,
  "activations_used": 0,
  "activations_remaining": 5
}
```

**Error responses:** `400` invalid key or activation not found, `404` product not found.

---

**Note:** These endpoints are intentionally public — client software does not have WordPress credentials. Security is enforced through license key validation and product ownership checks.
