You can get a list of all ticket states for a workspace.
Security
bearerAuth
Intercom-Versionstring(intercom_version)
Intercom API version.
By default, it's equal to the version set in the app package.
Default:"Preview"
Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:Preview
- The production API serverhttps://api.intercom.io/ticket_states
- The european API serverhttps://api.eu.intercom.io/ticket_states
- The australian API serverhttps://api.au.intercom.io/ticket_states
using System;
using System.Net.Http;
using System.Threading.Tasks;
public class Program
{
public static async Task Main()
{
System.Net.Http.HttpClient client = new()
{
DefaultRequestHeaders =
{
{"Intercom-Version", "Preview"},
{"Authorization", "Bearer <YOUR_TOKEN_HERE>"},
}
};
using HttpResponseMessage request = await client.GetAsync("https://api.intercom.io/ticket_states");
string response = await request.Content.ReadAsStringAsync();
Console.WriteLine(response);
}
}successful
dataArray of objects(Ticket State)
A list of ticket states associated with a given ticket type.
Response
{ "type": "list", "data": [ { … }, { … }, { … }, { … }, { … }, { … } ] }