Tickets
Everything about your tickets
Operations
| Method | Endpoint | Description |
|---|---|---|
POST | /tickets/{ticket_id}/reply | Reply to a ticket |
POST | /tickets/{ticket_id}/tags | Add tag to a ticket |
DELETE | /tickets/{ticket_id}/tags/{tag_id} | Remove tag from a ticket |
POST | /tickets/{ticket_id}/linked_conversations | Link a conversation to a ticket |
DELETE | /tickets/{ticket_id}/linked_conversations/{id} | Unlink a conversation from a ticket |
POST | /tickets | Create a ticket |
POST | /tickets/enqueue | Enqueue 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_type | Change ticket type |
POST | /tickets/search | Search 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.