Activate the OpenAPI Authorization
Once a device has an OpenAPI authorization, it accepts requests without an OpenAPI Key; see Connection & Authentication · OpenAPI authorization and key. This page shows how to activate the authorization in the App.
Before you start, make sure that:
- You have received the authorization code email from XGRIDS; see Get the authorization code below.
- The App is connected to the target device, and the device status shows Online.
Note: an authorization applies only to the current device, not to other devices. Activate each device separately.
Supported devices and firmware versions
The following models and firmware versions support the OpenAPI authorization. If the device firmware is older than the version in the table, upgrade it first in the App under Settings → Firmware Upgrade.
| Model | Firmware version |
|---|---|
| Lixel K2 | V3.3.3 |
| Lixel L2Pro | V3.2.4 |
| Lixel L3 | V4.1.6 |
The current firmware version of the device is shown as Version on the device home page in the App.
Authorization types
| Type | Shown in the App | Description |
|---|---|---|
| Time-limited | Time remaining: XXh XXm | Grants recording time. Only recordings started without a key use it, and only the time the device spends scanning is counted; see Metering. When the time is used up, the authorization state becomes expired and requests without a key are answered with openapi license exhausted |
| Permanent | Permanent License | No limit on recording time |
Get the authorization code
XGRIDS sends the authorization code by email from service@mail.xgrids.com. The code is in the attached spreadsheet.

The authorization code email
Open the attachment Firmware-Authorization-CODE.xlsx. The Authorization Code column holds the code to enter in the App.

The attached spreadsheet (authorization code, serial number, and PI number masked)
Note: keep the authorization code safe; do not forward or publish it. If you run into a problem during activation, contact XGRIDS technical support:
xgrids_tech_support@xgrids.com.
Steps
1. Open the device settings
On the App home page, select the target device and tap Settings. The Lixel K2, L2Pro, and L3 home pages have the same layout, with the entry in the same place.

Device home page (Lixel K2 shown): Version at the upper right is the firmware version; tap Settings
2. Open the OpenAPI authorization
On the settings page, tap OpenAPI authorization. While the device is not authorized, a gray Unauthorized tag is shown under it.
Note: the Format storage button lower on the same page erases the device data; do not tap it by mistake.

Settings page: OpenAPI authorization shows Unauthorized
3. Enter the authorization code
- In the Authorization code field, enter the code from the attached spreadsheet.
- Tap Authorize.

The Enter authorization code page
4. Check the result
On success, the page shows Authorized and OpenAPI enabled on this device. A time-limited authorization shows the remaining time; a permanent one shows Permanent License. Tap Done to go back.

Time-limited: the remaining time is shown

Permanent
5. Confirm the state on the settings page
Back on the settings page, the tag under OpenAPI authorization shows the current authorization state:
| Type | Tag on the settings page |
|---|---|
| Not activated | Unauthorized (gray) |
| Time-limited | Authorized Time remaining: XXh XXm (green) |
| Permanent | Authorized Permanent License (green) |
| Time-limited, time used up | Expired (red); see When the time is used up below |

Settings page after a time-limited authorization

Settings page after a permanent authorization
When the time is used up
When the recording time of a time-limited authorization is used up, the settings page shows a red Expired tag under OpenAPI authorization.

Settings page: OpenAPI authorization shows Expired
At this point:
- A recording in progress ends through the normal stop procedure, and the data already recorded is saved as usual.
OpenapiLicenseStatein the heartbeat becomesexpired, and requests without a key are answered withEC_ProtoError,descopenapi license exhausted.- Requests with a valid OpenAPI Key still work.
To keep using the device without a key, contact XGRIDS technical support: xgrids_tech_support@xgrids.com.
Confirm the authorization from a program
After activation, you can also confirm the authorization through the OpenAPI:
- Heartbeat:
OpenapiLicenseStateisactiveandOpenapiLicenseTextisAuthorized; see Interface Catalog · Status monitoring. - Authorization query:
openapi_licensereturns the authorization state and the remaining recording minutes. The remaining time in the App corresponds toremaining_min; for example, 24h 0m is 1440 minutes. For a permanent authorizationremaining_minis-1. See Interface Catalog · Query the OpenAPI authorization.
Once confirmed, leave openapi_key empty in the client; no key is needed any more.