Skip to main content
POST
Receive a message

Body

application/json
from
string

Sender address (the user who replied).

to
string

Your MOJA channel number that received the message.

channel
string

Channel type: whatsapp, facebook, sms, or instagram.

transaction_id
string

Client reference ID if provided when sending the original message.

message_type
enum<string>

Type of inbound message received.

Available options:
text,
image,
location,
document,
video,
audio,
contact,
quick_reply,
list
user_name
string

Display name of the user who sent the message.

text
string

Text body when message_type is text.

image
object

Image payload when message_type is image.

video
object

Video payload when message_type is video.

document
object

Document payload when message_type is document.

location
object

Location coordinates when message_type is location.

audio
object

Audio payload when message_type is audio.

contacts
object[]

Shared contact cards when message_type is contact.

Response

default

Successful response