> For the complete documentation index, see [llms.txt](https://docs.theseus.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseus.us/cyclops/developers/edge-api/license-and-lockdown.md).

# License and lockdown

| Method | Path                               | Purpose                          |
| ------ | ---------------------------------- | -------------------------------- |
| `GET`  | `/api/v2/system/license`           | Read the license status          |
| `GET`  | `/api/lockdown-mode` (port `5000`) | Read whether lockdown mode is on |
| `POST` | `/api/lockdown-mode` (port `5000`) | Turn lockdown mode on or off     |

## License status

`GET /api/v2/system/license`

Cyclops only runs with a valid license. Use this to show the license state in your GCS.

```bash
curl http://192.168.218.100:5050/api/v2/system/license
```

```json
{
  "success": true,
  "data": {
    "status": "VALID",
    "valid": true,
    "exists": true,
    "license_id": "LIC-EXAMPLE-0001",
    "product": "Cyclops",
    "issued_at": "2026-06-01T00:00:00Z",
    "error": null,
    "fix_suggestion": null
  }
}
```

| Field                     | Description                                                                                                                                                                |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `valid`                   | `true` if the license is valid for this Cyclops computer.                                                                                                                  |
| `status`                  | `VALID`, `NOT_FOUND` (no license installed), `HARDWARE_MISMATCH` (the license belongs to a different Cyclops computer), `EXPIRED`, or another value for a damaged license. |
| `exists`                  | `true` if a license is installed.                                                                                                                                          |
| `license_id`              | License identifier. Give it to Theseus support when you contact them about the license.                                                                                    |
| `product`                 | Licensed product.                                                                                                                                                          |
| `issued_at`               | When the license was issued.                                                                                                                                               |
| `error`, `fix_suggestion` | What is wrong and what to do, when the license is not valid.                                                                                                               |

If `valid` is `false`, contact Theseus support with the `license_id` and `status`.

| Status | Cause                                                               |
| ------ | ------------------------------------------------------------------- |
| `503`  | The license status is not available yet. Retry after a few seconds. |

## Lockdown mode

Lockdown mode encrypts Cyclops logs and sensor data, and keeps the home position only until the next reboot. See [Lockdown mode](https://docs.theseus.us/vozilla-gcs-software/vozilla-app/lockdown-mode.md) for what it protects and what it does not.

{% hint style="info" %}
These endpoints belong to the legacy API on port `5000`. They may be replaced by v2 endpoints in a later release.
{% endhint %}

### Read whether lockdown mode is on

`GET /api/lockdown-mode`

```bash
curl http://192.168.218.100:5000/api/lockdown-mode
```

```json
{
  "code": "SUCCESS",
  "data": true
}
```

`data` is `true` when lockdown mode is on.

### Turn lockdown mode on or off

`POST /api/lockdown-mode`

{% hint style="warning" %}
Only change lockdown mode on the ground with the aircraft disarmed. Changing it restarts Cyclops. Turning it on also reboots the Cyclops computer a few seconds after the response. Cyclops sends no position to the flight controller until it is running again.
{% endhint %}

| Field     | Type    | Description                                                        |
| --------- | ------- | ------------------------------------------------------------------ |
| `enabled` | boolean | `true` to turn lockdown mode on, `false` to turn it off. Required. |

```bash
curl -X POST http://192.168.218.100:5000/api/lockdown-mode \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'
```

```json
{
  "code": "SUCCESS",
  "message": "Lockdown mode enabled. Device is rebooting.",
  "data": true,
  "service_restarted": true,
  "reboot_scheduled": true
}
```

After the reboot, set the home position again. In lockdown mode it does not survive a reboot. See [Home position](https://docs.theseus.us/cyclops/developers/edge-api/home-position.md).

Read the `message`. If the setting was saved but the device could not restart Cyclops or schedule the reboot, the message says so and tells you what to do.

Turning lockdown mode on does not encrypt or delete logs and recordings that already exist.

| Status | Cause                                             |
| ------ | ------------------------------------------------- |
| `400`  | `enabled` is missing or is not `true` or `false`. |
| `500`  | The setting could not be saved.                   |
