Skip to content
Pushizo

Developers

Pushizo for developers

Integrate Pushizo into your product with SDKs, a documented REST API and signed webhooks.

index.html
<script src="https://api.pushizo.com/sdk-web/PushizoSDK.js" async></script>
<script>
  window.PushizoDeferred = window.PushizoDeferred || [];
  PushizoDeferred.push(async function (Pushizo) {
    await Pushizo.init({ appId: "YOUR_APP_ID", apiUrl: "https://api.pushizo.com" });
  });
</script>

Replace with your own app ID and API URL.

An SDK for every platform you use

Client SDKs subscribe devices and display notifications; server SDKs call the REST API from your own language.

Available today: npm packages @pushizo/web, @pushizo/node, @pushizo/react-native, @pushizo/capacitor and cordova-plugin-pushizo (0.1.0), the web script tag (/sdk-web/PushizoSDK.js), a Google Tag Manager Custom HTML tag, a WordPress functions.php snippet, the Go module, the Java SDK (Maven Central com.pushizo:pushizo-java 0.1.0), the Android SDK (com.pushizo:pushizo-android and pushizo-android-hms 0.1.0), the .NET SDK (NuGet Pushizo 0.1.0), the PHP SDK (Packagist pushizo/pushizo-php 0.1.0), the Flutter SDK (pub.dev pushizo_flutter 0.1.0), the Python SDK (PyPI pushizo 0.1.0), the Ruby SDK (RubyGems pushizo 0.1.0), the Unity package (OpenUPM com.pushizo.unity 0.1.0) and the REST API. The CocoaPods pod Pushizo 0.1.2 is on trunk. The only SDK marked “Coming soon” is the .NET MAUI package on NuGet.

Add the Web SDK with a script tag

The script is served from your API server and needs no package registry. Put the service worker file (PushizoSDKWorker.js) in your site's root directory.

index.html
<script src="https://api.pushizo.com/sdk-web/PushizoSDK.js" async></script>
<script>
  window.PushizoDeferred = window.PushizoDeferred || [];
  PushizoDeferred.push(async function (Pushizo) {
    await Pushizo.init({ appId: "YOUR_APP_ID", apiUrl: "https://api.pushizo.com" });
  });
</script>

Identify the user

Ask for permission, map the user to your own ID and add tags.

app.js
await Pushizo.Notifications.requestPermission();
await Pushizo.login("user_42");
Pushizo.User.addTag("plan", "pro");

REST API

Use a Bearer API key and an Idempotency-Key header so the same request is never processed twice.

  • The public API lives under /v1; authentication uses a Bearer API key.
  • Every endpoint is described in an OpenAPI document; a Postman collection is available for download.
  • The Idempotency-Key header prevents the same request from being processed twice.
  • Rate limits range from 20 to 2,000 requests per second depending on the plan.
  • Errors are returned in a consistent envelope with HS_-prefixed codes.
Send a notification with the REST API
curl -s -X POST "https://api.pushizo.com/v1/notifications"   -H "Authorization: Bearer $HS_API_KEY"   -H "Content-Type: application/json"   -H "Idempotency-Key: $(uuidgen)"   -d '{
    "app_id": "YOUR_APP_ID",
    "target": { "include_aliases": { "external_id": ["user_42"] } },
    "headings": { "en": "Hello" },
    "contents": { "en": "Hello from Pushizo" }
  }'

Webhooks and event streams

Every webhook carries a timestamp and an HMAC-SHA256 signature in the Pushizo-Signature header.

  • Every webhook carries an HMAC-SHA256 signature in the Pushizo-Signature header.
  • Failed deliveries are attempted 7 times in total at intervals from 1 minute to 24 hours; single or bulk replay is available.
  • Event streams are customized with filters and a Liquid body template.
Verify the webhook signature
import { createHmac, timingSafeEqual } from "node:crypto";

// Pushizo-Signature: t=<unix>,v1=<hex>; v1 = HMAC-SHA256(secret, t + "." + raw body)
export function verifyPushizoSignature(rawBody: string, header: string, toleranceSec = 300): boolean {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2) as [string, string]));
  const t = Number(parts.t);
  if (!parts.v1 || !Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = createHmac("sha256", process.env.HS_WEBHOOK_SECRET!).update(`${t}.${rawBody}`).digest("hex");
  const a = Buffer.from(expected, "hex");
  const b = Buffer.from(parts.v1, "hex");
  return a.length === b.length && timingSafeEqual(a, b);
}

MCP server for AI assistants

The Model Context Protocol server lets Claude Desktop and other MCP clients read your segment, campaign and analytics data and, with your approval, create drafts only. There are no send, schedule or delete tools.

  • list_segments, get_segment: segments and estimated audience
  • list_campaigns, get_campaign: campaigns and statistics
  • get_analytics_summary: overview KPIs
  • create_campaign_draft, create_segment_draft: drafts only (mcp:write)

Local stdio (npx -y @pushizo/mcp-server) or remote Streamable HTTP (/mcp); authentication with a scoped API key or OAuth 2.1 (PKCE).

claude_desktop_config.json
{
  "mcpServers": {
    "pushizo": {
      "command": "npx",
      "args": ["-y", "@pushizo/mcp-server"],
      "env": {
        "PUSHIZO_API_KEY": "hs_live_…",
        "PUSHIZO_API_URL": "https://api.pushizo.com",
        "PUSHIZO_APP_ID": "app_…"
      }
    }
  }
}

Related documentation

Setup guides for React, Vue and Angular apps, plus migration guides from Firebase and previous provider, are in the documentation.

Send your first message with Pushizo

Create your account, add the SDK and send your first notification to a test device. New organizations get a 14-day trial with Starter plan limits.