Inbound MEDIA message from end user

Sent when the end user replies with a media attachment (image, video, file). eventType is MESSAGE and messageContent.messageType is MEDIA. messageContent.url is a link to the hosted media file.

Payload

The envelope for all inbound message and notification callbacks.

  • When eventType is MESSAGE, messageContent is populated and notificationType is null.
  • When eventType is NOTIFICATION, notificationType is populated and messageContent is null.

string
required

The RCS agent id the event is associated with.

string
required

The display name of the RCS agent.

string
required

The end user's phone number in E.164 format. This is the raw, unhashed number.

string
enum
required

Discriminates whether the callback payload is an inbound message or a notification.

Allowed:
InboundMessageContent | null

The inbound message content. Present only for MESSAGE events; null for NOTIFICATION events.

EndUserNotificationType | null

The notification kind. Present only for NOTIFICATION events; null for MESSAGE events.

string | null

Correlates the event back to the originating outbound message (extracted from the outbound message metadata). null when not applicable, such as unsolicited inbound messages.

boolean
required
Defaults to false

true when an inbound TEXT message matched an opt-out keyword (e.g. STOP, UNSUBSCRIBE, CANCEL). Always false for notifications and non-opt-out messages.

string | null

The correlateId value supplied on the originating send request, if any. null when not provided.

ConversationMetadata | null

Metadata echoed from the conversation when present. Omitted from the payload entirely when there is none.

Responses
200

Callback acknowledged.

4XX

Permanent failure. Enrich will not retry.

5XX

Transient failure. Enrich retries up to 4 times, 5s apart.

LoadingLoading…