provider Conversations POST /conversations/{conversation_id}/convert
@utdk/intercom /conversations/{conversation_id}/convert
Convert a conversation to a ticket
You can convert a conversation to a ticket.
Intercom-Version header
enum: 1.0, 1.1, 1.2, 1.3…
conversation_id path required
The id of the conversation to target
integer

Try it

Authentication
Configure credentials for Intercom API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

convertconversationtoticket
POST/conversations/{conversation_id}/convert
You can convert a conversation to a ticket.

Parameters

required

The id of the conversation to target

Input

required

The ID of the type of ticket you want to convert the conversation to

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`).

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import intercom from '@utdk/intercom';

await intercom.convertconversationtoticket({
  "Intercom-Version": "2.14"
})