Produk Bird
Sembilan layanan. Satu platform. Bentuk yang sama.
Email, SMS, Voice, WhatsApp, Verify, Lookup, RCS, Push, dan Realtime — masing-masing merupakan API kelas satu. Autentikasi sama, idempotensi sama, webhook sama, format error sama. Pelajari satu, Anda sudah menguasai semuanya.
Semua produk. Sembilan layanan, 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>",
});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.",
});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