Skip to content

Create Ticket Request Payload

You can create a Ticket

ticket_type_idstringrequired

The ID of the type of ticket you want to create

Example:"1234"
contactsArray of objectsrequired

The list of contacts (users or leads) affected by this ticket. Currently only one is allowed

Example:
[ { "id": "1234" } ]
company_idstring

The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom

Example:"5f4d3c1c-7b1b-4d7d-a97e-6095715c6632"
created_atinteger

The time the ticket was created. If not provided, the current time will be used.

Example:1590000000
ticket_attributesobject(Ticket Attributes)

The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are _default_title_ and _default_description_. When setting ticket type attributes of the list attribute type, the key should be the attribute name and the value of the attribute should be the list item id, obtainable by listing the ticket type. For example, if the ticket type has an attribute called priority of type list, the key should be priority and the value of the attribute should be the guid of the list item (e.g. de1825a0-0164-4070-8ca6-13e22462fa7e).

Example:
{ "_default_title_": "Found a bug", "_default_description_": "The button is not working" }
assignmentobject
{ "ticket_type_id": "1234", "contacts": [ {} ], "conversation_to_link_id": "1234", "company_id": "5f4d3c1c-7b1b-4d7d-a97e-6095715c6632", "created_at": 1590000000, "ticket_attributes": { "_default_title_": "Found a bug", "_default_description_": "The button is not working" }, "assignment": { "admin_assignee_id": "123", "team_assignee_id": "8" } }