app/api/sms/route.ts
import {SimpleTextClient} from "@simpletext/client";
import {NextRequest, NextResponse} from 'next/server';
export async function POST(req: NextRequest) {
const config = {
appId: process.env.ST_APP_ID,
secret: process.env.ST_SECRET,
}
const simpletext = new SimpleTextClient(config);
const { to, message } = await req.body.json();
await simpletext.sendSMS({
to,
message,
});
return NextResponse.json({ status: 200 });
}
Ship apps with SMS at its core, using our simple APIs designed for the modern developer. Works with NextJS and other modern frameworks, while also exposing lower-level HTTPS APIs for any web or mobile use case.
Avoid costly SMS providers and vendor lock-in with Twilio or Firebase Messaging by using our simple, transparent pricing.
Fair pricing
$0 upfront to test that MVP or new app idea - just get coding.
Send & Verify OTP
Send and verify one-time passcodes for your authentication flow.
Simple APIs
APIs that remove the bloat from doing simple communication.
Analytics
Gain valuable insights about sms delivery rates, user feedback, & pricing.
Elastic Scalability
From sending 0 to 1000 messages a day, we scale to your needs.
Personalization
Work with our team to reserve your own phone number & special rates.
Everything you need for that quick idea, hackathon project, or MVP to present.
100 sms texts/day across all apps
literally it's free, no credit cards or other bs.
For that long-term application that needs an extra level of communication.
1000 texts/day across all apps
OTP sending & validation
dark mode