Notify Africa
Official SDKs

TypeScript / Node.js SDK

Official TypeScript and Node.js SDK for Notify Africa SMS API integrations.

TypeScript / Node.js

Install

npm install notify-africa

Source

SMS Methods

MethodSMS endpoint
sendSingleMessage(phoneNumber, message, senderId)POST /api/v1/api/messages/send
sendBatchMessages(phoneNumbers, message, senderId)POST /api/v1/api/messages/batch
checkMessageStatus(messageId)GET /api/v1/api/messages/status/{messageId}

Example

import { NotifyAfrica } from 'notify-africa';

const client = new NotifyAfrica(process.env.NOTIFY_SMS_API_KEY!);

const result = await client.sendSingleMessage(
  '255712345678',
  'Hello from Notify Africa',
  'MYBRAND',
);

console.log(result.messageId, result.status);

Next Step

Use the SDK in the SMS guide

On this page