Bird Products
नौ surfaces. एक platform. एक जैसी shape.
Email, SMS, Voice, WhatsApp, Verify, Lookup, RCS, Push, और Realtime — हर एक first-class API। वही auth, वही idempotency, वही webhooks, वही error envelope। एक सीख लिया, तो सब सीख लिए।
सभी products. नौ surfaces, एक SDK.
Email. उन developers के लिए email API जो बाकी message भी ship करते हैं।
await bird.email.send({
to: ["alex@example.com"],
subject: "Welcome to Bird",
html: "<p>You're in. Let's ship.</p>",
});SMS. उन developers के लिए SMS API जिन्हें वाकई ship करना है।
await bird.sms.send({
to: "+15005550006",
text: "Your code is 847291. Expires in 10 min.",
category: "authentication",
});Voice. JSON में programmable voice। Calls, IVR, recording, TTS।
await bird.voice.calls.create({
to: "+15005550010",
from: "+14155550199",
flow: [
{ say: "Your order is confirmed." },
],
});WhatsApp. WhatsApp Business API, बिना BSP की भागदौड़ के।
await bird.whatsapp.send({
to: "+15005550006",
type: "text",
text: { body: "Order confirmed! 🎉" },
});Verify. उन developers के लिए OTP API जिन्हें codes का पहुँचना जरूरी है।
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. Phone number intelligence: line type, carrier, fraud signals।
const { lineType, carrier, fraud } =
await bird.lookup.get("+15005550006");RCS. RCS Business Messaging — SMS का ज़्यादा खूबसूरत भाई।
await bird.rcs.send({
to: "+15005550006",
text: "Your order shipped! 📦",
suggestions: [
{ type: "openUrl", text: "Track it", url },
],
});Push. iOS, Android, और web के लिए push notifications।
await bird.push.send({
to: { deviceToken },
notification: {
title: "Order shipped!",
body: "Your package is on its way.",
},
});Realtime. WebSockets पर hosted pub/sub। Subscribe करें, publish करें, scale करें।
await bird.realtime.publish({
channel: "orders",
event: "order.shipped",
data: { orderId, status: "shipped" },
});ऊपर दिया गया हर product एक ही auth model, एक idempotency contract, एक error envelope, एक webhook contract, एक cursor pagination scheme साझा करता है। एक सीख लिया, तो सब सीख लिए।
/ Auth
/ Idempotency
/ Errors
/ Webhooks
/ Pagination
/ Typed IDs