Bird Products
Nove superfici. Una piattaforma. Stessa struttura.
Email, SMS, Voice, WhatsApp, Verifications, Lookup, RCS, Push e Flows — ognuno un'API di prima classe. Stessa autenticazione, stessa idempotenza, stessi webhook, stesso formato di errore. Impara uno, li conosci tutti.
Tutti i prodotti. Nove superfici, un solo SDK.
Email. L'API email per sviluppatori che inviano anche il resto del messaggio.
await bird.email.send({
to: ["alex@example.com"],
subject: "Welcome to Bird",
html: "<p>You're in. Let's ship.</p>",
});SMS. L'API SMS per sviluppatori che devono davvero rilasciare.
await bird.sms.send({
to: "+15005550006",
text: "Your code is 847291. Expires in 10 min.",
});Voice. Voce programmabile in JSON. Chiamate, IVR, registrazione, TTS.
await bird.voice.calls.create({
to: "+15005550010",
from: "+14155550199",
flow: [
{ say: "Your order is confirmed." },
],
});WhatsApp. L'API WhatsApp Business, senza il passaggio dal BSP.
await bird.whatsapp.send({
to: "+15005550006",
type: "text",
text: { body: "Order confirmed! 🎉" },
});Verifica. L'API OTP per sviluppatori che hanno bisogno che i codici arrivino.
const { id } = await bird.verifications.start({
to: "+15005550006",
channel: "sms",
});
await bird.verifications.check({ id, code: userCode });Lookup. Intelligence sui numeri di telefono: tipo di linea, operatore, segnali di frode.
const { lineType, carrier, fraud } =
await bird.lookup.get("+15005550006");RCS. RCS Business Messaging — il fratello più elegante degli SMS.
await bird.rcs.send({
to: "+15005550006",
text: "Your order shipped! 📦",
suggestions: [
{ type: "openUrl", text: "Track it", url },
],
});Push. Notifiche push per iOS, Android e web.
await bird.push.send({
to: { deviceToken },
notification: {
title: "Order shipped!",
body: "Your package is on its way.",
},
});Flows. Il runtime di workflow per la messaggistica multicanale.
await bird.flows.run(flowId, {
contact: { phone: "+15005550006" },
variables: { orderId, userId },
});Ogni prodotto sopra condivide un unico modello di autenticazione, un unico contratto di idempotenza, un unico formato di errore, un unico contratto webhook, un unico schema di paginazione a cursore. Impara uno, li conosci tutti.
/ Auth
/ Idempotency
/ Errors
/ Webhooks
/ Pagination
/ Typed IDs