> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Intercom List Ticket States: Inputs, Cost & CLI Example

> List all ticket states. Intercom Intercom List Ticket States docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=intercom_list_ticket_states:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

Input schema is not available yet.

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "You can get a list of all ticket states for a workspace.",
    "properties": {},
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                                  |
| ------------- | -------- | -------- | ------- | ------------------------------------------------------------ |
| `result.data` | `object` | Yes      |         | A list of ticket states associated with a given ticket type. |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging).               |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "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`."
          },
          "data": {
            "type": "array",
            "description": "A list of ticket states associated with a given ticket type.",
            "items": {
              "type": [
                "object",
                "null"
              ],
              "description": "A ticket state, used to define the state of a ticket.",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "String representing the object's type. Always has the value `ticket_state`."
                },
                "id": {
                  "type": "string",
                  "description": "The id of the ticket state"
                },
                "category": {
                  "type": "string",
                  "description": "The category of the ticket state",
                  "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"
                },
                "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."
                },
                "archived": {
                  "type": "boolean",
                  "description": "Whether the ticket state is archived"
                },
                "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`."
                    },
                    "data": {
                      "type": "array",
                      "description": "A list of ticket type attributes associated with a given ticket type.",
                      "items": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "description": "A ticket type, used to define the data fields to be captured in a ticket.",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "String representing the object's type. Always has the value `ticket_type`."
                          },
                          "id": {
                            "type": "string",
                            "description": "The id representing the ticket type."
                          },
                          "category": {
                            "type": "string",
                            "description": "Category of the Ticket Type.",
                            "enum": [
                              "Customer",
                              "Back-office",
                              "Tracker"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the ticket type"
                          },
                          "description": {
                            "type": "string",
                            "description": "The description of the ticket type"
                          },
                          "icon": {
                            "type": "string",
                            "description": "The icon of the ticket type"
                          },
                          "workspace_id": {
                            "type": "string",
                            "description": "The id of the workspace that the ticket type belongs to."
                          },
                          "ticket_type_attributes": {
                            "type": "object",
                            "description": "A list of attributes associated with a given ticket type.",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "String representing the object's type. Always has the value `ticket_type_attributes.list`."
                              },
                              "ticket_type_attributes": {
                                "type": "array",
                                "description": "A list of ticket type attributes associated with a given ticket type.",
                                "items": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "description": "Ticket type attribute, used to define each data field to be captured in a ticket.",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "String representing the object's type. Always has the value `ticket_type_attribute`."
                                    },
                                    "id": {
                                      "type": "string",
                                      "description": "The id representing the ticket type attribute."
                                    },
                                    "workspace_id": {
                                      "type": "string",
                                      "description": "The id of the workspace that the ticket type attribute belongs to."
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "The name of the ticket type attribute"
                                    },
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the ticket type attribute"
                                    },
                                    "data_type": {
                                      "type": "string",
                                      "description": "The type of the data attribute (allowed values: \"string list integer decimal boolean datetime files\")"
                                    },
                                    "input_options": {
                                      "type": "object",
                                      "description": "Input options for the attribute"
                                    },
                                    "order": {
                                      "type": "integer",
                                      "description": "The order of the attribute against other attributes"
                                    },
                                    "required_to_create": {
                                      "type": "boolean",
                                      "description": "Whether the attribute is required or not for teammates.",
                                      "default": false
                                    },
                                    "required_to_create_for_contacts": {
                                      "type": "boolean",
                                      "description": "Whether the attribute is required or not for contacts.",
                                      "default": false
                                    },
                                    "visible_on_create": {
                                      "type": "boolean",
                                      "description": "Whether the attribute is visible or not to teammates.",
                                      "default": true
                                    },
                                    "visible_to_contacts": {
                                      "type": "boolean",
                                      "description": "Whether the attribute is visible or not to contacts.",
                                      "default": true
                                    },
                                    "default": {
                                      "type": "boolean",
                                      "description": "Whether the attribute is built in or not."
                                    },
                                    "ticket_type_id": {
                                      "type": "integer",
                                      "description": "The id of the ticket type that the attribute belongs to."
                                    },
                                    "archived": {
                                      "type": "boolean",
                                      "description": "Whether the ticket type attribute is archived or not."
                                    },
                                    "created_at": {
                                      "type": "integer",
                                      "description": "The date and time the ticket type attribute was created.",
                                      "format": "timestamp"
                                    },
                                    "updated_at": {
                                      "type": "integer",
                                      "description": "The date and time the ticket type attribute was last updated.",
                                      "format": "timestamp"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "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`."
                              },
                              "data": {
                                "type": "array",
                                "description": "A list of ticket states associated with a given ticket type.",
                                "items": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "description": "A ticket state, used to define the state of a ticket.",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "description": "String representing the object's type. Always has the value `ticket_state`."
                                    },
                                    "id": {
                                      "type": "string",
                                      "description": "The id of the ticket state"
                                    },
                                    "category": {
                                      "type": "string",
                                      "description": "The category of the ticket state",
                                      "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"
                                    },
                                    "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."
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "archived": {
                            "type": "boolean",
                            "description": "Whether the ticket type is archived or not."
                          },
                          "created_at": {
                            "type": "integer",
                            "description": "The date and time the ticket type was created.",
                            "format": "timestamp"
                          },
                          "updated_at": {
                            "type": "integer",
                            "description": "The date and time the ticket type was last updated.",
                            "format": "timestamp"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute intercom_list_ticket_states --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
