API reference
Base URL: https://laasio.functual.com. Requests and responses are JSON; send Accept: application/json.
Times are ISO 8601 in UTC.
Machine-readable spec: OpenAPI 3.1.
| Endpoint | Auth | Used by |
|---|---|---|
GET /api/v1/lookup |
none (public values only) | Your software |
POST /api/v1/lookup |
none (public values only) | Your software, to activate an activation key or report client attributes |
POST /api/v1/deactivate |
none (public values only) | Your software, to leave an activation key |
POST /api/v1/clients/assign |
provisioning key | Your servers |
POST /api/v1/clients/renew |
provisioning key | Your servers |
POST /api/v1/activation-keys/{id}/… |
provisioning key | Your servers: devices/add, devices/remove, renew, lock, unlock, revoke |
Everything else (applications, licenses, limits, SKUs, clients, keys, reports) is managed in the console at my.functual.com.
Authentication
Section titled “Authentication”Server endpoints take your provisioning key in the X-API-Key header:
X-API-Key: lzk_…It’s in LaaSio → Settings. Keep it on your servers; see Provision after a sale.
GET /api/v1/lookup
Section titled “GET /api/v1/lookup”Returns the client’s signed license entries.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
org |
string, ≤ 32 | yes | Public organization ID, lzo_… |
client |
string, ≤ 255 | yes | Your client ID |
app |
string (UUID) | no | Only this application’s entries; enables automatic trials |
200 response
{ "data": [ { "clientId": "PC-123", "name": "av-realtime", "displayName": "Real-time Protection", "type": "Paid", "start": "2026-10-28T00:00:00Z", "end": "2027-10-29T00:00:00Z", "limits": { "devices": 25, "scans_per_day": null }, "issued": "2026-10-28T14:32:05Z", "keyVersion": 1, "key": "<base64 Ed25519 signature>"} ] }{"data": []} when the client holds nothing, or the organization, application or client is unknown.
Field meanings: Check licenses from your app. Signature:
Verify signatures.
Rate limit: 60 requests per minute per IP address; 429 above that.
POST /api/v1/lookup
Section titled “POST /api/v1/lookup”The lookup in a JSON body, with an activation key (keys never go in a URL) and/or client attributes. Same fields as the GET lookup, plus:
| Name | Type | Required | Description |
|---|---|---|---|
key |
string, ≤ 100 | no | The activation key the customer typed; case, spaces and dashes are ignored |
key_action |
renew |
no | Use the key as a renewal key for the key the device is on |
attributes |
object | no | Client attributes, {name: value}, stored for the application’s declared attributes; needs app. Values that don’t fit are skipped and never fail the request. See Report client attributes |
200 response: the lookup’s data, plus activation when a key was sent:
{ "data": [ … ], "activation": { "result": "activated", "reason": null, "message": null } }result is activated, moved, already_active, renewed or refused (then reason and message say why).
Reasons and rules: Sell activation keys. A refused key never fails the request.
Rate limits: as the lookup, plus 10 invalid keys per IP address per hour (reason: too_many_attempts).
POST /api/v1/deactivate
Section titled “POST /api/v1/deactivate”Takes the device off its activation key. Body: org, client and key, all required.
200 response: {"deactivation": {"result": "deactivated" | "refused", "reason": …, "message": …}}; reasons
key_invalid, not_on_key, too_many_attempts.
POST /api/v1/clients/assign
Section titled “POST /api/v1/clients/assign”Gives a client a SKU with a fresh term, creating the client if needed. Replaces the client’s current SKU for the same application.
Body
| Name | Type | Required | Description |
|---|---|---|---|
client_id |
string, ≤ 255, no spaces | yes | Your client ID |
sku |
string | yes | SKU code |
name |
string, ≤ 255 | no | Client label, used only on creation |
start |
date-time | no | Default: now |
end |
date-time | no | Default: start + SKU duration. Future, after start; not for perpetual SKUs |
Responses: 201 client created, 200 existing client. Body: {"data": <client>}.
POST /api/v1/clients/renew
Section titled “POST /api/v1/clients/renew”Extends the client’s term for a SKU it holds, by one SKU duration (even if lapsed), or to end.
Body
| Name | Type | Required | Description |
|---|---|---|---|
client_id |
string | yes | Your client ID |
sku |
string | yes | Code of the SKU the client holds |
end |
date-time | no | New end; later than the current end and in the future |
Responses: 200. Body: {"data": <client>}.
Activation key endpoints
Section titled “Activation key endpoints”POST /api/v1/activation-keys/{id}/<action> with the provisioning key, where {id} is the key’s ID:
| Action | Body | Effect |
|---|---|---|
devices/add |
client_id |
Puts a device on the key (rules as for activation; refused: 422 with error and reason) |
devices/remove |
client_id |
Takes a device off the key (422 if it isn’t on it) |
renew |
end (optional) |
Extends an activated key by one SKU duration, or to a later end |
lock / unlock |
Stops or resumes new activations; devices on the key keep working | |
revoke |
Revokes the key for good; its devices lose the license |
Responses: 200 with the key:
{ "data": { "id": "2d3e…", "key": "ABCDE-12345-FGHIJ-KLMNO", "key_hint": "LMNO", "status": "active", "sku": { "id": "7d20…", "code": "AV-PREMIUM-1Y", "name": "Antivirus Premium, 1 year", "application_id": "3f9c…" }, "max_devices": 5, "devices": 3, "starts_at": "2026-11-12T10:00:00Z", "ends_at": "2027-11-12T10:00:00Z", "locked_at": null, "revoked_at": null, "used_at": null, "renewed_key": null, "created_at": "2026-11-01T09:00:00Z", "updated_at": "2026-11-12T10:00:00Z"} }404 for an unknown key ID; 422 with error for an action the key’s state doesn’t allow (e.g. renewing a key
that was never activated).
The client object
Section titled “The client object”Returned by assign and renew.
{ "data": { "id": "9b2f…", "identifier": "PC-123", "name": "Acme HQ", "last_ip": "203.0.113.7", "last_location": { … }, "last_seen_at": "2026-10-28T14:32:05Z", "assignments": [ { "id": "c41a…", "application_id": "3f9c…", "application_name": "Antivirus", "sku_id": "7d20…", "sku_code": "AV-ANNUAL-25", "sku_name": "Antivirus, 1 year, 25 devices", "start": "2026-10-28T00:00:00Z", "end": "2027-10-29T00:00:00Z", "auto_provisioned": false, "activation_key": null } ], "expiry": { "status": "active", "date": "2027-10-29T00:00:00Z" }, "created_at": "2026-10-28T14:30:00Z", "updated_at": "2026-10-28T14:32:05Z"} }last_ip,last_location,last_seen_at: from the client’s latest lookup;nullbefore the first one.assignments: one per application;end: nullis perpetual;auto_provisionedistruefor an automatic trial;activation_keyis{"id", "key_hint"}when the assignment came from an activation key, elsenull.expiry: a summary across assignments.statusisexpired,expiring,active,perpetualornone;dateis the relevant end, ornull.
Errors
Section titled “Errors”Errors return JSON. Validation errors (422) list each field:
{ "message": "The sku field is required.", "errors": { "sku": ["The sku field is required."] } }Plan refusals (403) carry a readable error and a machine-readable code:
{ "error": "Plan limit reached: …", "code": "plan_limit", "limit": "active_clients" }| Status | Meaning |
|---|---|
401 |
Missing or invalid X-API-Key |
403 |
plan_limit (growth frozen) or a key that may not call this endpoint |
404 |
Unknown SKU code or activation key ID |
422 |
Invalid fields or an impossible renewal |
429 |
Rate limit exceeded |