API keys
Create scoped, time-limited and IP-restricted API keys so your own software can reach your Hotspotly data securely, watch their usage and revoke them.
An API key lets a system such as your hotel software, CRM or reporting tool read your Hotspotly data without a panel password. Each key can only do what you select, only works from the IP addresses you allow and switches itself off when it expires.
Before you start
- Your package must include the API access module and a per-minute request allowance. Otherwise the screen is locked or shows an "API disabled" notice.
- Only the account owner can create and revoke keys.
- A key reads data on your behalf: give it only to systems you trust.
Creating a key
- On the API keys screen press New key.
- Give the key a recognisable name (for example "Hotel ERP").
- In Permissions select only the actions you need. You cannot give a key an action you cannot perform in the panel yourself.
- Optionally limit the key to a location. A location-limited key cannot reach account-wide data such as access log records, consents, vouchers or guest identity.
- Enter your system's outgoing IP addresses under Allowed IP addresses (for example
203.0.113.0/24). Left empty, the key works from any IP; fill it in whenever you can. - Choose the lifetime (at most 365 days) and press Create.
The key is shown only once. Copy it straight away into your system's secret settings. Hotspotly does not keep the key itself; if you lose it, create a new one.
Guest identity permission
Guest lists are masked in the API. Unmasked phone numbers and e-mail addresses need the
separate guest_pii permission. It is off by default, only the account owner can grant it and its
use is logged as personal-data access. It only works while the person who created the key is
still the account owner. Do not grant it unless you really need it.
Using a key
Send the key in the Authorization header:
Possible responses:
- 401: the key is wrong, expired or revoked.
- 403 IP_NOT_ALLOWED: the request came from outside the allowed IP list.
- 403 SCOPE_DENIED: the key lacks the permission for this action.
- 429: the per-minute allowance is used up; wait for the time in the
Retry-Afterheader.
What a key can do
All addresses start with /api/public/v1. Each needs the permission shown in brackets.
GET /reports/visitsand/reports/visits/locations(reports): the same visit figures as the Visit analytics screen, with the same privacy threshold.GET /sessions/live(sessions; the same sessions the dashboard counts as active) andPOST /sessions/{id}/disconnect(drop the session on the router).GET /guestsand/guests/{id}(guests, masked);POST /guests/{id}/unmask(guest identity, reason required).GET /consents?identityId=and/consents/events(consents).GET /hotspots(hotspots) andGET /devices/{id}/status(devices).POST /vouchers(create codes; they appear under Voucher codes with a "Public API" badge),POST /vouchers/redeemandPOST /coupons/redeem(use a code for a device).GET /log5651/eventsand/log5651/sessions(access log records, masked; the same rows as the Access logs screen);POST /log5651/exports(export),GET /log5651/exports/{id}(status) andPOST /log5651/exports/{id}/link(single-use download link, valid for 5 minutes). Exports started through the API show an "API" badge in the panel; only that key can download the file.GET /local-usersand/local-users/{id}(local users, masked; the username accounts on the Users screen);POST /local-users(create; if you omit the password one is generated and shown only in that response),PATCH /local-users/{id},POST /local-users/{id}/disable,/enableand/reset-password(optional SMS / e-mail delivery; SMS uses credit).GET /profiles(speed profiles) andPUT /local-users/{id}/profile(assign a profile).GET /hotspots/{id}/occupancy(occupancy: open sessions and devices right now).
POST /local-users is subject to two optional caps (the customer cap and the cap of the team member who
created the key). When a cap is full the request returns 409 CONFLICT and details[0].reason is
LOCAL_USER_CUSTOMER_CAP or LOCAL_USER_MEMBER_CAP. If the key's creator is no longer an active team
member, the member cap is not applied, but the customer cap still is. The user count on your package is
not one of these caps: it is how many users can be online at the same time and it does not stop you from
creating accounts through the API (see Hotspot users).
Every endpoint's fields, error codes and examples are on the /developers page of your panel
address (OpenAPI 3.1 document: /api/public/v1/openapi.json).
Lists return 50 rows by default; follow nextCursor for the next page. For requests that create
or change something, send an Idempotency-Key header: if you repeat the request with the same
key within 24 hours, you get the first answer back instead of a second batch of codes.
Monitoring and revoking
The list shows when and from which IP address each key was last used. The Usage button shows successful, rejected and rate-limited requests for the last 14 days. If you see suspicious use, press Revoke: the key stops working immediately and cannot be re-enabled.
Keys belong to your account, not to the person who created them: a key keeps working even after the teammate who created it leaves. When a teammate leaves, revoke the keys they knew and create new ones.
Connected AI apps (MCP)
You can connect MCP-compatible AI assistants such as Claude Desktop, Cursor or ChatGPT from the
Connected AI apps (MCP) section at the bottom of the API keys screen. Creating an app
issues a bearer token shown only once together with a ready-to-copy /api/mcp Streamable HTTP
configuration snippet.
- Limited to 10 tools:
vouchers_list,vouchers_search,vouchers_create,vouchers_update,vouchers_delete,local_users_list,local_users_search,local_users_create,local_users_updateandlocal_users_delete. Bulk guest personal-data export is not exposed over MCP, and local-user responses are always masked. - Two-step explicit confirmation:
vouchers_update,vouchers_delete,local_users_updateandlocal_users_deletedo not mutate data on the first call; instead they return a preview and a single-useconfirmationTokenvalid for 5 minutes. Applying the change requires re-calling the same tool with bothconfirmed: trueand that token. - Immediate revocation and logging: Every tool invocation is written to API usage logs and the account audit trail. Revoking either the connected AI app or its linked API key cuts off MCP access immediately.