Produk Bird
Sepuluh permukaan. Satu platform. Bentuk yang sama.
Email, Mailbox, SMS, Voice, WhatsApp, Verify, Lookup, RCS, Push, dan Realtime — masing-masing API kelas satu. Auth yang sama, idempotensi yang sama, webhook yang sama, format error yang sama. Pelajari satu, Anda menguasai semuanya.
Semua produk. Sepuluh permukaan, satu SDK.
Email. API email untuk developer yang juga mengirim seluruh pesan lainnya.
await bird.email.send({
to: ["alex@example.com"],
subject: "Welcome to Bird",
html: "<p>You're in. Let's ship.</p>",
});Mailbox. API Mailbox untuk agen yang menjawab email mereka sendiri.
curl -X POST https://us1.platform.bird.com/v1/email/mailboxes \
-H "Authorization: Bearer $BIRD_API_KEY" \
-d '{"domain": "inbox.ai", "receive_policy": "open"}'
{
"id": "mbx_01krdgeqcxet5s7t44vh8rt9mg",
"address": "k7mq3vx2npr5wcj4tzh6@inbox.ai",
"state": "active"
}
SMS. API SMS untuk developer yang benar-benar perlu mengirim pesan.
await bird.sms.send({
to: "+15005550006",
text: "Your code is 847291. Expires in 10 min.",
category: "authentication",
});Voice. Voice yang dapat diprogram dalam JSON. Panggilan, IVR, rekaman, TTS.
await bird.voice.calls.create({
to: "+15005550010",
from: "+14155550199",
flow: [
{ say: "Your order is confirmed." },
],
});WhatsApp. WhatsApp Business API, tanpa birokrasi BSP yang berbelit.
await bird.whatsapp.send({
to: "+15005550006",
type: "text",
text: { body: "Order confirmed! 🎉" },
});Verify. API OTP untuk developer yang butuh kode sampai ke tujuan.
await bird.verify.verifications.create({
to: { phone_number: "+15005550006" },
});
// check by target — no id to store
await bird.verify.verifications.check({
to: { phone_number: "+15005550006" }, code: userCode,
});Lookup. Inteligensi nomor telepon: jenis saluran, operator, sinyal penipuan.
const { lineType, carrier, fraud } =
await bird.lookup.get("+15005550006");RCS. RCS Business Messaging — saudara SMS yang lebih menarik.
await bird.rcs.send({
to: "+15005550006",
text: "Your order shipped! 📦",
suggestions: [
{ type: "openUrl", text: "Track it", url },
],
});Push. Notifikasi push untuk iOS, Android, dan web.
await bird.push.send({
to: { deviceToken },
notification: {
title: "Order shipped!",
body: "Your package is on its way.",
},
});Realtime. Pub/sub terkelola melalui WebSocket. Subscribe, publish, skalakan.
await bird.realtime.publish({
channel: "orders",
event: "order.shipped",
data: { orderId, status: "shipped" },
});Setiap produk di atas menggunakan satu model auth, satu kontrak idempotensi, satu format error, satu kontrak webhook, satu skema cursor pagination. Pelajari satu, Anda menguasai semuanya.
/ Auth
/ Idempotency
/ Errors
/ Webhooks
/ Pagination
/ Typed IDs