Skip to content
Hotspotly
  • Features
  • Solutions
  • Docs
  • Pricing
  • Blog
  • About
  • Contact
Log inGet started
/

Getting started

  • How Hotspotly works
  • Set up your first hotspot (end to end)
  • Setup steps

Network devices

  • MikroTik RouterOS v7 (WireGuard)
  • MikroTik RouterOS v6.49 (L2TP/IPsec)
  • Guest network and hotspot server on MikroTik
  • Apply to router and compliance check
  • Staff Wi-Fi certificate authority
  • Passpoint chain policy
  • Fortinet FortiGate
  • Sophos Firewall (SFOS)
  • Zyxel USG FLEX / ATP
  • Palo Alto Networks (PAN-OS)
  • Ruijie / Reyee (WiFiDog)
  • Ubiquiti UniFi
  • TP-Link Omada
  • Cisco Meraki
  • HPE Aruba Instant
  • Teltonika RutOS / CoovaChilli
  • Unlisted devices: external portal + RADIUS
  • Devices without a login page: syslog records
  • Automatic setup (non-MikroTik brands)
  • Other device brands

Login methods

  • Login methods overview
  • SMS verification: setup, providers and rules
  • Sign in with Google
  • Sign in with Facebook
  • Room number + surname: Mews
  • Room number + surname: Cloudbeds
  • Room number + surname: OPERA Cloud (OHIP)
  • Room number + surname: HotelRunner
  • Room number + surname: OPERA (on-prem) and Protel via FIAS
  • Custom PMS integration (webhook, developers)
  • Voucher codes
  • Click to connect
  • E-mail login
  • Shared password login
  • Device / MAC allowlist

Portal design

  • Login page designer
  • Page rules (SSID, time, device)
  • Ads (format, video, rotation, frequency)
  • Guest portal languages (22 languages, RTL)
  • WiFi QR poster

Daily operations

  • Guest users (hotspot accounts)
  • Sessions and disconnecting
  • Vouchers: advanced use and scenarios
  • Trusted devices (returning guests)
  • Login analytics and A/B testing
  • Speed profiles (bandwidth)
  • Ads and surveys
  • MikroTik tools (resources, interfaces, DHCP, queues, PPP, site blocking)
  • Access points and zones
  • Guest profiles and excluded guests
  • Visit analytics and branch comparison
  • Locations and inherited settings
  • Guest orders and payments

Access logs and data protection

  • Legal texts and guest consent
  • Consent records (consent ledger)
  • Access logs and legal export (Law 5651 in Türkiye)
  • Guest approval and blacklist
  • Personal data retention periods
  • Law 5651 in Türkiye: official requests, holds and exports
  • Analytics privacy measures
  • VERBİS registration helper (Türkiye)

Account and billing

  • Account security, password and two-factor authentication
  • Profile, package and payment
  • Free trial
  • Panel users and roles
  • Support tickets and support access
  • Notifications and email preferences
  • API keys
  • Webhooks
  • Routing rules
  • Live support chat
  • Enterprise OIDC Single Sign-On (SSO)
  • Business White-Label and Custom Domains

Reseller guide

  • Reseller guide: customers, package sales and credit
  • Reseller credit, groups and price calculation
  • Reseller referral link
  • Reseller company record and application

Platform administration

  • Admin panel overview
  • Customer and reseller management
  • Packages and prices
  • System settings
  • Blog and website texts
  • Server status and background jobs
  • Status page and incident notices
  • Sales requests and funnel
  • Activation funnel
  • Lifecycle messages
  • Platform agreements and legal pack
  • Audit logs
  • Access review
  • Notification center and email delivery
  • e-Invoice and e-Archive
  • Mail server, accounts and delivery health
  • Live support inbox and settings
  • Automatic translation in support channels

Troubleshooting / FAQ

  • Troubleshooting and FAQ
  • Troubleshooting devices
/

Getting started

  • How Hotspotly works
  • Set up your first hotspot (end to end)
  • Setup steps

