Mutation
mutation CreateMessage($input: CreateMessageInput!) {
createMessage(input: $input) {
clientMutationId
errors
message {
actorType
artifact {
createdAt
description
html
kind
status
summary
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
conversation {
bookmarkedAt
id
lastChatAt
lastMessage {
__typename
}
messages {
__typename
}
title
}
createdAt
embeddedLink {
actionText
description
faviconUrl
id
imageUrl
isVideo
}
}
}
}Variables
{
"input": {
"conversationId": "id",
"text": "string"
}
}Response
{
"data": {
"createMessage": {
"clientMutationId": "string",
"errors": [
"string"
],
"message": {
"actorType": "COHOST",
"artifact": {
"createdAt": "value",
"description": "string",
"html": "string",
"kind": "string",
"status": "string",
"summary": "string"
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"conversation": {
"bookmarkedAt": "value",
"id": "id",
"lastChatAt": "value",
"lastMessage": {
"__typename": "ChatMessage"
},
"messages": {
"__typename": "ChatMessageConnection"
},
"title": "string"
},
"createdAt": "value",
"embeddedLink": {
"actionText": "string",
"description": "string",
"faviconUrl": "string",
"id": "id",
"imageUrl": "string",
"isVideo": true
}
}
}
}
}Mutations
createMessage
Send a message to a space chat
MUTATION
createMessage(input: CreateMessageInput!): CreateMessagePayloadArguments
input
required
Parameters for CreateMessage
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
message
Mutation
mutation CreateMessage($input: CreateMessageInput!) {
createMessage(input: $input) {
clientMutationId
errors
message {
actorType
artifact {
createdAt
description
html
kind
status
summary
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
conversation {
bookmarkedAt
id
lastChatAt
lastMessage {
__typename
}
messages {
__typename
}
title
}
createdAt
embeddedLink {
actionText
description
faviconUrl
id
imageUrl
isVideo
}
}
}
}Variables
{
"input": {
"conversationId": "id",
"text": "string"
}
}Response
{
"data": {
"createMessage": {
"clientMutationId": "string",
"errors": [
"string"
],
"message": {
"actorType": "COHOST",
"artifact": {
"createdAt": "value",
"description": "string",
"html": "string",
"kind": "string",
"status": "string",
"summary": "string"
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"conversation": {
"bookmarkedAt": "value",
"id": "id",
"lastChatAt": "value",
"lastMessage": {
"__typename": "ChatMessage"
},
"messages": {
"__typename": "ChatMessageConnection"
},
"title": "string"
},
"createdAt": "value",
"embeddedLink": {
"actionText": "string",
"description": "string",
"faviconUrl": "string",
"id": "id",
"imageUrl": "string",
"isVideo": true
}
}
}
}
}