Skip to main content

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.

image.png


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:

  1. 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.


  2. Choose the API Endpoint:

    • Secure Cloud API Endpoint (recommended for encrypted requests - this requires Cloud access to be enabled.):
      Eg.: https://xxxxxxxxxxxx.w-router.com/api/

     

  3. Get Your API Key:

    • Copy the API Key from settings (DO NOT share this key publicly).

2. Create a Zap in Zapier

  1. Log in to Zapier (https://zapier.com/).
  2. Click Create a Zap.
  3. 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

  1. In Zapier, choose Webhooks by Zapier.

  2. Select POST.

  3. In the URL field, enter:

    https://xxxxxxxxxxxx.w-router.com/api/

  4. In the Payload Type, select Form.

  5. In the Data Section, add the following key-value pairs:

    • api-keyYour API Key
    • actioncreate_voucher
    • username[optional] (leave empty for auto-generation)
    • passcode[optional] (leave empty for auto-generation)
    • valid_for1 day (or any valid option)

  6. Headers (Optional):

    • Content-Type: application/x-www-form-urlencoded

  7. 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

  1. Create a New Zap.
  2. Choose Webhooks by Zapier.
  3. Select GET.
  4. In the URL field, enter:

    https://xxxxxxxxxxxx.w-router.com/api/.com/api/?api-key=YOUR_API_KEY&action=get_active_guests
  5. 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.