Official SDKs

Developer-friendly SMS APIs & SDKs

Integrate SMS, OTP, and messaging into your apps in minutes. Install an SDK, add your API key, and start sending — base URL https://splitsms.vercel.app

Every SDK includes

Send SMSSend & verify OTPDelivery status & reportsWallet balanceCampaign trackingRetries & typed errors

JavaScript / Node.js

Source: sdk/javascript

npm install @splitsms/sdk
import { SplitSMS } from "@splitsms/sdk";

const sms = new SplitSMS({
  apiKey: process.env.SPLITSMS_API_KEY,
});

await sms.messages.send({
  sender: "MYBRAND",
  recipients: ["233201234567"],
  message: "Hello from SplitSMS",
});

PHP

Source: sdk/php

composer require splitsms/splitsms-php
use SplitSMS\Client;

$client = new Client(getenv("SPLITSMS_API_KEY"));

$client->sms()->send([
    "sender" => "MYBRAND",
    "recipients" => ["233201234567"],
    "message" => "Hello from SplitSMS",
]);

Flutter

Source: sdk/flutter

flutter pub add splitsms_flutter
import 'package:splitsms_flutter/splitsms.dart';

final sms = SplitSMS(apiKey: apiKey);

await sms.sendMessage(
  sender: "MYBRAND",
  recipients: ["233201234567"],
  message: "Hello from SplitSMS",
);

REST API

Prefer raw HTTP? Full reference with cURL examples, Postman collection, and webhooks.

View API docs

WordPress & WooCommerce

No-code plugin for order SMS, forms, and registration — auto-updates from https://splitsms.vercel.app.

WordPress integration

Ship your first SMS today

5 free credits · Sandbox keys · Ghana & 190+ countries

Create free account