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: 'text', 'media', 'template', etc.

text
MessageTextInput

Text content of the message.

media
MessageMediaInput

Media content (attachments).

sender
MessageSenderInput

Who is sending this message.

visibility
String

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

context
MessageContextInput

Threading, forwarding, and mention context.

template
JSON

Template content for template messages.

metadata
JSON

Additional 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').

System event content (when type='system').

Form submission content (when type='form').

Engage/campaign content (when type='engage').

Video call content (when type='videoCall').

Order/commerce content (when type='order').

referral

WhatsApp ad referral data.

updatedAt
Date

When this message was last updated.

Mutation
Response
Last modified on August 8, 2026