Skip to main content
To receive inbound SMS messages, you need a dedicated longcode (mobile number) purchased from Phonovation. Contact sales@phonovation.com to get one set up.
When a recipient replies to your dedicated longcode, the Phonovation gateway relays the inbound message to a URL you provide via HTTP POST.

Receiving opt-outs

Even without a dedicated longcode, all Phonovation customers can receive opt-out messages at their inbound relay URL. Opt-outs are always sent to the shared shortcode 50123 — when a recipient texts STOP or OPTOUT to 50123, the relay fires to your endpoint with SMS-To=50123. You do not need a longcode to handle opt-outs. See Opt-out payloads below.

Setup

To receive inbound messages, contact sales@phonovation.com to purchase a dedicated longcode. Once provisioned, provide your relay URL to support@phonovation.com. The endpoint must:
  • Accept HTTP POST requests
  • Return a 200 OK response

Relay parameters

SMS-Type values

Example relay payload

Example relay payload
URL-encode the POST body before sending. Some field values may contain characters that break unencoded requests.

Verifying the payload

The SMS-Verify field is an MD5 hash to confirm the relay genuinely came from Phonovation. The formula follows the same pattern as DLR verification. Contact support@phonovation.com for your specific verification key.

Correlating replies with notifyId

Inbound relay payloads include an SMS-NotifyId field. When the gateway can link the inbound reply to an outbound message that had a notifyId set, this field will be populated with that value. If no link can be made, it will be empty. For cases where SMS-NotifyId is empty, use SMS-From (the sender’s mobile number) to look up the record in your system. If you stored the notifyId alongside the phone number when you sent the original message, a single lookup gives you the full context. See notifyId for end-to-end flow examples showing outbound, webhook, DLR, and inbound reply all tied together.

Opt-out payloads

Opt-out messages arrive at your relay URL like any other inbound message. You can identify them by SMS-To=50123 — this is always the destination for opt-outs regardless of your longcode or sender ID.
Opt-out relay payload
When you receive a payload with SMS-To=50123, add SMS-From to your suppression list immediately and do not send further marketing messages to that number.

Keyword routing

The SMS-Keyphrase contains the first word of the inbound message. A value of * means the message did not match a specific keyword. Use the keyphrase to route messages to different handlers in your application:

Network codes (SMS-Network)

When present, SMS-Network uses MCC/MNC format. For Irish numbers, MCC is always 272: This field may be empty depending on the network and message type.
Last modified on July 16, 2026