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

GraphQLRepositoriestextMessageConversation

entities.textMessageConversation

Read text message conversation records with the textMessageConversation repository, and change them with the text message conversation mutations. Same records as the REST TextMessageConversations entity.

Queries

Fields of entities { textMessageConversation { … } }.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
TextMessageConversationEntity
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[TextMessageConversationEntity!]!
QUERYgetAll(limit: Int, offset: Int, filter: TextMessageConversationFilterInput, orderBy: [TextMessageConversationOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[TextMessageConversationEntity!]!
QUERYgetByCriteria(filter: TextMessageConversationFilterInput, orderBy: [TextMessageConversationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
TextMessageConversationEntityConnection
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!]!
QUERYgetByPhone(phoneNumber: String!, country: String!)
Returns the current user's text message conversation with the given phone number, or null when there is none. The user must have a personal SMS number; otherwise an error is returned.
TextMessageConversationEntity
QUERYpollMessages(input: PollMessagesInput!)
Returns the messages of the text message conversation that were added or changed after the given time, so a client can poll for new messages. Returns an empty list when no time is given.
[TextMessageEntity!]!

Mutations

KindMutationDoesReturns
MUTATIONcreateTextMessageConversation(input: CreateTextMessageConversationInput!, validationLevel: [ValidationLevel!])Create one recordCreateTextMessageConversationPayload
MUTATIONupdateTextMessageConversation(input: UpdateTextMessageConversationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateTextMessageConversationPayload

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.

TextMessageConversationEntity object 21 fields: isDeleteProtected, id, isDeleted, …

Text message conversation between a Coevera phone number and an external phone number.

FieldTypeDescription
isDeleteProtectedBoolean!True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
phonePhoneEntityCoevera phone number used as the sender side of the conversation.
recipientAccountAccountEntityAccount record matched to the recipient phone, when one exists.
recipientContactContactEntityContact record matched to the recipient phone, when one exists.
phoneIdID!Id of the sender phone.
recipientAccountIdIDId of the matched account.
recipientContactIdIDId of the matched contact.
recipientPhoneNumberStringExternal phone number of the conversation recipient. Cannot be changed once the conversation has started.
revisionIntRevision when entity was lastly changed.
messagesTextMessageEntityConnection (7 args)Messages exchanged in the conversation, ordered by send time.
accountRelationsTextMessageConversationRelationsEntityConnection (8 args)Accounts linked to this conversation.
contactRelationsTextMessageConversationRelationsEntityConnection (8 args)Contacts linked to this conversation.
projectRelationsTextMessageConversationRelationsEntityConnection (8 args)Projects linked to this conversation.
leadRelationsTextMessageConversationRelationsEntityConnection (8 args)Leads linked to this conversation.
opportunityRelationsTextMessageConversationRelationsEntityConnection (8 args)Opportunities linked to this conversation.
quoteRelationsTextMessageConversationRelationsEntityConnection (8 args)Quotes linked to this conversation.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
TextMessageConversationEntityConnection object pageInfo: PageInfo!, edges: [TextMessageConversationEntityEdge]!, totalCount: Int

Paginated list of TextMessageConversation records.

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

A Relay edge containing a TextMessageConversationEntity and its cursor.

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

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

Input fieldTypeDescription
OR[TextMessageConversationFilterInput!]Matches records that meet at least one of the listed filters.
AND[TextMessageConversationFilterInput!]Matches records that meet all of the listed filters.
NOTTextMessageConversationFilterInputMatches 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.
phoneIdEntityFilterStringFieldId of the sender phone.
recipientAccountIdEntityFilterStringFieldId of the matched account.
recipientContactIdEntityFilterStringFieldId of the matched contact.
recipientPhoneNumberEntityFilterStringFieldExternal phone number of the conversation recipient. Cannot be changed once the conversation has started.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
phonePhoneFilterInputCoevera phone number used as the sender side of the conversation. Matches records where a related record meets these conditions.
recipientAccountAccountFilterInputAccount record matched to the recipient phone, when one exists. Matches records where a related record meets these conditions.
recipientContactContactFilterInputContact record matched to the recipient phone, when one exists. Matches records where a related record meets these conditions.
messagesTextMessageFilterInputMessages exchanged in the conversation, ordered by send time. Matches records where a related record meets these conditions.
accountRelationsTextMessageConversationRelationsFilterInputAccounts linked to this conversation. Matches records where a related record meets these conditions.
contactRelationsTextMessageConversationRelationsFilterInputContacts linked to this conversation. Matches records where a related record meets these conditions.
projectRelationsTextMessageConversationRelationsFilterInputProjects linked to this conversation. Matches records where a related record meets these conditions.
leadRelationsTextMessageConversationRelationsFilterInputLeads linked to this conversation. Matches records where a related record meets these conditions.
opportunityRelationsTextMessageConversationRelationsFilterInputOpportunities linked to this conversation. Matches records where a related record meets these conditions.
quoteRelationsTextMessageConversationRelationsFilterInputQuotes linked to this conversation. Matches records where a related record meets these conditions.
TextMessageConversationOrderByInput input Asc or Desc per field

Sorting of TextMessageConversation 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.
phone[PhoneOrderByNestedInput!]Coevera phone number used as the sender side of the conversation. Sorts by fields of the related record, listed in order of priority.
recipientAccount[AccountOrderByNestedInput!]Account record matched to the recipient phone, when one exists. Sorts by fields of the related record, listed in order of priority.
recipientContact[ContactOrderByNestedInput!]Contact record matched to the recipient phone, when one exists. Sorts by fields of the related record, listed in order of priority.
phoneIdOrderByEnumId of the sender phone.
recipientAccountIdOrderByEnumId of the matched account.
recipientContactIdOrderByEnumId of the matched contact.
recipientPhoneNumberOrderByEnumExternal phone number of the conversation recipient. Cannot be changed once the conversation has started.
revisionOrderByEnumRevision when entity was lastly changed.
CreateOrUpdateTextMessageNoTextMessageConversationBackrefInput input 12 fields: id, modified, created, …

Field values of a TextMessage record to create, or to update when its id is set, together with the record it belongs to.

Input fieldTypeDescription
idIDUnique 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.
revisionIntRevision when entity was lastly changed.
attachments[CreateCloudObjectRelationNoBackrefInput!]Files attached to the message (e.g. MMS attachments).
CreateTextMessageConversationInput input 15 fields: clientMutationId, modified, created, …

Field values of a new TextMessageConversation 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.
phoneIdID!Id of the sender phone.
recipientAccountIdIDId of the matched account.
recipientContactIdIDId of the matched contact.
recipientPhoneNumberStringExternal phone number of the conversation recipient. Cannot be changed once the conversation has started.
revisionIntRevision when entity was lastly changed.
messages[CreateTextMessageNoTextMessageConversationBackrefInput!]Messages exchanged in the conversation, ordered by send time.
accountRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Accounts linked to this conversation.
contactRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Contacts linked to this conversation.
projectRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Projects linked to this conversation.
leadRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Leads linked to this conversation.
opportunityRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Opportunities linked to this conversation.
quoteRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Quotes linked to this conversation.
CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput input 8 fields: modified, created, accountId, …

Field values of a new TextMessageConversationRelations record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
accountIdIDId of the linked account.
contactIdIDId of the linked contact.
leadOpptyIdIDId of the lead or opportunity the conversation is linked to, or empty when not linked.
projectIdIDId of the linked project, or empty when not linked.
quoteIdIDId of the linked quote, or empty when not linked.
revisionIntRevision when entity was lastly changed.
CreateTextMessageNoTextMessageConversationBackrefInput input 11 fields: modified, created, chatConversationId, …

Field values of a new TextMessage record, created together with the record it belongs to.

Input fieldTypeDescription
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.
revisionIntRevision when entity was lastly changed.
attachments[CreateCloudObjectRelationNoBackrefInput!]Files attached to the message (e.g. MMS attachments).
UpdateTextMessageConversationInput input 16 fields: clientMutationId, id, modified, …

Id of a TextMessageConversation 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.
phoneIdIDId of the sender phone.
recipientAccountIdIDId of the matched account.
recipientContactIdIDId of the matched contact.
recipientPhoneNumberStringExternal phone number of the conversation recipient. Cannot be changed once the conversation has started.
revisionIntRevision when entity was lastly changed.
messages[CreateOrUpdateTextMessageNoTextMessageConversationBackrefInput!]Messages exchanged in the conversation, ordered by send time.
accountRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Accounts linked to this conversation.
contactRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Contacts linked to this conversation.
projectRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Projects linked to this conversation.
leadRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Leads linked to this conversation.
opportunityRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Opportunities linked to this conversation.
quoteRelations[CreateTextMessageConversationRelationsNoTextMessageConversationBackrefInput!]Quotes linked to this conversation.
CreateTextMessageConversationPayload object textMessageConversation: TextMessageConversationEntity, clientMutationId: String

Result of the createTextMessageConversation mutation.

FieldTypeDescription
textMessageConversationTextMessageConversationEntityThe 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).
UpdateTextMessageConversationPayload object textMessageConversation: TextMessageConversationEntity, clientMutationId: String

Result of the updateTextMessageConversation mutation.

FieldTypeDescription
textMessageConversationTextMessageConversationEntityThe 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).