Web push REST API (v1)

Send a notification to one subscriber, record events from your backend, and manage websites, subscribers, segments, campaigns and flows over JSON. Available on Pro and Business.

Authentication and rate limits

Create a key under Dashboard, then API keys, and send it in the Authorization: Bearer swk_... header. Keys are read or read_write. POST requests accept an Idempotency-Key header so a retried request is never applied twice. Each key can make 120 requests a minute.

curl -sH "Authorization: Bearer swk_YOUR_API_KEY" \
  "https://superwicket.com/api/v1/me"

Endpoints

GET /api/v1/me scope: read

Get authenticated account, current plan, and monthly usage meters.

GET /api/v1/websites scope: read

List websites belonging to your account (paginated).

POST /api/v1/websites scope: read_write

Create a website and generate (or import) its VAPID key pair.

GET /api/v1/websites/{uid} scope: read

Retrieve a single website.

PATCH /api/v1/websites/{uid} scope: read_write

Update website settings or defaults.

DELETE /api/v1/websites/{uid} scope: read_write

Delete a website and its associated data.

POST /api/v1/websites/{uid}/verify scope: read_write

Queue installation verification of pixel tag and service worker.

GET /api/v1/websites/{uid}/pwa scope: read

Get PWA manifest settings and generated icon keys.

PUT /api/v1/websites/{uid}/pwa scope: read_write

Update PWA manifest configuration (requires pwa feature).

GET /api/v1/websites/{uid}/subscribers scope: read

List subscribers with status, country, device, and search filters.

GET /api/v1/websites/{uid}/subscribers/{suid} scope: read

Fetch a subscriber profile and custom parameters.

PATCH /api/v1/websites/{uid}/subscribers/{suid} scope: read_write

Merge custom parameters or mark subscriber as tester.

DELETE /api/v1/websites/{uid}/subscribers/{suid} scope: read_write

Delete a subscriber permanently.

GET /api/v1/websites/{uid}/subscribers/{suid}/logs scope: read

Retrieve delivery and event timeline for a subscriber.

POST /api/v1/websites/{uid}/subscribers/import scope: read_write

Import JSON array of push subscriptions.

GET /api/v1/websites/{uid}/subscribers/export scope: read

Export website subscribers as JSON.

GET /api/v1/websites/{uid}/statistics scope: read

Query analytics breakdowns (countries, browsers, os, devices, languages, optin, overview).

GET /api/v1/websites/{uid}/widgets scope: read

List opt-in widgets configured for a website.

POST /api/v1/websites/{uid}/widgets scope: read_write

Create a new opt-in widget.

GET /api/v1/websites/{uid}/segments scope: read

List saved audience segments.

POST /api/v1/websites/{uid}/segments/preview scope: read

Preview live subscriber count and 10 sample matches for rule JSON.

GET /api/v1/websites/{uid}/campaigns scope: read

List campaigns for a website.

POST /api/v1/websites/{uid}/campaigns scope: read_write

Create a campaign (optionally triggering immediate send).

POST /api/v1/websites/{uid}/campaigns/{cid}/send scope: read_write

Schedule or immediately launch a draft campaign.

POST /api/v1/websites/{uid}/campaigns/{cid}/cancel scope: read_write

Cancel a scheduled or in-progress campaign.

GET /api/v1/websites/{uid}/campaigns/{cid}/statistics scope: read

Get variant, button, country, and device breakdown for a campaign.

GET /api/v1/websites/{uid}/campaigns/{cid}/logs scope: read

Paginated delivery log for a campaign.

GET /api/v1/websites/{uid}/flows scope: read

List visual automation flows.

POST /api/v1/websites/{uid}/flows/{fid}/publish scope: read_write

Validate and publish a new flow version.

POST /api/v1/websites/{uid}/flows/{fid}/pause scope: read_write

Pause an active flow.

POST /api/v1/websites/{uid}/flows/{fid}/resume scope: read_write

Resume a paused flow.

GET /api/v1/websites/{uid}/flows/{fid}/statistics scope: read

Retrieve node-by-node funnel statistics for a flow.

GET /api/v1/websites/{uid}/recurring scope: read

List recurring campaigns.

GET /api/v1/websites/{uid}/rss scope: read

List RSS feed automations.

POST /api/v1/websites/{uid}/rss/{rid}/check scope: read_write

Queue an immediate RSS feed check.

POST /api/v1/websites/{uid}/personal scope: read_write

Send a 1-to-1 notification by subscriber UID or custom param lookup.

POST /api/v1/websites/{uid}/events scope: read_write

Record a server-side custom event for a subscriber and trigger matching flows.

GET /api/v1/handlers scope: read

List notification handlers (email, webhook, internal).

GET /api/v1/payments scope: read

List subscription payments and invoices.