Skip to content

Developers

A WhatsApp API that behaves the way you would design it.

Predictable REST. Real status codes. Idempotency on every send. Signed webhooks you can actually verify. Typed SDKs and an OpenAPI spec. Read the quickstart and send a message in five minutes.

01

Quickstart

Four steps to a live integration.

  1. 01

    Create an account and a session

    Sign up, open a session, and scan the QR in WhatsApp under Linked Devices. Your phone and WhatsApp Web keep working alongside it.

  2. 02

    Grab your API key

    From the dashboard, API keys. Keys are scoped and can be locked to a single session.

  3. 03

    Send a message

    One POST to /v1/sessions/:id/messages with an Idempotency-Key.

  4. 04

    Receive events

    Register an HTTPS webhook, verify the signature over the raw body, and you are live.

Verify a webhook
import crypto from 'node:crypto';

export function verify(req, secret) {
  const sig = req.headers['x-signature'];        // 'v1,sha256=<hex>'
  const ts  = req.headers['x-timestamp'];

  // Reject anything outside a 5-minute replay window.
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;

  const expected = 'v1,sha256=' + crypto
    .createHmac('sha256', secret)
    .update(ts + '.' + req.rawBody)              // RAW body, not re-serialized
    .digest('hex');

  return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}

Two things go wrong most often: hashing a re-serialized body instead of the raw bytes, and skipping the replay window. Both are handled above.

02

Honest comparison

WALayer vs the official WhatsApp Cloud API.

You already know the trade-off. Here it is written down, including the rows we lose.

Feature comparison between WALayer and the official WhatsApp Cloud API
 WALayerOfficial Cloud API
PricingFlat per-number, no per-message feePer-conversation billing
SetupScan a QR (minutes)Business verification + app review
Message templatesNot requiredRequired for business-initiated
24-hour reply windowNot applicableEnforced
GroupsFull send + adminNot supported
ChannelsSend supportedNot supported
Groups & communitiesCreate and manage by APINot supported
Terms-of-service standingUnofficial, and we say soSanctioned
Ban riskReal; mitigated + handled gracefullyNone beyond policy enforcement
Best forAutomation, bots, groups, cost-sensitive volumeRegulated, high-durability comms

If you need a guaranteed-durable, regulated channel, use the official API, and keep WALayer for everything it cannot do.

03

SDKs & libraries

Typed clients, an OpenAPI spec, and no-code nodes.

  • Node.js / TypeScript

    GA

    npm i @walayer/sdk

  • REST + OpenAPI

    GA

    walayer.com/docs/openapi.yaml

  • Python

    GA

    pip install walayer

  • PHP / Laravel

    GA

    composer require walayer/walayer

  • n8n / Make / Zapier

    GA

    Community + native nodes

Skip Meta approvals. Skip message fees. Skip the dropped messages.

Free developer sandbox, ready in minutes. No approvals, no templates, no per-message fees.

3-day free trial · connect in under 5 minutes · cancel anytime.