Unified messaging API
The best way to integrate WhatsApp and Instagram through a single API. Deliver messages at scale.
npm install @airboxhq/api
composer require airboxhq/airbox-php
pip install airboxhq
go get github.com/airboxhq/airbox-go
dotnet add package AirboxHQ
cargo add airboxhq
Integrate tonight
Install the SDK for your stack, add your key and send. The same call in every 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: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
console.log(data);
import { Airbox } from "@airboxhq/api";
const client = new Airbox(process.env.AIRBOX_API_KEY);
export async function POST() {
const { data, error } = await client.messages.sendText({
to: "+77011234567",
body: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
return Response.json(data);
}
import { Airbox } from "@airboxhq/api";
const client = new Airbox(process.env.AIRBOX_API_KEY);
const app = express();
app.post("/send-text", async (req, res) => {
const { data, error } = await client.messages.sendText({
to: "+77011234567",
body: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
res.json(data);
});
app.listen(3000);
import { Airbox } from "@airboxhq/api";
const client = new Airbox(process.env.AIRBOX_API_KEY);
const app = new Hono();
app.post("/send-text", async (c) => {
const { data, error } = await client.messages.sendText({
to: "+77011234567",
body: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
return c.json(data);
});
export default app;
import { Airbox } from "@airboxhq/api";
const client = new Airbox(process.env.AIRBOX_API_KEY);
export async function POST() {
const { data, error } = await client.messages.sendText({
to: "+77011234567",
body: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
return Response.json(data);
}
import { Airbox } from "@airboxhq/api";
const client = new Airbox(process.env.AIRBOX_API_KEY);
@Controller()
export class MessagesController {
@Post("send-text")
async sendText() {
const { data, error } = await client.messages.sendText({
to: "+77011234567",
body: "Your order is ready",
channel: "whatsapp",
});
if (error) {
throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
return data;
}
}
$client = new Airbox\Client(getenv('AIRBOX_API_KEY'));
$data = $client->messages->sendText([
'to' => '+77011234567',
'body' => 'Your order is ready',
'channel' => 'whatsapp',
]);
print_r($data);
use Airbox\Laravel\Facades\Airbox;
$data = Airbox::messages()->sendText([
'to' => '+77011234567',
'body' => 'Your order is ready',
'channel' => 'whatsapp',
]);
print_r($data);
namespace App\Controller;
use Airbox\Client;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
final class MessagesController
{
#[Route('/send-text', methods: ['POST'])]
public function sendText(Client $client): JsonResponse
{
$data = $client->messages->sendText([
'to' => '+77011234567',
'body' => 'Your order is ready',
'channel' => 'whatsapp',
]);
return new JsonResponse($data);
}
}
from airboxhq import Airbox
client = Airbox(api_key=os.environ["AIRBOX_API_KEY"])
data = client.messages.send_text(
to="+77011234567",
body="Your order is ready",
channel="whatsapp",
)
print(data)
from airboxhq import AsyncAirbox
async def main():
async with AsyncAirbox(api_key=os.environ["AIRBOX_API_KEY"]) as client:
data = await client.messages.send_text(
to="+77011234567",
body="Your order is ready",
channel="whatsapp",
)
print(data)
asyncio.run(main())
from airboxhq import AsyncAirbox
app = FastAPI()
client = AsyncAirbox(api_key=os.environ["AIRBOX_API_KEY"])
@app.post("/send-text")
async def send_text():
data = await client.messages.send_text(
to="+77011234567",
body="Your order is ready",
channel="whatsapp",
)
return data
from airboxhq import Airbox
client = Airbox(api_key=os.environ["AIRBOX_API_KEY"])
def send_text(request):
data = client.messages.send_text(
to="+77011234567",
body="Your order is ready",
channel="whatsapp",
)
return JsonResponse(data)
from airboxhq import Airbox
app = Flask(__name__)
client = Airbox(api_key=os.environ["AIRBOX_API_KEY"])
@app.post("/send-text")
def send_text():
data = client.messages.send_text(
to="+77011234567",
body="Your order is ready",
channel="whatsapp",
)
return data
import "github.com/airboxhq/airbox-go"
func main() {
client := airbox.NewClient(os.Getenv("AIRBOX_API_KEY"))
data, err := client.Messages.SendText(context.Background(), airbox.SendTextParams{
To: "+77011234567",
Body: "Your order is ready",
Channel: "whatsapp",
})
if err != nil {
panic(err)
}
fmt.Println(data)
}
using Airbox;
var client = new AirboxClient(Environment.GetEnvironmentVariable("AIRBOX_API_KEY"));
var data = await client.Messages.SendTextAsync(
new SendTextParams
{
To = "+77011234567",
Body = "Your order is ready",
Channel = "whatsapp",
});
Console.WriteLine(data);
using Airbox;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
var client = new AirboxClient(Environment.GetEnvironmentVariable("AIRBOX_API_KEY"));
app.MapPost("/send-text", async () =>
{
var data = await client.Messages.SendTextAsync(
new SendTextParams
{
To = "+77011234567",
Body = "Your order is ready",
Channel = "whatsapp",
});
return Results.Ok(data);
});
app.Run();
use airboxhq::Airbox;
use airboxhq::models::*;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Airbox::new(std::env::var("AIRBOX_API_KEY")?);
let data = client
.messages()
.send_text(SendText {
to: "+77011234567".into(),
body: "Your order is ready".into(),
channel: Some("whatsapp".into()),
..Default::default()
})
.await?;
println!("{data:#?}");
Ok(())
}
curl -X POST https://crm.fintelligence.kz/api/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+77011234567",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Your order is ready"
}
}'
http POST https://crm.fintelligence.kz/api/v1/messages \
"Authorization:Bearer YOUR_API_KEY" \
"Content-Type:application/json" \
<<< '{
"to": "+77011234567",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Your order is ready"
}
}'
wget --quiet --content-on-error --output-document=- \
--method=POST \
--header="Authorization: Bearer YOUR_API_KEY" \
--header="Content-Type: application/json" \
--body-data='{
"to": "+77011234567",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Your order is ready"
}
}' \
https://crm.fintelligence.kz/api/v1/messages
Replies come back to your webhook as one signed event from every channel. Webhooks
Build before you connect
Your test key is ready when you sign up. Write as a customer, answer from your code and get every webhook, all before a client connects a number.
- No number or Meta account needed
- The same checks and errors as a live key
- Nothing reaches real customers
Both channels, one signed event
WhatsApp and Instagram reach one address in one shape. Only channel and from tell them apart.
- Signed to the Standard Webhooks spec
- 8 tries over about 21 hours, each with the same
webhook-id - A receiver for every SDK language
- webhook-id:
- msg_01M8XNYR5WEH57NH5AJ15AQWRR
- webhook-timestamp:
- 1796292436
- webhook-signature:
- v1,Hq4Bk2TQ8mZt0rYpL7wXcE9sVnA3fUoJ1gKdR6yMbI0=
{
"type": "message.received",
"timestamp": "2026-12-03T10:07:16+00:00",
"workspace": {
"id": "01a22dc4-f206-7189-acf8-3ea008510a40",
"name": "Furniture Store"
},
"data": {
"id": "01a23b5f-60a2-737b-9134-1e68205dc691",
"contact_id": "01a22e11-2468-7201-b1f2-2fc6cca5b9aa",
"from": "+77011234567",
"name": "Aigerim",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Hi! Is the blue sofa still available?"
},
"received_at": "2026-12-03T10:07:16+00:00",
"free_text_until": "2026-12-04T10:07:16+00:00"
}
}
{
"type": "message.received",
"timestamp": "2026-12-03T10:07:16+00:00",
"workspace": {
"id": "01a22dc4-f206-7189-acf8-3ea008510a40",
"name": "Furniture Store"
},
"data": {
"id": "01a23b5f-60a2-737b-9134-1e68205dc691",
"contact_id": "01a22e11-2468-7201-b1f2-2fc6cca5b9aa",
"from": "1234567890123456",
"name": "Aigerim",
"channel": "instagram",
"type": "text",
"text": {
"body": "Hi! Is the blue sofa still available?"
},
"received_at": "2026-12-03T10:07:16+00:00",
"free_text_until": "2026-12-04T10:07:16+00:00"
}
}
Know what happened
Every request and every webhook in your account, with each try, its answer and the payload.
- Requests by key, status and time
- Undelivered events sent again in one click
- Kept 30 days
Costs in plain sight
One price per connected number or account. Meta bills each client's own card at its own rates, and every workspace shows what it spent.
- Nothing added to Meta's prices
- 1,000 replies a month free per number
- Every month by category, in tenge too
A workspace for each client
Run every client from one account and one integration. Each gets its own channels, key and logs, and never has to sign in.
- One webhook, each event naming its
workspace - A key works in its own workspace only
- Nothing to pay until a number or account connects
Ready for production
Connect by link
Clients connect their own number through Meta's signup. We're a verified Meta Tech Provider
Data residency
Messages, contacts and files in a Kazakh data centre
Secure by default
Hashed keys shown once, signed webhooks