Tickets

Everything about your tickets

Operations

MethodEndpointDescription
POST/tickets/{ticket_id}/replyReply to a ticket
POST/tickets/{ticket_id}/tagsAdd tag to a ticket
DELETE/tickets/{ticket_id}/tags/{tag_id}Remove tag from a ticket
POST/tickets/{ticket_id}/linked_conversationsLink a conversation to a ticket
DELETE/tickets/{ticket_id}/linked_conversations/{id}Unlink a conversation from a ticket
POST/ticketsCreate a ticket
POST/tickets/enqueueEnqueue create ticket
GET/tickets/{ticket_id}Retrieve a ticket
PUT/tickets/{ticket_id}Update a ticket
DELETE/tickets/{ticket_id}Delete a ticket
POST/tickets/{ticket_id}/change_typeChange ticket type
POST/tickets/searchSearch tickets

Example

Retrieve a ticket, with the TypeScript SDK:

ts
import { Intercom } from "@octridev/intercom";

const client = new Intercom({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.intercom.io",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.tickets.get({
  ticketId: "ticket-1",
});
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.