Skip to main content
POST
Handle inbound SMS/MMS webhook (TextGrid)

Body

application/json

TextGrid inbound SMS/MMS payload. Shape matches Twilio — additional MediaUrlN / MediaContentTypeN fields appear when NumMedia > 0.

AccountSid
string

TextGrid account identifier that owns the receiving number.

MessageSid
string

TextGrid-assigned message identifier.

From
string

Sender phone number in E.164.

To
string

Tether-provisioned TextGrid number that received the message.

Body
string

SMS/MMS text content.

NumMedia
string

Count of attached media items as a string; 0 for plain SMS.

MediaUrl0
string

URL of the first media attachment; additional MediaUrlN fields appear when NumMedia > 1.

MediaContentType0
string

MIME type of the first media attachment, e.g. image/jpeg.

Response

200 - application/xml

Empty TwiML response acknowledging receipt. TextGrid persists the message + drives automation server-side; no TwiML is returned to the caller.

The response is of type string.