Pick the Update Ticket Message action (under Ticket Messages).
Fill in the fields below, then reference the result from later steps as {{updateTicketMessage.response.data}}.
Request
Path parameters
ticket_idintegerrequired
The ID of the ticket associated with the message.
idintegerrequired
The ID of the message to update.
Query parameters
actionstring
Policy applied on external actions associated with the message if they failed.
Three actions are possible:
- force: bypass the failed action and try to execute the remaining one and to send the message
- retry: retry the failed action
- cancel: delete the TicketMessage
One offorceretrycancel
Request body
Enter the body as JSON in the step's Body field.
attachmentsarray<object>
A list of files attached to the message.
urlstring (url)required
The URL to access to the attached file.
namestringrequired
The name of the file.
sizeinteger | nullrequired
The size of the file, in bytes.
content_typestringrequired
The MIME type of the file.
publicboolean
Whether or not the attachment can be accessed.
Default true
extraany
Extra information for custom content type attachment
body_htmlstring | null
The full HTML version of the body of the message, if any.
body_textstring | null
The full text version of the body of the message, if any.
channelstringrequired
The channel used to send the message.
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationshelp-centerinstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-notephonesmstwittertwitter-direct-messagewhatsappyotpo-review
external_idstring | null
ID of the message in a foreign system (Aircall, Zendesk, etc...). This field is not used by Gorgias, feel free to set it as you wish.
failed_datetimestring | null
When the message failed to be sent. Messages that couldn't be sent can be resend.
from_agentbooleanrequired
Whether the message was sent by your company to a customer, or the opposite.
message_idstring | null
ID of the message on the service that send the message.It can be the ID of an email, a Messenger message, a Facebook comment, etc...
receiverobject
The primary receiver of the message. It can be a user or a customer. Optional when the source type is "internal-note".
idinteger
ID of the customer or user.
emailstring
Primary email address of the customer or user.
senderobject
The person who sent the message. It can be a user or a customer.
idinteger
ID of the customer or user.
emailstring
Primary email address of the customer or user.
sent_datetimestring | null
When the message was sent. If ommited, the message will be sent by Gorgias.
sourceobject
Information used to route the message. It contains the names and the addresses of the sender and receivers.
typestring
Describes a more detailed channel information of how the message was sent/received. Either the slug of a non-legacy channel or one of aircall,api,app,chat,chat-contact-form,chat-offline-capture,contact-form,email,facebook-comment,facebook-message,facebook-messenger,facebook-post,facebook-mention-post,facebook-mention-comment,facebook,facebook-review,facebook-review-comment,form,help-center,helpdesk,instagram-ad-comment,instagram-ad-media,instagram-comment,instagram-mention-comment,instagram-media,instagram-mention-media,instagram,instagram-direct-message,internal-note,ottspott-call,phone,rule,self_service,shopify,sms,system-message,twilio,yotpo-review,yotpo-review-public-comment,yotpo-review-private-comment,twitter-tweet,twitter-quoted-tweet,twitter-mention-tweet,twitter-direct-message,help-center-contact-form,whatsapp-message.
toarray<object>2 fields
A list of To addresses. To and From are usually present for most channel types.
ccarray<object>2 fields
A list of CC addresses. Only present in an email context.
bccarray<object>2 fields
A list of BCC addresses. Only present in an email context.
fromobject2 fields
A single From address. To and From are usually present for most channel types.
subjectstring | null
The subject of the message.
viastring
How the message has been received, or sent from Gorgias.
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformhelp-centerhelpdeskinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-notephoneruleshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendesk
json
{"channel":"email","from_agent":true,"attachments":[],"body_html":"Hello,<br><br>\n\n I can't place an order on your site, it says: I don't have enough credit.<br>\n How can I add some credits?<br><br>\n\n Cheers,<br>\n John Doe\n ","body_text":"Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n ","external_id":"MSG-78545","failed_datetime":null,"message_id":"<123345676453.2445.234@web>","receiver":{"id":8},"sender":{"id":93},"sent_datetime":"2025-01-01T00:00:00Z","source":{"type":"email","from":{"id":7,"name":"Sender Doe","address":"sender@gorgias.io"},"to":[{"id":8,"name":"Receiver Doe","address":"receiver@gorgias.io"}]}}
Response
Returns 202 with an object. Read it in later steps with {{updateTicketMessage.response.data.<field>}}.
idinteger
ID of the message.
uristring
URI of the message.
message_idstring
ID of the message on the service that sent the message.It can be the ID of an email, a Messenger message, a Facebook comment, etc...
ticket_idinteger
The ID of the ticket the message is associated with.
external_idstring
ID of the message in a foreign system (Aircall, Zendesk, etc...). This field is not used by Gorgias, feel free to set it as you wish.
publicboolean
Whether the message was sent/receive by a customer. Internal notes are not public.
Default true
channeloneOf
The channel used to send the message.
viastring
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformgorgias_chathelp-centerhelpdeskinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-noteoffline_capturephoneruleself_serviceshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendesk
sourceobject
typestringrequired
Describes a more detailed channel information of how the message was sent/received. Either the slug of a non-legacy channel or one of aircall,api,app,chat,chat-contact-form,chat-offline-capture,contact-form,email,facebook-comment,facebook-message,facebook-messenger,facebook-post,facebook-mention-post,facebook-mention-comment,facebook,facebook-review,facebook-review-comment,form,help-center,helpdesk,instagram-ad-comment,instagram-ad-media,instagram-comment,instagram-mention-comment,instagram-media,instagram-mention-media,instagram,instagram-direct-message,internal-note,ottspott-call,phone,rule,self_service,shopify,sms,system-message,twilio,yotpo-review,yotpo-review-public-comment,yotpo-review-private-comment,twitter-tweet,twitter-quoted-tweet,twitter-mention-tweet,twitter-direct-message,help-center-contact-form,whatsapp-message.
toarray<object>2 fields
A list of To addresses. To and From are usually present for most channel types.
ccarray<object>2 fields
A list of CC addresses. Only present in an email context.
bccarray<object>2 fields
A list of BCC addresses. Only present in an email context.
fromobject2 fields
extraany
senderobject
idintegerrequired
emailstringrequired
namestringrequired
firstnamestringrequired
lastnamestringrequired
metaanyrequired
auth_customer_identityobject
serviceobjectrequired2 fields
identifierstringrequired
The ID of the customer related to the service. E.g.: email address, phone number, Shopify customer ID, etc.
integration_idinteger
ID of the integration that either received or sent the message.
intentsarray<object>
namestringrequired
The intention the message probably has, example: discount/request
rejectedbooleanrequired
Whether or not the intent was rejected
is_user_feedbackbooleanrequired
Whether or not the intent comes from a user feedback
rule_idinteger
ID of the rule which sent the message, if any.
from_agentboolean
Whether the message was sent by your company to a customer, or the opposite.
receiverobject
idintegerrequired
emailstringrequired
namestringrequired
firstnamestringrequired
lastnamestringrequired
metaanyrequired
subjectstring
The subject of the message.
body_textstring
The full text version of the body of the message, if any.
body_htmlstring
The full HTML version of the body of the message, if any.
stripped_textstring
The text version of the body of the message without email signatures and previous replies.
stripped_htmlstring
The HTML version of the body of the message without email signatures and previous replies.
stripped_signaturestring
attachmentsarray<object>
A list of files attached to the message.
urlstringrequired
The URL to access to the attached file.
namestring
The name of the file.
sizeinteger
The size of the file, in bytes.
content_typestringrequired
The MIME type of the file.
publicboolean
Whether or not the attachment can be accessed.
extraany
Extra information for custom content type attachment
macrosarray<object>
A list of macros.
idintegerrequired
actionsarray<object>
A list of actions executed before the message was sent. These actions are set by macros.
headersobject
Message headers. Used for email messages.
importedboolean
Whether the message was created by a historical import.
metaany
Metadata associated with the message.
You can use this field to store structured information (key-value data) about the message.
Reserved keys:
- `current_page`: The page from where the user is currently chatting.
- `relevant_content_indexes`: Indexes containing relevant text of the message.
- `is_quick_reply`: Whether the message is a "quick reply".
- `campaigns`: ID of the chat campaign the message is replying to.
- `campaigns_id`: ID of the chat campaign that sent this message.
- `self_service_flow`: An object containing metadata of the self-service flow associated to the message.
created_datetimestring (date-time)
When the message was created.
processed_datetimestring (date-time)
When the message was processed by Gorgias. Differs from `created_datetime` which refers to the external service.
deleted_datetimestring (date-time)
When the message was deleted.
sent_datetimestring (date-time)
When the message was sent. If omitted, the message will be sent by Gorgias.
failed_datetimestring (date-time)
When the message failed to be sent. Messages that couldn't be sent can be resend.
opened_datetimestring (date-time)
When the message was opened by the primary receiver.
last_sending_errorobject
errorstringrequired
is_retriableboolean
It determines if the message can be retried or not.
replied_byobject
integration_idintegerrequired
ID of the integration which created the message.
message_idstringrequired
ID of the message in Gorgias.
created_datetimestring (date-time)required
When the message was created.
body_textstringrequired
The full text version of the body of the message, if any.
sourceobjectrequired6 fields
customerobjectrequired6 fields
userobjectrequired6 fields
replied_toobject
integration_idintegerrequired
ID of the integration which created the message.
message_idstringrequired
ID of the message in Gorgias.
created_datetimestring (date-time)required
When the message was created.
body_textstringrequired
The full text version of the body of the message, if any.