Skip to content

Support conversations

GraphQL schema reference · API guide · SDKs

Support conversations and their messages.

Types used by more than one domain are on Shared types.

Fetch a single conversation by ID.

conversation(
id: ID!
): Conversation

Returns: Conversation (Conversation)

Arguments

  • id: ID! — The conversation ID.

SDK

OperationTypeScriptGoPython
GetConversationGetConversationDocumentGetConversationget_conversation

List all support conversations for the current tenant. Conversations are ordered by last activity, most recent first.

conversationsConnection(
page: ConnectionInput
): ConversationsConnection!

Returns: ConversationsConnection! (ConversationsConnection)

Arguments

SDK

OperationTypeScriptGoPython
GetConversationsConnectionGetConversationsConnectionDocumentGetConversationsConnectionget_conversations_connection

List messages in a conversation. Messages are ordered chronologically, oldest first.

messagesConnection(
conversationId: ID!
page: ConnectionInput
): MessagesConnection!

Returns: MessagesConnection! (MessagesConnection)

Arguments

  • conversationId: ID! — The conversation ID.
  • page: ConnectionInput (ConnectionInput) — Pagination options.

SDK

OperationTypeScriptGoPython
GetMessagesConnectionGetMessagesConnectionDocumentGetMessagesConnectionget_messages_connection

Create a new support conversation. Optionally include an initial message.

createConversation(
input: CreateConversationInput!
): CreateConversationResult!

Returns: CreateConversationResult! (CreateConversationResult)

Arguments

SDK

OperationTypeScriptGoPython
CreateConversationCreateConversationDocumentCreateConversationcreate_conversation

Send a message in an existing conversation. Messages are delivered to support agents in real-time.

sendMessage(
input: SendMessageInput!
): SendMessageResult!

Returns: SendMessageResult! (SendMessageResult)

Arguments

SDK

OperationTypeScriptGoPython
SendMessageSendMessageDocumentSendMessagesend_message

object

A conversation edge in a connection.

  • node: Conversation! (Conversation) — The conversation.
  • cursor: String! — Cursor for this edge.

object

Paginated list of conversations.

  • edges: [ConversationEdge!]! (ConversationEdge) — List of conversations.
  • pageInfo: PageInfo! (PageInfo) — Pagination information.
  • totalCount: Int! — Total count of conversations.

input_object

Input for creating a new conversation.

  • subject: String — Optional subject line.
  • message: String! — Initial message content (required).
  • pageUrl: String — Optional page URL where conversation was initiated.

union

object

A message edge in a connection.

  • node: Message! (Message) — The message.
  • cursor: String! — Cursor for this edge.

object

Paginated list of messages.

  • edges: [MessageEdge!]! (MessageEdge) — List of messages.
  • pageInfo: PageInfo! (PageInfo) — Pagination information.
  • totalCount: Int! — Total count of messages.

input_object

Input for sending a message.

  • conversationId: ID! — The conversation ID to send the message to.
  • content: String! — The message content.

union