Skip to main content
MUTATION
conversationMessageAdd(conversationId: String, type: String, text: MessageTextInput, media: MessageMediaInput, sender: MessageSenderInput, visibility: String, context: MessageContextInput, template: JSON, metadata: JSON, interactive: JSON): ConversationMessage

Arguments

conversationId
String

The conversation id to add the message to.

type
String

Message type discriminator, e.g. "text", "media", "template".

Text content, when type is "text".

Media/attachment content, when type is "media".

Who is sending this message.

visibility
String

"public" (default), "internal" (team-only note), or "hidden".

Threading, forwarding, and mention context.

template
JSON

Template payload, when type is "template".

metadata
JSON

Additional free-form metadata as JSON.

interactive
JSON

Interactive message payload (buttons, lists, carousels) for WhatsApp/Instagram/Facebook.

_id
String!
type
String

Message type discriminator.

Who sent this message.

visibility
String

Visibility level: 'public', 'internal', or 'hidden'.

Text content (when type='text').

Media content (image, audio, video, document — single or multiple).

Template content (when type='template').

Interactive content (when type='interactive').

toolCalls
JSON

Tool call data (when type='tool_call').

Email envelope and body (when type='email').

Threading, forwarding, mention context.

Delivery status and error info.

reactions

Reactions on this message.

External origin tracking.

editHistory

Message edit history.

metadata
JSON

Extensible metadata bucket.

replyForMsg
JSON

The resolved original message being replied to.

customer

The resolved customer who sent this message.

user

The resolved agent who sent this message.

conversation

The parent conversation.

conversationId
String

The conversation this message belongs to.

createdAt
Date

When this message was created.

sticker

Sticker attachment (when type='sticker').

location

Location data (when type='location').

contacts

Contact cards (when type='contacts').

referral

CTWA ad referral attached to the message.

System event content (populated when type is "system").

Form submission content (populated when type is "form").

Engage/campaign content (populated when type is "engage").

Video call content (populated when type is "videoCall").

Order/commerce content (populated when type is "order").

updatedAt
Date

When this message was last updated (e.g. reaction or visibility change via conversationMessageUpdate).

Live WhatsApp call card (when type='whatsapp_call').

Mutation
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