Texa Desk Application API · Messages
Update message status
PATCH/
Updates the delivery status of a single message. Available only for messages in
API channel inboxes, where your own system is responsible for delivering messages
and reporting what happened. Use this to push sent, delivered, and read
receipts into Texa Desk, for example, to mark an agent's message as read when the
end user views it in your client, so the agent sees the read indicator on the
message.
A message already marked read cannot be moved back to delivered. When
reporting a failure, include external_error with the reason, which is shown to
the agent along with the failed indicator.
Authorization
api_access_tokenheaderrequiredA person's access token (Texa Desk, Profile settings → Access token) or an agent bot's token, in the api_access_token header. It acts as that person, with their role's permissions.
Path parameters
account_idintegerrequiredThe numeric ID of the account
conversation_idintegerrequiredThe numeric ID of the conversation
message_idintegerrequiredThe numeric ID of the message
Body application/json
statusstringrequiredThe new status of the message One of: sent, delivered, read, failed.
external_errorstringError description, stored only when status is failed
Responses
200Success
idnumberThe ID of the message
contentstringThe text content of the message
account_idnumberThe ID of the account
inbox_idnumberThe ID of the inbox
conversation_idnumberThe ID of the conversation
message_typeintegerThe type of the message One of: 0, 1, 2, 3.
created_atintegerThe time at which message was created
updated_atinteger or stringThe time at which message was updated
privatebooleanThe flags which shows whether the message is private or not
statusstringThe status of the message One of: sent, delivered, read, failed.
source_idstringThe source ID of the message
content_typestringThe type of the template message One of: text, input_text, input_textarea, input_email, input_select, cards, form, article, incoming_email, input_csat, integrations, sticker, voice_call.
content_attributesobjectThe content attributes for each content_type
sender_typestringThe type of the sender One of: Contact, User, AgentBot.
sender_idnumberThe ID of the sender
external_source_idsobjectThe external source IDs of the message
additional_attributesobjectThe additional attributes of the message
processed_message_contentstringThe processed message content
sentimentobjectThe sentiment of the message
conversationobjectThe conversation object
attachmentobjectThe file object attached to the image
senderobjectUser/Agent/AgentBot object
401Unauthorized
descriptionstringerrorsarray of objecterrors[].fieldstringerrors[].messagestringerrors[].codestring403The message does not belong to an API channel inbox
descriptionstringerrorsarray of objecterrors[].fieldstringerrors[].messagestringerrors[].codestring404The message or conversation does not exist in the account
descriptionstringerrorsarray of objecterrors[].fieldstringerrors[].messagestringerrors[].codestring