Skip to main content

Plivo SMS

Plivo enables sending SMS through its API, allowing developers to programmatically send and receive text messages worldwide.

Configuration

Database Setup

Create a new entry in the notify_providers table with the following settings:
FieldValue
channel_type6 (Plivo SMS)
is_enabled1

Configuration Fields

PLIVO_SMS_AUTH_ID
string
required
Plivo Auth ID
PLIVO_SMS_AUTH_TOKEN
string
required
Plivo Auth Token
PLIVO_SMS_NUMBER
string
required
Plivo registered phone number
Example Configuration:
{
  "PLIVO_SMS_AUTH_ID": "PlivoAuthId",
  "PLIVO_SMS_AUTH_TOKEN": "PlivoAuthToken",
  "PLIVO_SMS_NUMBER": "+919000180002"
}

Request Format

Sample Request Body

{
  "providerId": 6,
  "data": {
    "to": "+15005550006",
    "message": "This is a test message from OsmoX."
  }
}

Request Fields

to
string
required
Recipient’s phone number in E.164 format
message
string
required
The SMS message content

Dependencies

PackageVersionDescription
plivo^4.75.1Plivo client for SMS and voice calls

Reference