Fill in the fields below, then reference the result from later steps as {{createTicket.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
assignee_teamobject
idinteger
ID of the user or team assigned to the ticket
assignee_userobject
idinteger
ID of the user or team assigned to the ticket
channeloneOf
Channel used to initiate the conversation with the customer
closed_datetimestring (date-time)
When the ticket was closed
created_datetimestring (date-time)
When the ticket was created
custom_fieldsarray<object>
Custom fields associated with the ticket
idintegerrequired
ID of the custom field
valueanyrequired
Value of the custom field
customerobject
idinteger
ID of the customer
emailstring
Primary email of the customer
namestring
Name of the customer
external_idstring
ID of the ticket in a foreign system. This field is not used by Gorgias, feel free to set it as you wish.
from_agentboolean
Whether the first message of the ticket was sent by your company to a customer, or the opposite
languagestring
Language primarily used in the ticket. The language is automatically detected on the first messages by Gorgias if not set explicitly. Once the language has been set, it won't be updated according to future messages.
last_message_datetimestring (date-time)
When the last message was sent
last_received_message_datetimestring (date-time)
When the last customer's message was received
messagesarray<object>required
Messages of the ticket
actionsarray<oneOf>
Actions associated with the message
attachmentsarray<object>6 fields
Attachments associated with the message
body_htmlstring
HTML version of the body of the message
body_textstring
Text version of the body of the message
channeloneOfrequired
Channel used to send the message
created_datetimestring (date-time)
When the message was created
deleted_datetimestring (date-time)
When the message was deleted
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.
failed_datetimestring (date-time)
When the message failed to be sent. Messages that couldn't be sent can be resent.
from_agentbooleanrequired
Whether the message was sent by your company
headersobject
Headers of the message
integration_idinteger
ID of the Integration used to send the message
last_sending_errorobject1 fields
macrosarray<object>1 fields
Macros used to compose 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...
metaobject1 fields
opened_datetimestring (date-time)
When the message was seen by its recipient
publicboolean
Whether the message is public. Only internal notes are private.
Default true
sent_datetimestring (date-time)
When the message was sent. If omitted, the message will be sent by Gorgias.
sourceobject6 fields
stripped_htmlstring
HTML version of the body of the message without email signatures and previous replies.
stripped_signaturestring
Signature stripped from the body of the message
stripped_textstring
Text version of the body of the message without email signatures and previous replies.
subjectstring
Subject of the message
viastring
How the message has been received or sent from Gorgias
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformhelpdeskhelp-centerinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-notephoneruleshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendeskDefault "api"
mention_idsarray<integer>
List of User IDs to mention along with the internal note.
receiverobject9 fields
senderobject9 fields
metaobject
Metadata associated with the ticketYou can use this field to store structured information (key-value data) about the ticket
opened_datetimestring (date-time)
When the ticket was opened for the first time by a User
prioritystring
One ofcriticalhighnormallow
snooze_datetimestring (date-time)
When the ticket will be re-opened automatically
spamboolean
Whether the ticket is considered as spam
Default false
split_frominteger
ID of the ticket that this ticket was split from.
statusstring
One ofopenclosed
subjectstring
Subject of the ticket
tagsarray<object>
The tags associated with the ticket
namestringrequired
Name of the tag
decorationobject1 fields
trashed_datetimestring (date-time)
When the ticket was moved to the trash
updated_datetimestring (date-time)
When the ticket was lastly updated
viastring
How the first message of the ticket has been received or sent from Gorgias
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformhelpdeskhelp-centerinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-notephoneruleshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendeskDefault "api"
importedboolean
Whether the ticket was created by a historical import. When set to true, the ticket and all its messages are flagged as imported.
Returns 201 with an object. Read it in later steps with {{createTicket.response.data.<field>}}.
idinteger
ID of the ticket.
uristring
URI of the ticket.
external_idstring
External ID of the ticket in a foreign system. This field is not used by Gorgias, feel free to set it as you wish.
eventsarray<object>
All `action-executed` [events](#the-event-object) with the related user if any on the ticket.<br/><span style={{color: 'red'}}>This parameter has been deprecated.</span> Use [events api](/reference/list-events) instead.
The channel used to initiate the conversation with the customer.
viastring
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformgorgias_chathelp-centerhelpdeskinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-noteoffline_capturephoneruleself_serviceshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendesk
from_agentboolean
Whether the first message of the ticket was sent by your company to a customer, or the opposite.
spamboolean
Whether the ticket is considered as spam or not.
importedboolean
Whether the ticket was created by a historical import.
customerobject
idintegerrequired
ID of the customer.
emailstringrequired
Primary email address of the customer.
namestringrequired
Full name of the customer
firstnamestringrequired
First name of the customer.
lastnamestringrequired
Last name of the customer.
metaanyrequired
User defined JSON field. It can be useful for storing additional info about the object.
channelsarray<object>required9 fields
The [customer's contact channels](#the-customerchannel-object).
dataanyrequired
customeranyrequired
integrationsobjectrequired
Data coming from integrations (Shopify, Recharge, HTTP, etc...) associated with the customer. Keys of the object are integration IDs, values are raw data collected from the integrations.
external_idstringrequired
ID of the customer in a foreign system (Stripe, Aircall, etc...). This field is not used by Gorgias, feel free to set it as you wish.
notestringrequired
A note associated with the customer.
external_dataobject
External data associated with the customer.
ecommerce_dataobject
Ecommerce data associated with the customer.
assignee_userobject
idintegerrequired
ID of the user.
emailstringrequired
Email address of the user. `password_confirmation` field must be provided to change the email.
namestringrequired
Full name of the user.
firstnamestringrequired
First name of the user.
lastnamestringrequired
Last name of the user.
metaanyrequired
Data associated with the user.
biostringrequired
Short biography of the user.
languagestring
The language primarily used in the ticket.
The language is automatically detected on the first messages by Gorgias if not set explicitly. Once the language has been set, it won't be updated according to future messages.
subjectstring
The subject of the ticket.
summaryobject
contentstringrequired
The content of the AI summary.
created_datetimestring (date-time)required
When the ticket was summarized by AI for the first time.
updated_datetimestring (date-time)required
When the ticket was summarized by AI for the last time.
triggered_byintegerrequired
The id of the user who triggered the summary generation, if triggered manually.
metaany
tagsarray<object>
[Tags](#the-tag-object) linked to the ticket.
idintegerrequired
ID of the tag
namestringrequired
Name of the tag. Tags' names are case sensitive.
decorationobjectrequired1 fields
custom_fieldsobject
The custom fields associated with the ticket.
messagesarray<object>
Messages of the ticket.
idintegerrequired
ID of the message.
uristringrequired
URI of the message.
message_idstringrequired
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_idintegerrequired
The ID of the ticket the message is associated with.
external_idstringrequired
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
channeloneOfrequired
The channel used to send the message.
viastringrequired
One ofaircallapichatcontact_formemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationsformgorgias_chathelp-centerhelpdeskinstagraminstagram-ad-commentinstagram-commentinstagram-direct-messageinstagram-mentioninternal-noteoffline_capturephoneruleself_serviceshopifysmstwiliotwittertwitter-direct-messagewhatsappyotpoyotpo-reviewzendesk
sourceobjectrequired6 fields
senderobjectrequired6 fields
auth_customer_identityobjectrequired2 fields
integration_idintegerrequired
ID of the integration that either received or sent the message.
intentsarray<object>required3 fields
rule_idintegerrequired
ID of the rule which sent the message, if any.
from_agentbooleanrequired
Whether the message was sent by your company to a customer, or the opposite.
receiverobjectrequired6 fields
subjectstringrequired
The subject of the message.
body_textstringrequired
The full text version of the body of the message, if any.
body_htmlstringrequired
The full HTML version of the body of the message, if any.
stripped_textstringrequired
The text version of the body of the message without email signatures and previous replies.
stripped_htmlstringrequired
The HTML version of the body of the message without email signatures and previous replies.
stripped_signaturestringrequired
attachmentsarray<object>required6 fields
A list of files attached to the message.
macrosarray<object>1 fields
A list of macros.
actionsarray<object>required
A list of actions executed before the message was sent. These actions are set by macros.
headersobject
Message headers. Used for email messages.
importedbooleanrequired
Whether the message was created by a historical import.
metaanyrequired
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)required
When the message was created.
processed_datetimestring (date-time)required
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)required
When the message was sent. If omitted, the message will be sent by Gorgias.
failed_datetimestring (date-time)required
When the message failed to be sent. Messages that couldn't be sent can be resend.
opened_datetimestring (date-time)required
When the message was opened by the primary receiver.
last_sending_errorobjectrequired1 fields
is_retriablebooleanrequired
It determines if the message can be retried or not.
replied_byobject7 fields
replied_toobject7 fields
created_datetimestring (date-time)
When the ticket was created.
processed_datetimestring (date-time)
When the ticket was processed by Gorgias. Differs from `created_datetime` which refers to the external service.
opened_datetimestring (date-time)
When the ticket was opened for the first time by a user.
last_received_message_datetimestring (date-time)
When the last customer's message was sent.
last_message_datetimestring (date-time)
When the last message was sent.
updated_datetimestring (date-time)
When the ticket was lastly updated.
closed_datetimestring (date-time)
When the ticket was closed.
trashed_datetimestring (date-time)
When the ticket was moved to the trash.
snooze_datetimestring (date-time)
When the ticket will be re-opened.
satisfaction_surveyobject
idintegerrequired
ID of the survey.
customer_idintegerrequired
The ID of the customer who filled the survey.
ticket_idintegerrequired
The ID of the ticket the survey is associated with.
sent_datetimestring (date-time)required
When the survey was sent. If is not set it means that it was not sent yet.
scored_datetimestring (date-time)required
When the survey was filled by the customer.
should_send_datetimestring (date-time)required
When the survey should be sent. If not set then the survey will not be sent by Gorgias.
created_datetimestring (date-time)required
When the survey was created.
scoreintegerrequired
The level of satisfaction. Scores range from 1 to 5.
body_textstringrequired
The comment sent by the customer.
metaobjectrequired
Data associated with the satisfaction survey. You can use this parameter to store structured information (key-value data) about the satisfaction survey. This field is not used by Gorgias.