Skip to main content
Prelude supports 2-way messaging over SMS, so your application can receive the SMS users send to your number and answer them. Replies leave from the number that received the message.
2-way SMS works on numbers dedicated to your brand on your Prelude account: long numbers (such as US 10DLC numbers), toll-free numbers and short codes. Ask your Customer Success Manager which countries are available, and to add your number, turn on 2-way messaging for it, and register the callback URL that receives its messages. Each number can have its own callback URL.

How it works

1

User sends an SMS

A user sends an SMS to your number.
2

Prelude forwards the message

Prelude stores the message and sends an inbound.message.received webhook event to the callback URL registered for your number. The event includes the message text, the sender’s phone number, your number, and a message ID you can use to reply.
3

You send a reply

Your application calls the Reply to an inbound message endpoint with the to, text, and reply_to fields to send a reply.
4

User receives a reply

The user receives your reply as an SMS from your number.

Reply timing

SMS has no reply window: you can reply to an inbound message at any time, and the reply leaves from the number that received it.

Reserved keywords

STOP, START, HELP and other opt-out words such as UNSUBSCRIBE are handled by Prelude: a message that starts with one of them is not forwarded to your callback URL. Only a message that is exactly one of these words changes the user’s subscription: STOP unsubscribes the user from your number until they send START. A reply to an unsubscribed user is not sent: the message fails with the reason unsubscribed.

Sending a reply

To reply to an inbound message, use the dedicated Reply to an inbound message endpoint:
string
required
The recipient’s phone number in E.164 format. Must match the phone number that sent the original inbound message.
string
required
The reply message body, sent as an SMS from the number that received the message. A long text is sent in several segments.
string
required
The inbound message ID (prefixed with im_) to reply to. This ID is provided in the inbound.message.received webhook event.
An SMS reply is text only: a reply with media is refused with an invalid_media error.

Pricing

Each inbound SMS forwarded to you is billed per segment at the inbound SMS rate; the reserved keywords are not billed. Each reply is billed as an SMS sent from your number.