Network devices

  • MikroTik RouterOS v7 (WireGuard)
  • MikroTik RouterOS v6.49 (L2TP/IPsec)
  • Guest network and hotspot server on MikroTik
  • Apply to router and compliance check
  • Staff Wi-Fi certificate authority
  • Passpoint chain policy
  • Fortinet FortiGate
  • Sophos Firewall (SFOS)
  • Zyxel USG FLEX / ATP
  • Palo Alto Networks (PAN-OS)
  • Ruijie / Reyee (WiFiDog)
  • Ubiquiti UniFi
  • TP-Link Omada
  • Cisco Meraki
  • HPE Aruba Instant
  • Teltonika RutOS / CoovaChilli
  • Unlisted devices: external portal + RADIUS
  • Devices without a login page: syslog records
  • Automatic setup (non-MikroTik brands)
  • Other device brands

Login methods

  • Login methods overview
  • SMS verification: setup, providers and rules
  • Sign in with Google
  • Sign in with Facebook
  • Room number + surname: Mews
  • Room number + surname: Cloudbeds
  • Room number + surname: OPERA Cloud (OHIP)
  • Room number + surname: HotelRunner
  • Room number + surname: OPERA (on-prem) and Protel via FIAS
  • Custom PMS integration (webhook, developers)
  • Voucher codes
  • Click to connect
  • E-mail login
  • Shared password login
  • Device / MAC allowlist

Portal design

  • Login page designer
  • Page rules (SSID, time, device)
  • Ads (format, video, rotation, frequency)
  • Guest portal languages (22 languages, RTL)
  • WiFi QR poster

Daily operations

  • Guest users (hotspot accounts)
  • Sessions and disconnecting
  • Vouchers: advanced use and scenarios
  • Trusted devices (returning guests)
  • Login analytics and A/B testing
  • Speed profiles (bandwidth)
  • Ads and surveys
  • MikroTik tools (resources, interfaces, DHCP, queues, PPP, site blocking)
  • Access points and zones
  • Guest profiles and excluded guests
  • Visit analytics and branch comparison
  • Locations and inherited settings
  • Guest orders and payments

Access logs and data protection

  • Legal texts and guest consent
  • Consent records (consent ledger)
  • Access logs and legal export (Law 5651 in Türkiye)
  • Guest approval and blacklist
  • Personal data retention periods
  • Law 5651 in Türkiye: official requests, holds and exports
  • Analytics privacy measures
  • VERBİS registration helper (Türkiye)

Account and billing

  • Account security, password and two-factor authentication
  • Profile, package and payment
  • Free trial
  • Panel users and roles
  • Support tickets and support access
  • Notifications and email preferences
  • API keys
  • Webhooks
  • Routing rules
  • Live support chat
  • Enterprise OIDC Single Sign-On (SSO)
  • Business White-Label and Custom Domains

Reseller guide

  • Reseller guide: customers, package sales and credit
  • Reseller credit, groups and price calculation
  • Reseller referral link
  • Reseller company record and application

Platform administration

  • Admin panel overview
  • Customer and reseller management
  • Packages and prices
  • System settings
  • Blog and website texts
  • Server status and background jobs
  • Status page and incident notices
  • Sales requests and funnel
  • Activation funnel
  • Lifecycle messages
  • Platform agreements and legal pack
  • Audit logs
  • Access review
  • Notification center and email delivery
  • e-Invoice and e-Archive
  • Mail server, accounts and delivery health
  • Live support inbox and settings
  • Automatic translation in support channels

Troubleshooting / FAQ

  • Troubleshooting and FAQ
  • Troubleshooting devices
  1. Documentation
  2. Login methods

Custom PMS integration (webhook, developers)

Your hotel system sends check-in, check-out and update events to Hotspotly as HMAC-signed webhooks; guests connect with their room number and last name.

DeveloperLast updated: 2026-11-07Open in panel
On this page
  • Before you start
  • 1. Enable the integration and choose the provider
  • 2. Copy the webhook address
  • 3. Rotating the webhook key
  • 4. Sign your requests
  • Node.js example
  • bash (curl + openssl) example
  • 5. Event bodies
  • check-in
  • check-out
  • update
  • 6. Responses
  • 7. Turn the method on in the login page
  • 8. Verify
  • Troubleshooting
  • Security and privacy
  • Next steps

Use this to connect a hotel system that has no ready-made connector (your own software, an integrator or a middleware layer). With Custom PMS (webhook) selected as the provider, Hotspotly does not query the hotel system. The hotel system pushes stay data itself:

Event When to send Result
check-in The guest checks in The stay opens; the guest can connect with room no. + last name
check-out The guest checks out The stay closes; open sessions are disconnected
update Room, dates or status change The stay is updated or closed (cancellation, no-show)

