receive inbound message

API Docs by APIMATIC

Receive Inbound Message

Wavix can automatically forward Mobile Originated SMS and MMS messages to a webhook. To activate the feature set a webhook URL as the default SMS endpoint for your account either using the web interface or Profile API. Once a message is received by the platform, it is automatically forwarded to the specified URL.

This endpoint requires authentication.

POST /inbound_sms
  • EXPLORER
  • PARAMETERS
Endpoint Arguments*
Parameters*
body (Receivedmessage)*

Message content

Unique identifier of the message generated by the platform..

Originating phone number.

Destination phone number. A SMS-enabled DID on the platform the message was sent to.

message_body (MessageBody)*

Message text.

media

An array of URLs to a media attachments. If the parameters contains any value other that `null`, the message is considered to be an MMS, SMS otherwise.

Date and time the message is received by the Wavix platform

Server

Messaging

Response Type

Void

curl -X POST \
  --url 'https://api.wavix.com/v2/inbound_sms?appid=appid' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "message_id": "3c7a5a90-43e0-43e0-b006-fdfea30c5a7c",
  "from": "43720115661",
  "to": "447712345661",
  "message_body": {
    "text": "SMS message"
  },
  "received_at": "2016-03-13T12:52:32.123Z"
}'