Docs
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
Open dashboard
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
  • Overview
  • Create an account
  • Choose your API
  • AI & MCP
Channels
    • Senders
    • Coverage
    • Destination countries
    • Wildcard route
    • Agents
HTTP
  • Quickstart
  • Bulk sending
  • Authentication
  • Rate limits
  • Errors
  • DLRs
  • Traffic metrics
  • Full API Reference
SMPP
  • Authentication
  • Integration
SDKs
  • Node.js
  • PHP
  • Python
  • Ruby
  • Java
Legacy API
  • Overview
  • Authentication
  • Full API Reference
DashboardSupportinstasent.com

A2P Messaging API · SMPP

Integration

Supported PDUs, submit_sm fields, message concatenation, DLRs over deliver_sm and inbound handling for the A2P Messaging API over SMPP.

On this page▾
  • Supported PDUs
  • Sending messages
  • Data coding
  • Message concatenation
  • message_payload
  • UDHI segmentation
  • Receiving DLRs
  • DLR statuses
  • Receiving inbound messages

Once the session is bound (see Authentication), traffic flows through a small set of PDUs. This page documents what is supported and how the payload is shaped.

Supported PDUs

PDUPurpose
bind_transceiverSend and receive SMS on the same session.
bind_transmitterSend SMS only.
bind_receiverReceive SMS only.
submit_smSend a mobile-terminated (MT) message.
deliver_smReceive DLRs and inbound messages.
enquire_linkKeep the session alive.
unbindLog out — SMPP v5.0 only.

Sending messages

Use submit_sm to send an MT. The fields below are recognised; everything else is ignored or rejected depending on the PDU version.

FieldDescriptionNotes
source_addrSender (from).3–11 chars.
destination_addrRecipient MSISDN.E.164 with country prefix.
esm_classMessage mode and type.See concatenation below.
registered_deliveryWhether to request DLRs.1 to receive DLRs.
data_codingCharacter encoding.See table below.
short_messageMessage body.Up to the encoding-dependent length limit.
message_payloadAlternative to short_message for long messages.See concatenation.

source_addr is always your customer's own sender name, carried on the account's wildcard route — SMPP keys exist only on accounts that have it (see Enabling SMPP). Your project's destination countries apply to SMPP traffic too.

Example PDU:

{
  "command": "submit_sm",
  "command_id": 4,
  "source_addr": "INSTASENT",
  "destination_addr": "+34676388300",
  "esm_class": 0,
  "registered_delivery": 1,
  "short_message": "example of message"
}

Data coding

ValueEncoding
0GSM7
3ISO-8859-15 (LATIN9)
8UTF-16BE (UCS2)

Message concatenation

Messages that exceed the single-segment limit can be delivered in two ways. Pick whichever fits your SMPP client.

message_payload

Put the whole text in message_payload instead of short_message. The server segments for you.

{
  "command": "submit_sm",
  "source_addr": "INSTASENT",
  "destination_addr": "+34666000000",
  "esm_class": 0,
  "registered_delivery": 1,
  "message_payload": "Y, viéndole don Quijote de aquella manera, con muestras de tanta tristeza, le dijo: Sábete, Sancho, que no es un hombre más que otro si no hace más que otro."
}

UDHI segmentation

Set the User Data Header Indicator on esm_class and build the concatenation header yourself.

esm_class = 0x40

The UDH prefix is inserted at the start of the message body:

ByteDescription
05Length of UDH (5 bytes).
00Indicator for concatenated message.
03Subheader length (3 bytes).
XXMessage identifier — any hex value, must match across all segments.
YYTotal number of segments.
ZZSequence number of this segment.

Two-segment example:

# segment 1
esm_class     = 0x40
short_message = 0x05 0x00 0x03 0x05 0x02 0x01 Y, viéndole don Quijote de aquella manera, con muestras de tanta tristeza, le dijo: Sábete, Sancho, que no es un hombre más que

# segment 2
esm_class     = 0x40
short_message = 0x05 0x00 0x03 0x05 0x02 0x02 otro. Todas estas borrascas que nos suceden son señales de que presto ha de serenar el tiempo y han de sucedernos bien las cosas

Receiving DLRs

DLRs come in through deliver_sm PDUs with esm_class=4. The body is a single line in the usual SMPP DLR format:

id:288230378411154593 sub:001 dlvrd:001 submit date:1602260445 done date:1602260345 stat:DELIVRD err:000 text:none
FieldDescription
idInstasent message id.
subUnused.
dlvrd1 delivered, 0 not delivered.
submit dateSend date, YYMMDDHHMM.
done dateCompletion date, YYMMDDHHMM.
statStatus — see table below.
errError code.

DLR statuses

StatusDescription
DELIVRDMessage delivered to destination.
EXPIREDMessage validity period expired.
DELETEDMessage deleted.
ACCEPTDMessage accepted.
UNDELIVMessage undeliverable.
UNKNOWNMessage in an invalid state.
REJECTDMessage rejected.

Receiving inbound messages

Inbound (MO) messages arrive through deliver_sm with esm_class=0. The content is carried on short_message.message.

Product and pricing

  • SMS API
  • SMS and RCS pricing

Last updated October 5, 2026

PreviousAuthenticationNextNode.js
  • Supported PDUs
  • Sending messages
  • Data coding
  • Message concatenation
  • message_payload
  • UDHI segmentation
  • Receiving DLRs
  • DLR statuses
  • Receiving inbound messages

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational