Qpien Api Docs
Help centerMain website
Help centerMain website
  1. Modules
  • Overview
  • Get started
    • Authentication
    • Scopes
  • Modules
    • Contacts
    • CustomerPersons
    • Conversations
    • Messages
    • Channels
    • WhatsappBusinessTemplates
    • SendMessages
  • Webhooks
    • Overview
Help centerMain website
Help centerMain website
  1. Modules

Messages

Description#

The Messages module provides access to messages exchanged within conversations. You can retrieve individual messages or lists of messages and also create new messages programmatically.

Entity Model#

ExternalMessage#

FieldTypeDescription
_idIDUnique identifier of the message.
sendersenderDataInformation about the sender of the message.
conversationIDConversation this message belongs to.
messageTypeMessageTypeType of the message (e.g., text, image, email).
channelTypeChannelTypeChannel through which the message was sent (e.g., WhatsApp, Email).
senderTypeSenderTypeIndicates if the sender is a user, system, or bot.
contentStringPlain text content of the message.
contentHtmlStringHTML-formatted content.
subjectStringSubject of the message (mainly for email).
emailDataEmailDataTypeEmail-related metadata.
commentDataCommentDataTypeComment-related metadata.
questionDataQuestionDataTypeQuestion-related metadata.
media[Media]Attached media (images, videos, files).
template_cardsObjectTemplate cards associated with the message.
product_cardsObjectProduct cards included in the message.
channelMessageIdStringIdentifier of the message in the external channel.
ackStatusAckTypeDelivery status acknowledgment.
createdAtDateTimestamp of when the message was created.
autoCreateBooleanIndicates if the message was auto-generated.
failedReasonFailedReasonTypeReason for delivery failure, if applicable.
surveyDatasurveyDataForLivechatSurvey data for live chat interactions.
informativeButtonsInformativeButtonsTypeInformative buttons included in the message.
flowBotQuickReplyResponseIdStringIdentifier for flow bot quick reply response.
flowBotQuickReplyButtonsRequiredBooleanIndicates if quick reply buttons are required.
flowBotQuickReply[FlowBotQuickReplyType]Flow bot quick reply options.
quotedMessageQuotedMessageTypeReference to the quoted message, if any.
reactionsReactionEnumReactions to the message.
frontMsgIdStringFrontend message ID.
listMessageListMessageTypeList-type interactive message data.
catalogMessageCatalogInteractiveTypeCatalog message data.
catalogOrderDataCatalogOrderDataTypeOrder details for catalog messages.

Queries#

Get Message#

Use this query to get single message.
Input:
Response:

Get Message List#

Use this query to get message lists for the conversation.
Input:
Response:

Mutations#

Create Message#

Use this mutation to create a new message
Input:
Response:

Create Message By Whatsapp#

Use this mutation to create a new message by WhatsApp
Input:
Response:

Example Usage#

Query Example — Get Message List#

Bash (cURL)
Node.js

Mutation Example — Create Message#

Bash (cURL)
Node.js
Modified at 2025-09-30 06:55:20
Previous
Conversations
Next
Channels
Built with