{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can create a new ticket.","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"body":{"allOf":[{"$ref":"#/definitions/create_ticket_request"}],"properties":{"skip_notifications":{"type":"boolean","description":"Option to disable notifications when a Ticket is created.","examples":[true]}},"examples":[{"ticket_type_id":"88","contacts":[{"id":"6762f2d81bb69f9f2193bc54"}],"ticket_attributes":{"_default_title_":"example","_default_description_":"there is a problem"}}]}},"required":[],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"create_ticket_request":{"description":"You can create a Ticket","type":"object","title":"Create Ticket Request Payload","properties":{"ticket_type_id":{"type":"string","description":"The ID of the type of ticket you want to create","examples":["1234"]},"contacts":{"type":"array","description":"The list of contacts (users or leads) affected by this ticket. Currently only one is allowed. Required for Customer and Back-office ticket types, and optional for Tracker ticket types.","items":{"type":"object","oneOf":[{"title":"ID","properties":{"id":{"type":"string","description":"The identifier for the contact as given by Intercom."}},"required":["id"]},{"title":"External ID","properties":{"external_id":{"type":"string","description":"The external_id you have defined for the contact who is being added as a participant."}},"required":["external_id"]},{"title":"Email","properties":{"email":{"type":"string","description":"The email you have defined for the contact who is being added as a participant. If a contact with this email does not exist, one will be created."}},"required":["email"]}]},"examples":[[{"id":"1234"}]]},"conversation_to_link_id":{"type":"string","description":"The ID of the conversation you want to link to the ticket. Here are the valid ways of linking two tickets:\n - conversation | back-office ticket\n - customer tickets | non-shared back-office ticket\n - conversation | tracker ticket\n - customer ticket | tracker ticket","examples":["1234"]},"company_id":{"type":"string","description":"The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom","examples":["5f4d3c1c-7b1b-4d7d-a97e-6095715c6632"]},"created_at":{"type":"integer","description":"The time the ticket was created. If not provided, the current time will be used.","examples":[1590000000]},"ticket_attributes":{"$ref":"#/definitions/ticket_request_custom_attributes"},"assignment":{"type":"object","properties":{"admin_assignee_id":{"type":"string","description":"The ID of the admin to which the ticket is assigned. If not provided, the ticket will be unassigned.","examples":["123"]},"team_assignee_id":{"type":"string","description":"The ID of the team to which the ticket is assigned. If not provided, the ticket will be unassigned.","examples":["8"]}}},"channel":{"type":"string","description":"The channel for the ticket. Only supported for customer ticket types. Defaults to messenger if not provided.","enum":["email"],"examples":["email"]}},"required":["ticket_type_id"]},"ticket_request_custom_attributes":{"title":"Ticket Attributes","type":"object","description":"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](ref:get_ticket-types). 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`). For a `files` attribute, pass an array of upload ids; for a `relationship` attribute, pass an array of related object ids as strings.","additionalProperties":{"anyOf":[{"type":["string","null"]},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"integer"}},{"type":"array","items":{"type":"string"}}]},"examples":[{"_default_title_":"Found a bug","_default_description_":"The button is not working"}]}}},"name":"Create a ticket","id":"intercom.createticket","example":{},"maxRequests":1,"summary":false}}