On the login page the guest picks Room number (PMS), then types the room number and last name. Hotspotly matches them against the latest events.

Who is this guide for?

Steps 1–3 are done in the panel by the hotel or business manager. The signed requests in step 4 are written by the team that builds or integrates the hotel system.

Before you start

  • An account that can sign in to the customer panel. Resellers and admins find the same card on the customer's PMS screen.
  • Your hotspot is set up and its login page has been applied to the router: Portal provisioning.
  • On the hotel side: a server that can make outbound HTTPS (443) requests, and a language or tool that can compute HMAC-SHA256 (Node.js, PHP, Python, .NET, openssl …).
  • The clock on the hotel system's server must be correct (NTP). The signed timestamp may differ from the server clock by at most 5 minutes.
  • No extra router ports or firewall rules are needed. Requests go straight from the hotel system to the Hotspotly API.
  • Your package includes the Hotel PMS integration module. If it does not, the method row in the login page designer shows Unavailable with "This method is not included in your package." and saving its settings is refused, and the method is not offered on the guest page. Upgrade with Upgrade on your dashboard (or the Upgrade package button on a locked card), or ask your reseller.

1. Enable the integration and choose the provider

  1. In the panel, open Integrations → PMS and connectors and scroll to the Hotel Automation Integration (PMS) card.
  2. Tick Enable hotel automation integration.
  3. In PMS Provider, choose Custom PMS (webhook).
  4. In Default Hotspot, choose the hotspot guests will connect to.
  5. Press Refresh next to API Key (Authentication). The field fills with a random key. Copy it with Copy and store it somewhere safe.
  6. Under Guest User Settings, set the profile type, data and time limits, and Device Limit.
  7. Press Save Integration Settings.

With the custom provider, the API key and the webhook key are the same value. After saving, the key is shown masked (••••) and cannot be viewed in full again, so copy it before you save.

If you change the provider later

The API key must be entered again whenever the provider changes. If you are switching from another provider to the custom integration, do not save without generating a new key in step 5.

2. Copy the webhook address

After saving, the Webhook address and key section appears on the same card.

The value in Webhook address is a base address. The panel builds it from your installation's API address; do not type it by hand, use Copy. Its format is:

The hotel system sends each event to this address plus a suffix:

Event Method Address
Check-in POST <webhook-address>/check-in
Check-out POST <webhook-address>/check-out
Update POST <webhook-address>/update

Hand the address and key to your developers over a secure channel (see Security and privacy).

3. Rotating the webhook key

If the key has leaked or someone has left the team, generate a new one:

  1. In the Webhook address and key section, press Generate new webhook key.
  2. Confirm. The old key stops working immediately.
  3. Copy the value in the New webhook key box and enter it in the hotel system. This key is shown only once. Copy it into the sending system; the old key is no longer valid.

Rotating without losing events

Requests that arrive between the rotation and the moment the new key is entered in the hotel system get 401. If the hotel system queues and retries events that got 401, nothing is lost in that gap. Rotate outside busy check-in hours.

4. Sign your requests

Every request carries an HMAC-SHA256 signature computed with the webhook key. Unsigned or wrongly signed requests are not processed.

Header Value
Content-Type application/json
X-Hotspotly-Timestamp When the request is sent, as a Unix timestamp in seconds
X-Hotspotly-Signature sha256= + the signature as lowercase hex (64 characters)

The signed string joins three parts with dots:

  • <timestamp>: exactly the value of the X-Hotspotly-Timestamp header.
  • <path>: the path of the request URL, without the query string. Example: /api/webhooks/pms/<customer-id>/check-in. The signature is bound to the endpoint; a signature computed for check-in is not accepted on check-out.
  • <raw body>: exactly the bytes of the JSON you send (UTF-8). Do not reformat the body or add spaces or newlines after computing the signature.

Rules:

  • The timestamp may differ from the Hotspotly server clock by at most ±300 seconds.
  • Replay protection: if an accepted signature arrives a second time, the request gets 409; the first request has already been processed. A request that got 429 or 5xx is not counted as a replay and can be resent unchanged. If the tolerance window has passed, refresh the timestamp and recompute the signature.
  • If you ever need to send two different events to the same endpoint in the same second with byte-identical bodies, add a unique field (such as an event time or event ID) to the body; otherwise the second one counts as a replay.

Node.js example

Node.js 18 or later (built-in fetch and crypto):

