Go to account

API Documentation

Schema

The Schema defines the data structures used across Emisri API services covering request fields, response shapes, and nested objects for each endpoint.

SMS MODEL

Send transactional and promotional/marketing SMS messages to one or multiple recipients in a single request.

Request fields

Body

FieldTypeRequiredDescription
senderstringyesYour registered Sender ID (max 11 characters).
textstringyesThe SMS message content.
destinationarrayyesOne or more recipient phone numbers in international format (e.g. 2348012345678).
optionsobjectnoOptional configuration for scheduling, DND, and URL shortening. See Options Object below.
campaignNamestringnoA label for grouping messages under a campaign.

options object

FieldTypeRequiredDescription
scheduleAtstringnoISO 8601 datetime to schedule the message (e.g. 2026-05-21T09:00:00Z). Omit to send immediately.
excludeDndbooleannoSet to true to bypass Do Not Disturb restrictions for this message.
urlShorteningobjectnoURL shortening and click tracking configuration. See URL Shortening Object below.

options.urlShortening object

FieldTypeRequiredDescription
enabledbooleanyesWhether URL shortening is active for this message.
longUrlstringyesThe original URL to be shortened and embedded in the message.
trackClicksbooleannoWhether to track clicks on the shortened URL.

Response fields

A successful request returns the message record. Use messageId to poll for status updates and campaignId to retrieve campaign-level analytics.

Response

FieldTypeRequiredDescription
messageIdstringUnique ID assigned to the message. Use this to fetch message status or details.
campaignIdstringID of the campaign this message belongs to. Returned when campaignName is provided.
destinationarrayThe recipient phone numbers the message was sent to.
senderstringThe Sender ID used for this message.
statusstringCurrent delivery status of the message.
createdAtstringISO 8601 timestamp of when the message was created.
updatedAtstringISO 8601 timestamp of the last status update.

Estimate object

FieldTypeRequiredDescription
available_balancenumberYour account balance after this request.
chargenumberTotal units charged for this message.
encodingstringCharacter encoding used (e.g. GSM7, UCS2).
message_lengthnumberTotal character count of the message.
pagesnumberNumber of SMS parts this message is split into.