Setup
We guide every step.
Select the countries you want to reach. We supervise the brand and the sender each one requires. Then you can send.
- Select countries
- Apply for the brand
- Ready to send
By API or MCP
Or let your agent set it up.
The brand, its documents and the number, and any fix carriers ask for. You approve the price.
- Your agentCreates the brand
- Uploads the papersOpt-in screenshot, documents
- Orders the numberAfter you approve the price
- Ready to send
SMS
The same audience, by text.
The message they expect, the sender a country requires, and the wallet you already use for email.
A sign-in code
A code can go without a marketing opt-in. The number has to be on the contact, and it cannot be opted out.
Ready for pickup
The order is at the counter. A service text, same rule as the code.
A promotion
They opted in. You attest that consent. STOP is on the text.
A charge
A receipt, not a promotion. It goes out at any hour. STOP still applies.
Senders and brands
A number or a Sender ID, and the brand a country asks for before you can send.
Consent
Marketing needs the opt-in they already gave you. A code does not.
One contact
Email and phone live on the same person. You do not import the audience twice.
One wallet
SMS draws from the same monthly allowance as email. The rate depends on the country.
Workflows
The texts your product sends.
Pick a job to see the steps it runs.
A code the moment they ask. No opt-in needed.
- Sign-in requestedAn event from your app
- Send SMS483192 is your code
- Signed inThey type it in your app
Two-way
People text back. Your app or agent answers.
A text to your US or Canadian number arrives as an sms.received webhook. Answer it with one API call, from the same number.
Every text, as a webhook
Who sent it, what they said, and which of your texts they answered.
One conversation
Answers leave from the number they texted. The history is one API call.
STOP and HELP handled
We answer the keywords for you and tell your code we did.
From $0.004 per SMS received
$0.008 a segment in the US and $0.004 in Canada, counted like a send. Sender IDs are one-way.
import { Unitpost, verifyWebhook } from "unitpost";
const unitpost = new Unitpost(process.env.UNITPOST_API_KEY);
// Your endpoint, subscribed to sms.received. Pass the RAW body.
export async function POST(req: Request) {
const event = verifyWebhook<{ type: string; data: SmsReceived }>({
payload: await req.text(),
secret: process.env.UNITPOST_WEBHOOK_SECRET!, // whsec_…
headers: Object.fromEntries(req.headers),
});
const text = event.data;
if (event.type !== "sms.received") return new Response("ok");
if (text.keyword === "OPT_OUT" || text.auto_replied) return new Response("ok");
// The whole conversation with this person, newest first.
const { data: history } = await unitpost.sms.list({ participant: text.from, limit: 20 });
const answer = await yourAgent(history?.data ?? [], text.body);
// No `from`: the answer leaves from the number they texted.
await unitpost.sms.send({ to: text.from, body: answer });
return new Response("ok");
}
type SmsReceived = { from: string; body: string; keyword: string | null; auto_replied: boolean };Where you send
Pick the countries. See what to apply for.
Pick the countries and how many texts. Each row is what you apply for, the rate, and the plan that covers it.
North America
55 countriesCentral America & Caribbean
1717 countriesSouth America
44 countriesEurope
4747 countriesMiddle East
1212 countriesAfrica
5050 countriesAsia
2828 countriesOceania
1414 countriesQuestions