bash (curl + openssl) example

For manual testing and debugging:

--data-binary sends the body unchanged; do not use -d. printf '%s' adds no trailing newline to the body, so use it instead of echo.

Legacy X-API-Key method

Older setups that send the key in plain text in an X-API-Key header are still accepted during the transition. This method is being deprecated: it has no timestamp and no replay protection, and requests start getting 401 once the platform administrator turns it off (it is off by default from 1 March 2027). Write new integrations with signatures only.

5. Event bodies

The body is a JSON object (at most 100 KB). Unknown fields are ignored.

check-in

Field Required Description
roomNumber Yes Room number, at most 20 characters. Spaces are removed and letters upper-cased (12a = 12A)
lastName Yes The guest's last name. The guest types this at login
firstName No Not stored
checkIn No ISO 8601 date-time. Defaults to the time the request arrives
checkOut Recommended ISO 8601. A date only (2026-10-19) means the end of that day, Istanbul time
reservationId Recommended Your reservation number, at most 128 characters. Links check-outs and updates to the stay
deviceLimit No Device limit for this stay, 1–20. Otherwise Device Limit from the panel

A second check-in with the same reservationId does not create a new stay; it updates the existing one. Only check-in can reopen a closed stay.

If you do not send checkOut

A stay without checkOut stays open for at most 14 days from check-in. If the check-out event never arrives, the guest's access is capped at that. Send checkOut whenever you can.

check-out

Without a reservationId, { "roomNumber": "204" } is also accepted; the open stay in that room is then closed. If the room has more than one open stay, the newest one stays open, which is why sending reservationId is safer.

After check-out the guest cannot log in again. If Auto Checkout: is ticked on the PMS card (the default), accounts linked to the stay are closed and open sessions are disconnected from the router. If it is not ticked, an open session lasts until the check-out time.

update

Same body as check-in, plus a status field:

status Effect
checked_in The stay is saved or updated as open
checked_out Closed, like a check-out
cancelled Cancellation: the stay closes and access is cut
no_show Treated like cancelled
Other / none Only the room and dates of an existing stay are updated

update never reopens a closed stay, so an old event that arrives out of order cannot restore access after check-out.

6. Responses

Successful requests return 200 with JSON. The guest's personal data is not echoed back.

A check-out response returns the number of closed stays (closed) instead of reservation. The message and error texts come from the server in Turkish; branch on the HTTP status and code, not on the text.

Code Meaning Retry?
200 Processed No
400 Body missing or invalid (e.g. lastName eksik, roomNumber veya reservationId gerekli) No; fix the body
401 Authentication failed (WEBHOOK_AUTH_FAILED) No; check the key, signature and clock
409 This signature was already accepted (WEBHOOK_REPLAY) No; the first request was processed
415 Signed request is not application/json No; fix Content-Type
429 Too many requests, or too many failed authentications Yes, after waiting
5xx Temporary server-side error Yes, with increasing back-off

401 is identical in every case: wrong customer ID, integration disabled, wrong key, broken signature or stale timestamp. The response does not tell you which; use the table below.

Limits: 300 authenticated requests per minute per customer. After 30 failed authentications from the same IP to the same customer within 15 minutes, that IP gets 429 for a while.

7. Turn the method on in the login page

  1. Hotspots → your hotspot → Design → Methods.
  2. If Room number (PMS) is not in the list, add it with Add method.
  3. Press Publish.

If the row shows the Unavailable badge and the note "The PMS integration is off; room number login is not shown on the page.", the integration box from step 1 is not ticked or was not saved.

8. Verify

  1. Send a check-in for a test room with the bash example (e.g. room 999, last name Test, checkOut tomorrow). The response must contain "ok": true and a reservation.
  2. In the panel, the Integration Logs list on Integrations → PMS and connectors must show the check-in as successful.
  3. Join the guest network with a phone, pick Room number (PMS), and type the room number and last name. You should get online.
  4. Send a check-out for the same reservation. The phone should be disconnected, and logging in again with the same details should be refused.

With the custom provider, the Test button only checks that a key is saved; it does not test requests from your hotel system. The steps above are the real test.

Troubleshooting

