Skip to content
Get started
Esc
Quickstart

Getting started

Updated 4 December 2026

The fastest way

Want it working right away? Copy the prompt into your coding agent. It reads these docs and writes the integration for you.

Works in

Prefer to do it yourself? Five steps.

1. Get your key

Sign up: your first workspace gets a test key, shown once after you confirm your email. Copy it then, or create another under API keys. Keep it in an environment variable, never in code:

Terminal
export AIRBOX_API_KEY=your_key

2. Install the SDK

Add the SDK for your stack. SDKs has a runnable example for each.

Code language
npm install @airboxhq/api

3. Send a message

Code language
import { Airbox } from "@airboxhq/api";

const client = new Airbox(process.env.AIRBOX_API_KEY);

const { data, error } = await client.messages.sendText({
  to: "+77011234567",
  body: "Hello! Your order #1042 is ready, and you can pick it up today until 8 pm.",
  channel: "whatsapp",
}, { idempotencyKey: "order-1042" });

if (error) {
  throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}

console.log(data);

4. Receive replies

Set your webhook address on your account's Webhook page. Each customer message arrives there as a signed message.received event. Check the signature and answer at once:

Code language
// npm install express standardwebhooks
import express from "express";
import { Webhook } from "standardwebhooks";

const webhook = new Webhook(process.env.WEBHOOK_SECRET);
const app = express();

app.post("/webhooks", express.raw({ type: "application/json" }), (req, res) => {
  let event;

  try {
    event = webhook.verify(req.body, req.headers);
  } catch {
    return res.sendStatus(400);
  }

  res.sendStatus(200);
  console.log(event.type, event.workspace.id, event.data);
});

app.listen(3000);

Then answer the customer with ⁠POST /v1/messages, to taken from data.from. See Webhooks.

5. Build before you connect

Until your client connects a number, your messages go to a simulator, so the whole integration can be built and tested first. See Test mode.