Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriestextMessage

entities.textMessage

Read text message records with the textMessage repository, and change them with the text message mutations. Same records as the REST TextMessages entity.

Queries

Fields of entities { textMessage { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
TextMessageEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[TextMessageEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: TextMessageFilterInput, orderBy: [TextMessageOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[TextMessageEntity!]!
QUERYgetByCriteria(filter: TextMessageFilterInput, orderBy: [TextMessageOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
TextMessageEntityConnection
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateTextMessage(input: CreateTextMessageInput!, validationLevel: [ValidationLevel!])Create one recordCreateTextMessagePayload
MUTATIONupdateTextMessage(input: UpdateTextMessageInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateTextMessagePayload

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

TextMessageEntityConnection object pageInfo: PageInfo!, edges: [TextMessageEntityEdge]!, totalCount: Int

Paginated list of TextMessage records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[TextMessageEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
TextMessageEntityEdge object node: TextMessageEntity, cursor: String!

A Relay edge containing a TextMessageEntity and its cursor.

FieldTypeDescription
nodeTextMessageEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
TextMessageFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

Filter conditions for TextMessage records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

Input fieldTypeDescription
OR[TextMessageFilterInput!]Matches records that meet at least one of the listed filters.
AND[TextMessageFilterInput!]Matches records that meet all of the listed filters.
NOTTextMessageFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
chatConversationIdEntityFilterStringFieldId of the AI assistant chat conversation this message belongs to, when applicable.
contentEntityFilterStringFieldBody of the message. May be plain text or a JSON payload (e.g. AI assistant examples / suggestions).
datetimeSentEntityFilterDateTimeFieldTimestamp the message was sent.
directionEmailDirectionEnumFilterInputDirection of the message (Incoming, Outgoing).
messageSidEntityFilterStringFieldExternal message identifier from the SMS provider (e.g. Twilio Message SID).
statusTextMessageStatusEnumFilterInputDelivery status of the message: Sending, Sent, Seen or Failed for outgoing messages, Received for incoming ones.
textMessageConversationIdEntityFilterStringFieldId of the text message conversation this message belongs to, or empty for AI assistant chat messages.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
chatConversationChatConversationFilterInputAI assistant chat conversation this message belongs to, when applicable. Matches records where a related record meets these conditions.
textMessageConversationTextMessageConversationFilterInputConversation this message belongs to. Empty for messages produced by AI chat that do not belong to a thread of customer conversation. Matches records where a related record meets these conditions.
attachmentsCloudObjectRelationFilterInputFiles attached to the message (e.g. MMS attachments). Matches records where a related record meets these conditions.
TextMessageOrderByInput input Asc or Desc per field

Sorting of TextMessage records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
chatConversation[ChatConversationOrderByNestedInput!]AI assistant chat conversation this message belongs to, when applicable. Sorts by fields of the related record, listed in order of priority.
textMessageConversation[TextMessageConversationOrderByNestedInput!]Conversation this message belongs to. Empty for messages produced by AI chat that do not belong to a thread of customer conversation. Sorts by fields of the related record, listed in order of priority.
chatConversationIdOrderByEnumId of the AI assistant chat conversation this message belongs to, when applicable.
contentOrderByEnumBody of the message. May be plain text or a JSON payload (e.g. AI assistant examples / suggestions).
datetimeSentOrderByEnumTimestamp the message was sent.
directionOrderByEnumDirection of the message (Incoming, Outgoing).
messageSidOrderByEnumExternal message identifier from the SMS provider (e.g. Twilio Message SID).
statusOrderByEnumDelivery status of the message: Sending, Sent, Seen or Failed for outgoing messages, Received for incoming ones.
textMessageConversationIdOrderByEnumId of the text message conversation this message belongs to, or empty for AI assistant chat messages.
revisionOrderByEnumRevision when entity was lastly changed.
TextMessageStatusEnumFilterInput input eq: [TextMessageStatusEnum!], NOT: TextMessageStatusEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[TextMessageStatusEnum!]Matches any of the listed values.
NOTTextMessageStatusEnumFilterInputMatches values that do not meet this condition.
ChatConversationOrderByNestedInput input 6 fields: id, isDeleted, modified, …

Sorting by a field of the related ChatConversation record. Set exactly one field in each item.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
ownerIdOrderByEnumId of the owning user.
typeOrderByEnumKind of AI chat: a general conversation with the AI assistant, or one about a specific record identified by context.
CreateTextMessageInput input 13 fields: clientMutationId, modified, created, …

Field values of a new TextMessage record.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
chatConversationIdIDId of the AI assistant chat conversation this message belongs to, when applicable.
contentString!Body of the message. May be plain text or a JSON payload (e.g. AI assistant examples / suggestions).
datetimeSentDateTimeTimestamp the message was sent.
directionEmailDirectionEnum!Direction of the message (Incoming, Outgoing).
messageSidStringExternal message identifier from the SMS provider (e.g. Twilio Message SID).
scoreIntQuality score given to the message by the user (e.g. for AI-suggested replies). Used to feed back into the suggestion engine.
statusTextMessageStatusEnumDelivery status of the message: Sending, Sent, Seen or Failed for outgoing messages, Received for incoming ones.
textMessageConversationIdIDId of the text message conversation this message belongs to, or empty for AI assistant chat messages.
revisionIntRevision when entity was lastly changed.
attachments[CreateCloudObjectRelationNoBackrefInput!]Files attached to the message (e.g. MMS attachments).
UpdateTextMessageInput input 14 fields: clientMutationId, id, modified, …

Id of a TextMessage record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
chatConversationIdIDId of the AI assistant chat conversation this message belongs to, when applicable.
contentStringBody of the message. May be plain text or a JSON payload (e.g. AI assistant examples / suggestions).
datetimeSentDateTimeTimestamp the message was sent.
directionEmailDirectionEnumDirection of the message (Incoming, Outgoing).
messageSidStringExternal message identifier from the SMS provider (e.g. Twilio Message SID).
scoreIntQuality score given to the message by the user (e.g. for AI-suggested replies). Used to feed back into the suggestion engine.
statusTextMessageStatusEnumDelivery status of the message: Sending, Sent, Seen or Failed for outgoing messages, Received for incoming ones.
textMessageConversationIdIDId of the text message conversation this message belongs to, or empty for AI assistant chat messages.
revisionIntRevision when entity was lastly changed.
attachments[CreateCloudObjectRelationNoBackrefInput!]Files attached to the message (e.g. MMS attachments).
CreateTextMessagePayload object textMessage: TextMessageEntity, clientMutationId: String

Result of the createTextMessage mutation.

FieldTypeDescription
textMessageTextMessageEntityThe created record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
UpdateTextMessagePayload object textMessage: TextMessageEntity, clientMutationId: String

Result of the updateTextMessage mutation.

FieldTypeDescription
textMessageTextMessageEntityThe updated record.
clientMutationIdStringOptional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
TextMessageStatusEnum enum Sending, Sent, Failed, Received, Seen

Delivery status of a text, WhatsApp or chat message.

ValueDescription
SendingOutgoing message is queued or being sent.
SentMessage was sent.
FailedMessage could not be sent.
ReceivedMessage was received from the other party.
SeenThe recipient has seen the sent message.