All documentation

FreeKiosk Cloud public API

Read your fleet and act on it from your own scripts, Home Assistant, n8n, or an AI assistant.

Interactive API reference

Read your fleet and act on it from your own scripts, Home Assistant, n8n, or an AI assistant.

Keys

Create a key in Settings → API (organisation owners and admins). It is shown once: copy it then. Send it with every call:

Authorization: Bearer fko_…
  • Read only: devices, groups, alerts, statistics, commands and configs.
  • Read and write: also sends commands, renames devices, moves them between groups and edits their config.

A revoked key stops working at once. Your organisation may make 3,600 calls an hour, 600 of them writes, shared by all its keys and by the MCP server; past that the API answers 429 until the next hour starts. Settings → API shows how much of the hour you have used.

Errors

Every error is JSON, {"error": "…"}: 400 a bad value, 401 a missing or revoked key, 402 a feature your plan does not include, 403 a read-only key trying to write, 404 something that is not in your organisation, 429 too many calls.

Examples

# Fleet KPIs over 7 days: online, availability, alerts, commands
curl -H "Authorization: Bearer $FK_KEY" https://cloud.freekiosk.app/api/public/v1/stats

# Offline devices
curl -H "Authorization: Bearer $FK_KEY" "https://cloud.freekiosk.app/api/public/v1/devices?online=false"

# Reload the page on a device (write key)
curl -X POST -H "Authorization: Bearer $FK_KEY" -H "Content-Type: application/json" \
  -d '{"type": "reload"}' \
  https://cloud.freekiosk.app/api/public/v1/devices/DEVICE_ID/commands

GET /command-types lists every command and its parameters. A command is queued; the device picks it up within 30 seconds, and GET /commands/{id} gives its outcome.

MCP server (Claude, Cursor, n8n)

https://cloud.freekiosk.app/mcp, Streamable HTTP, with the same key in the Authorization header. A read key gets the read tools; a write key also gets send_command, send_group_command, update_device and update_device_config.

Claude Desktop or Claude Code (.mcp.json) and Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "freekiosk": {
      "type": "http",
      "url": "https://cloud.freekiosk.app/mcp",
      "headers": { "Authorization": "Bearer fko_…" }
    }
  }
}

Claude.ai connectors and some clients only take a URL with OAuth; with those, use the mcp-remote bridge: npx mcp-remote https://cloud.freekiosk.app/mcp --header "Authorization: Bearer fko_…".

n8n: add an MCP Client Tool node to an AI Agent, endpoint https://cloud.freekiosk.app/mcp, transport HTTP Streamable, authentication Bearer, with the key.

Home Assistant

# configuration.yaml
rest:
  - resource: https://cloud.freekiosk.app/api/public/v1/devices/DEVICE_ID
    headers:
      Authorization: !secret freekiosk_api_key
    scan_interval: 60
    sensor:
      - name: "Lobby tablet battery"
        value_template: "{{ value_json.battery_level }}"
        unit_of_measurement: "%"
        device_class: battery
    binary_sensor:
      - name: "Lobby tablet online"
        value_template: "{{ value_json.online }}"
        device_class: connectivity

rest_command:
  lobby_tablet_reload:
    url: https://cloud.freekiosk.app/api/public/v1/devices/DEVICE_ID/commands
    method: POST
    headers:
      Authorization: !secret freekiosk_api_key
    content_type: application/json
    payload: '{"type": "reload"}'

with freekiosk_api_key: "Bearer fko_…" in secrets.yaml.

Webhooks

Rather than polling, FreeKiosk can POST events to your URL (an n8n Webhook node, a Home Assistant webhook automation, your own backend). Set it up in Settings → Notifications → Webhook: URL, optional secret, and the events to send (all of them by default).

event When Payload
alert.created An alert is raised alert_id, alert_type, severity, message, device
device.offline A device stops answering (offline alert rule, after its delay) alert_id, device
device.online That device is back alert_id, device
command.completed A device reports a command's result, success or error command, device

Every payload also has occurred_at, organization_id, organization_name and dashboard_url. device has the same fields as in GET /devices, command the same as GET /commands/{id}. For example:

{
  "event": "command.completed",
  "occurred_at": "2026-10-17T09:12:03.512Z",
  "organization_id": "…",
  "organization_name": "Acme",
  "command": {"id": "…", "device_id": "…", "type": "reload", "params": {}, "status": "success",
              "result": {}, "error_message": null, "created_at": "…", "sent_at": "…",
              "completed_at": "…", "expires_at": "…"},
  "device": {"id": "…", "name": "Lobby", "online": true, "last_seen": "…", "battery_level": 87,
             "battery_charging": true, "group": null, "model": "…", "app_version": "…",
             "android_id": "…"},
  "dashboard_url": "https://cloud.freekiosk.app/dashboard/devices/…/"
}

With a secret, each request carries X-FreeKiosk-Signature: sha256=<hex>, the HMAC-SHA256 of the raw body with your secret. Compare it with your own before trusting the payload:

expected = 'sha256=' + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
assert hmac.compare_digest(expected, request.headers['X-FreeKiosk-Signature'])

Answer with a 2xx within 10 seconds. A failed call is not retried; you can see each delivery under Alerts → Settings. Expect new event types over time: ignore the ones you do not know.

n8n without MCP

An HTTP Request node, authentication Generic → Header Auth with name Authorization and value Bearer fko_…, on any endpoint below. For example a daily GET /stats sent to Slack or by email.

Endpoints

Method Path What it does
GET /api/public/v1/me Me
GET /api/public/v1/stats Stats
GET /api/public/v1/devices List Devices
GET /api/public/v1/devices/{device_id} Get Device
PATCH /api/public/v1/devices/{device_id} Update Device
GET /api/public/v1/devices/{device_id}/config Get Device Config
PATCH /api/public/v1/devices/{device_id}/config Update Device Config
GET /api/public/v1/devices/{device_id}/stats Device Stats
GET /api/public/v1/devices/{device_id}/commands Device Commands
POST /api/public/v1/devices/{device_id}/commands Send Command
GET /api/public/v1/devices/{device_id}/screenshots/latest Latest Screenshot
GET /api/public/v1/groups List Groups
POST /api/public/v1/groups/{group_id}/commands Send Group Command
GET /api/public/v1/alerts List Alerts
GET /api/public/v1/command-types Command Types
GET /api/public/v1/commands/{command_id} Get Command

The interactive reference, with the request and response of every endpoint, is at cloud.freekiosk.app/api/public/v1/docs, and the machine-readable description at openapi.json.