Skip to content

Use the API and webhooks

Create API keys to read your reviews, points, members, wishlists and wishlist alerts from your own tools, and get Wowsome events at your URL with signed webhooks.

Updated

The API lets your own tools, such as an ERP, a CRM, a data warehouse or a script, read your store's Wowsome data. Webhooks send our events to a URL of yours as they happen. Both are free on every plan.

To set them up, open Integrations in your Wowsome dashboard and scroll to API and webhooks.

API keys

  1. Under API keys, type a Key name, for example the tool that will use it, and click Create key.
  2. Copy the key. It starts with wow_ and is shown only once: we keep only a fingerprint of it.
  3. Click Done.

You can have up to 10 keys. Last used shows when each one was last used. Click Revoke to stop a key at once, for example when someone leaves or a tool is retired.

A key reads only your own store's data, and only reads: it can't change anything. Keep it as you would a password: the API returns shoppers' names and emails.

Reading your data

Send the key in the Authorization header:

curl https://wowsome.app/api/v1/reviews \
  -H "Authorization: Bearer wow_..."

X-Api-Key: wow_... works too.

PathWhat it returns
GET /api/v1/shopYour store and its installed apps
GET /api/v1/reviewsReviews. Filter with product_id or status (pending, published, hidden)
GET /api/v1/reviews/{id}One review
GET /api/v1/loyalty/membersLoyalty members and their balance. Filter with customer_id
GET /api/v1/loyalty/members/{id}One member
GET /api/v1/loyalty/members/{id}/transactionsA member's points history
GET /api/v1/memberships/membersMemberships with their plan. Filter with customer_id or status
GET /api/v1/memberships/members/{id}One membership
GET /api/v1/wishlistsWishlist items. Filter with customer_id
GET /api/v1/wishlists/productsThe most saved products, with how many shoppers saved each and their pending alerts. Use limit to choose how many
GET /api/v1/wishlists/listsShoppers' named lists, such as gift lists. Filter with customer_id
GET /api/v1/wishlists/alertsBack-in-stock and price-drop alerts. Filter with customer_id, product_id, kind (restock, price_drop) or status (pending, sent, cancelled)

customer_id is the number at the end of the customer's address in Shopify admin.

Answers are JSON, as {"data": ...}. Dates are in UTC.

Pages

Lists come oldest first, 50 at a time. Add limit (up to 100) for more. When there are more, the answer has a next_cursor: ask again with after= and that value. To pick up only what's new since your last sync, pass the last id you stored as after.

Errors and limits

  • 401: the key is missing, wrong or revoked.
  • 404: there's no such record, or the app isn't installed (app_not_installed).
  • 400: a filter has a value we don't know.
  • 429: more than 120 requests a minute with one key. Wait for the seconds in Retry-After.

Webhooks

  1. Under Webhooks, paste your Endpoint URL. It must start with https:// and be on the public internet.
  2. Choose the apps whose events it gets. If you choose none, it gets every event.
  3. Click Add endpoint and copy the signing secret. It starts with whsec_ and is shown only once.
  4. Click Send test to post a sample event to your URL.

You can add up to 10 endpoints. Turn off pauses one without deleting it.

Events

  • Reviews: review received, published, unpublished or deleted, review requested, reviewer rewarded, question received.
  • Wishlist: item added or removed, wishlisted item bought, wishlist alert sent.
  • Loyalty: member joined, points earned, points expiring, reward ready, reward redeemed, tier reached, referral completed.
  • Memberships: started, renewed, paused, resumed, canceled, payment failed, gift bought, gift voided.
  • Accounts: profile completed, store credit received, store credit expiring, account deletion requested.

Each post looks like this:

POST https://your-url
Content-Type: application/json
Wowsome-Signature: t=1767225600,v1=5f2c...e9
Wowsome-Event-Id: evt_123
Wowsome-Event-Type: review.published

{
  "id": "evt_123",
  "type": "review.published",
  "created_at": "2026-01-01T00:00:00Z",
  "shop": "your-store.myshopify.com",
  "data": { ... }
}

The id stays the same when we send an event again, so you can use it to skip duplicates.

Checking the signature

Check every post before you trust it. v1 is an HMAC-SHA256 of the time t, a dot and the raw body, signed with your endpoint's secret. Read the body as raw text before parsing it, since parsing and re-encoding the JSON changes it. Reject posts whose t is more than 5 minutes off, so an old post can't be replayed.

Node.js (Express):

import crypto from "node:crypto";
import express from "express";

const SECRET = process.env.WOWSOME_WEBHOOK_SECRET;

function verify(header, rawBody) {
  const parts = Object.fromEntries((header || "").split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;

  const expected = crypto.createHmac("sha256", SECRET).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 || "", "hex");
  return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}

const app = express();

app.post("/wowsome", express.raw({ type: "application/json" }), (req, res) => {
  const body = req.body.toString("utf8");
  if (!verify(req.get("Wowsome-Signature"), body)) return res.sendStatus(401);

  const event = JSON.parse(body);
  console.log(event.type, event.data);
  res.sendStatus(200);
});

app.listen(3000);

Ruby (Sinatra):

require "sinatra"
require "openssl"
require "json"

SECRET = ENV.fetch("WOWSOME_WEBHOOK_SECRET")

def verified?(header, raw_body)
  parts = header.to_s.split(",").to_h { |p| p.split("=", 2) }
  t = parts["t"].to_i
  return false if t.zero? || (Time.now.to_i - t).abs > 300

  expected = OpenSSL::HMAC.hexdigest("SHA256", SECRET, "#{t}.#{raw_body}")
  Rack::Utils.secure_compare(expected, parts["v1"].to_s)
end

post "/wowsome" do
  raw_body = request.body.read
  halt 401 unless verified?(request.env["HTTP_WOWSOME_SIGNATURE"], raw_body)

  event = JSON.parse(raw_body)
  logger.info "#{event["type"]} #{event["data"]}"
  status 200
end

Use a constant-time comparison, as both examples do, rather than ==.

Answering

Answer with any 2xx status within 10 seconds, then do the slow work afterwards. If your URL fails or doesn't answer, we try again, up to 8 times over about an hour and a half.

  • 410 Gone turns the endpoint off. Turn it on again on the same page.
  • 429 with Retry-After makes us wait that long before trying again.

Latest sends lists each post with its status. Click Resend to send one again. We keep this list for 30 days.

Still stuck? Write to hello@wowsome.app. We answer within one working day.