# List all ticket states

`GET /ticket_states`

> This is a subset of the full specification, limited to the `GET /ticket_states` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.12/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.12'
  description: This is a subset of the full specification, limited to the `GET /ticket_states` operation. Components more than 3 `$ref` hops away are not included.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Ticket States
    description: Everything about your ticket states
paths:
  /ticket_states:
    get:
      summary: List all ticket states
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
      tags:
        - Ticket States
      operationId: listTicketStates
      description: You can get a list of all ticket states for a workspace.
      responses:
        '200':
          description: successful
          content:
            application/json:
              examples:
                successful:
                  value:
                    type: list
                    data:
                      - type: ticket_state
                        id: '2521'
                        category: submitted
                        internal_label: Submitted
                        external_label: Submitted
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '3'
                              name: my-ticket-type-3
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '4'
                              name: my-ticket-type-4
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '6'
                              name: my-ticket-type-6
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
                      - type: ticket_state
                        id: '2522'
                        category: in_progress
                        internal_label: In progress
                        external_label: In progress
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '3'
                              name: my-ticket-type-3
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '4'
                              name: my-ticket-type-4
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '6'
                              name: my-ticket-type-6
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
                      - type: ticket_state
                        id: '2523'
                        category: waiting_on_customer
                        internal_label: Waiting on customer
                        external_label: Waiting on you
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '3'
                              name: my-ticket-type-3
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '4'
                              name: my-ticket-type-4
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '6'
                              name: my-ticket-type-6
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
                      - type: ticket_state
                        id: '2524'
                        category: resolved
                        internal_label: Resolved
                        external_label: Resolved
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '3'
                              name: my-ticket-type-3
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '4'
                              name: my-ticket-type-4
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '6'
                              name: my-ticket-type-6
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
                      - type: ticket_state
                        id: '2525'
                        category: submitted
                        internal_label: Admin label 1
                        external_label: User label
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '3'
                              name: my-ticket-type-3
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                            - type: ticket_type
                              id: '4'
                              name: my-ticket-type-4
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
                      - type: ticket_state
                        id: '2526'
                        category: submitted
                        internal_label: Admin label 2
                        external_label: User label
                        ticket_types:
                          type: list
                          data:
                            - type: ticket_type
                              id: '6'
                              name: my-ticket-type-6
                              description: my ticket type description is awesome.
                              icon: 🦁
                              archived: false
                              is_internal: false
                              category: Back-office
                        archived: false
              schema:
                $ref: '#/components/schemas/ticket_state_list'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: 8b8e536e-1902-4169-83b2-337218a1c098
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              field:
                type: string
                nullable: true
                description: Optional. Used to identify a particular field or query parameter that was in error.
                example: email
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>By default, it's equal to the version set in the app package.
      type: string
      example: '2.12'
      default: '2.12'
      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'
        - Preview
    ticket_state_detailed:
      title: Ticket State
      type: object
      x-tags:
        - Tickets
      description: A ticket state, used to define the state of a ticket.
      nullable: true
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `ticket_state`.
          example: ticket_state
        id:
          type: string
          description: The id of the ticket state
          example: '12'
        category:
          type: string
          description: The category of the ticket state
          example: in_progress
          enum:
            - submitted
            - in_progress
            - waiting_on_customer
            - resolved
        internal_label:
          type: string
          description: The state the ticket is currently in, in a human readable form - visible in Intercom
          example: With Dev Team
        external_label:
          type: string
          description: The state the ticket is currently in, in a human readable form - visible to customers, in the messenger, email and tickets portal.
          example: In Progress
        archived:
          type: boolean
          description: Whether the ticket state is archived
          example: false
        ticket_types:
          type: object
          description: A list of ticket types associated with a given ticket state.
          properties:
            type:
              type: string
              description: String representing the object's type. Always has the value `list`.
              example: list
            data:
              type: array
              description: A list of ticket type attributes associated with a given ticket type.
              items:
                $ref: '#/components/schemas/ticket_type'
    ticket_state_list:
      title: Ticket States
      type: object
      description: A list of ticket states associated with a given ticket type.
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `list`.
          example: list
        data:
          type: array
          description: A list of ticket states associated with a given ticket type.
          items:
            $ref: '#/components/schemas/ticket_state_detailed'
    ticket_type:
      title: Ticket Type
      type: object
      x-tags:
        - Tickets
      description: A ticket type, used to define the data fields to be captured in a ticket.
      nullable: true
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `ticket_type`.
          example: ticket_type
        id:
          type: string
          description: The id representing the ticket type.
          example: '1295'
        category:
          type: string
          description: Category of the Ticket Type.
          enum:
            - Customer
            - Back-office
            - Tracker
          example: Customer
        name:
          type: string
          description: The name of the ticket type
          example: Bug
        description:
          type: string
          description: The description of the ticket type
          example: A bug that has been reported.
        icon:
          type: string
          description: The icon of the ticket type
          example: 🐞
        workspace_id:
          type: string
          description: The id of the workspace that the ticket type belongs to.
          example: ecahpwf5
        ticket_type_attributes:
          $ref: '#/components/schemas/ticket_type_attribute_list'
        ticket_states:
          title: Ticket States
          type: object
          description: A list of ticket states associated with a given ticket type.
          properties:
            type:
              type: string
              description: String representing the object's type. Always has the value `list`.
              example: list
            data:
              type: array
              description: A list of ticket states associated with a given ticket type.
              items:
                $ref: '#/components/schemas/ticket_state'
        archived:
          type: boolean
          description: Whether the ticket type is archived or not.
          example: false
        created_at:
          type: integer
          format: timestamp
          description: The date and time the ticket type was created.
        updated_at:
          type: integer
          format: timestamp
          description: The date and time the ticket type was last updated.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