Symptom Likely cause Fix
"This method is not included in your package." on the method row, or saving the settings fails with 403 Your package does not include Hotel PMS integration; the server answers 403 ENTITLEMENT_REQUIRED Upgrade with Upgrade on the dashboard to a package with the module, or ask your reseller. Existing data is kept; the module opens within 1 minute.
Every request gets 401 Integration disabled, key not saved or rotated, or the address belongs to another customer Check the box on the profile is ticked; copy the address and key from the panel again
Some requests 401, others succeed The hotel server clock drifts (outside ±300 s) Enable NTP on the server; send the timestamp in seconds, not milliseconds
401 when testing by hand but fine in code (or the reverse) The signed body differs from the sent body (echo newline, curl -d, JSON reformatted) Use printf '%s' and --data-binary; sign the exact string you send
401 although the signature looks right The wrong path was signed: the full URL, the query string or a trailing / Sign only the path /api/webhooks/pms/<customer-id>/<event>
409 WEBHOOK_REPLAY The same signed request was sent twice; the first was processed Treat 409 as success in your retry logic
415 Content-Type is not application/json Add the header
429 Over 300 requests per minute, or the IP was temporarily limited after many 401s Fix the cause of the 401s first; resend later
400 lastName eksik / roomNumber eksik A required field is missing in a check-in or update body Complete the body using the table above
200 but "reservation": null The room number is longer than 20 characters or only spaces Send a shorter room code; a warning row appears in Integration Logs
The guest sees "Room number or last name is incorrect" No check-in arrived, the stay is closed, or the last name differs Look for the check-in in the logs; make sure the last name matches the hotel system
The guest is still online after check-out Auto Checkout: is not ticked, or check-out came with a different reservationId Tick the box and save; use the same reservationId for check-in and check-out
The method is missing from the login page Integration disabled, or the design was not published Go back to steps 1 and 7

Security and privacy

  • The webhook key is a password. Keep it out of source code, repositories and chat groups; store it in an environment variable or a secrets vault. If you suspect a leak, rotate it right away.
  • Hotspotly stores the key encrypted and shows it only masked in the panel.
  • Send only what login needs: room number, last name, dates and reservation number. Do not send e-mail addresses, phone numbers, ID or passport data.
  • The last name is not stored in plain text; only a one-way digest is kept for matching. The first name is not stored. Integration Logs records only the event type, reservation and room number; raw bodies are never written.
  • The guest's connection records are kept under Turkish Law 5651 in the same way as for every other login method. Make sure your privacy notice covers logging in with hotel stay data: Legal texts and guest consent.

Next steps

  • Login methods overview
  • Mews integration: if your hotel runs Mews, you do not need to write webhooks.
  • Cloudbeds integration

Related guides

  • Room number + surname: Mews
  • Login methods overview
  • Legal texts and guest consent

Related pages

  • Pricing
  • Supported network brands
  • WiFi capacity calculator
  • Solutions by industry
  • Contact
PreviousRoom number + surname: OPERA (on-prem) and Protel via FIASNext Voucher codes

On this page

  • Before you start
  • 1. Enable the integration and choose the provider
  • 2. Copy the webhook address
  • 3. Rotating the webhook key
  • 4. Sign your requests
  • Node.js example
  • bash (curl + openssl) example
  • 5. Event bodies
  • check-in
  • check-out
  • update
  • 6. Responses
  • 7. Turn the method on in the login page
  • 8. Verify
  • Troubleshooting
  • Security and privacy
  • Next steps
Hotspotly

Hotspotly is a guest WiFi, captive portal, access logging and data protection toolkit for hotels, cafés, retail, campuses, hospitals, offices and municipalities, with Law 5651 logs and KVKK tools for Türkiye. It works with MikroTik and devices from other brands.

Emailinfo@hotspotly.net

Product

  • Features
  • Pricing
  • Solutions
  • Integrations
  • Modules
  • Integration guides

Resources

  • Docs
  • Quick start
  • Developers
  • Blog
  • Sign in to the panel
  • Create an account

Company

  • About
  • Resellers and partners
  • Become a reseller
  • Contact

Trust and compliance

  • Security
  • Law 5651 (Türkiye)
  • KVKK (Türkiye)
  • Global compliance
  • Data regions

Related pages

  • Guest WiFi logging
  • MikroTik hotspot software
  • Hotel WiFi management
  • Captive portal
  • SMS WiFi login
  • WiFi voucher system
  • Social WiFi login
  • WiFi marketing
  • Hotspot software
  • WiFi capacity calculator
  • Log retention information
TürkçeEnglish

© 2026 Hotspotly. All rights reserved.