Space Docs
API ReferenceMessage

message.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
conversationIdstringYes—ID of the associated conversation
directionenum(inbound, outbound, system)Yes—Direction
providerenum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email)Yes—Provider
externalMessageIdstringNo—ID of the associated external message
senderExternalIdstringNo—ID of the associated sender external
senderDisplayNamestringNo—Sender display name
bodyTextstringNo—Body text
bodyRichJsonunknownNo—Body rich json
attachmentRefsJsonunknownNo—Attachment refs json
messageTypestringYes"text"Message type
sentAtstring.date-timeNo—Sent at
receivedAtstring.date-timeNo—Received at
deliveryStatusenum(pending, sent, delivered, read, failed)Yes"pending"Delivery status
metadataJsonobjectNo—Metadata json
relevanceStatusenum(auto_relevant, confirmed, excluded)No—Relevance status
relevanceNotestringNo—Relevance note

Example

{
  "conversationId": "550e8400-e29b-41d4-a716-446655440000",
  "direction": "inbound",
  "provider": "telegram",
  "externalMessageId": "550e8400-e29b-41d4-a716-446655440000",
  "senderExternalId": "550e8400-e29b-41d4-a716-446655440000",
  "senderDisplayName": "example",
  "messageType": "text",
  "deliveryStatus": "pending"
}

On this page