Example: Zapier Integration
This guide will show you how to integrate WAVER OS API with Zapier Webhooks, allowing you to create vouchers, remove users, fetch data, and automate actions using API requests.
Requirements
- API Access: Enabled POST & GET methods in Admin Panel > Integrations > API Access.
- API Key: Copy from settings.
- API Cloud Endpoint: Copy from settings.
Eg.: https://xxxxxxxxxx.w-router.com/api/
- Network Access: Ensure the HTTP API is reachable by Zapier (adjust any firewall if needed).
- Zapier Account: Free or paid, with Webhooks by Zapier enabled.
- Webhook Setup – Create POST (send data) or GET (fetch data) requests.
1. Ensure API Access & Configuration
Before setting up Zapier, verify that your API Access is configured correctly:
-
Enable API Access:
- Log in to WAVER OS Admin Panel.
- Navigate to Integrations > API Settings
- Ensure Enable API POST Method and Enable API GET Method are turned ON.
-
Choose the API Endpoint:
- Secure Cloud API Endpoint (recommended for encrypted requests - this requires Cloud access to be enabled.):
-
Get Your API Key:
- Copy the API Key from settings (DO NOT share this key publicly).
2. Create a Zap in Zapier
- Log in to Zapier (https://zapier.com/).
- Click Create a Zap.
- Choose Webhooks by Zapier as the Trigger App.
3. Sending API Requests to Waver Gateway
To send data (e.g., create vouchers), you need a POST request.
Example: Create a New Voucher
-
In Zapier, choose Webhooks by Zapier.
-
Select POST.
-
In the URL field, enter:
-
In the Payload Type, select Form.
-
In the Data Section, add the following key-value pairs:
api-key
→ Your API Keyaction
→create_voucher
username
→[optional]
(leave empty for auto-generation)passcode
→[optional]
(leave empty for auto-generation)valid_for
→1 day
(or any valid option)
-
Headers (Optional):
Content-Type: application/x-www-form-urlencoded
-
Click Test & Review.
If successful, Zapier will receive a response like:
{"username":"test123","passcode":"abcd1234","valid_for":"1 day"}
4. Retrieving Data from Waver Gateway
If you want to fetch data (e.g., list of active guests), use a GET request.
Example: Fetch Active Guest Users
- Create a New Zap.
- Choose Webhooks by Zapier.
- Select GET.
- In the URL field, enter:
- Click Test & Review.
If successful, Zapier will receive a response like:{"logins": "user1@example.com","address": "192.168.0.200","mac-address": "A1:B2:C3:D4:E5:F6","uptime": "9h12m45s","idle-time": "2h30m10s","bytes-out": "1056738924","bytes-in": "87456321"},
You can Explore additional actions and user data retrieval options in API Access with Examples.
5. Automating Actions
Now that you have your API integrated, you can:
- Trigger an email when a new voucher is created.
- Store API responses in Google Sheets for reporting.
- Send Slack notifications when a new guest logs in.
By using Zapier Webhooks, you can automate voucher creation, monitor guest activity, fetch stored user data and integrate your WAVER Gateway with various applications.