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

# List Channel Threads

> This endpoint gets a channel threads.

### Body

### Response

<ResponseField name="id" type="string">
  This is the id of the channel\_thread
</ResponseField>

<ResponseField name="name" type="string">
  This is the name of the channel\_thread
</ResponseField>

<ResponseField name="uuid" type="string">
  This is the uuid of the channel\_thread
</ResponseField>

<ResponseField name="user_id" type="string">
  This is the user\_id of the channel\_thread
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request GET 'https://api.stateset.com/v1/channel_threads' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  ```

  ```graphQL GraphQL theme={null}

  query MyChannelThread {
    channel_thread {
      id
      created_at
      name
      system_prompt
      user_id
      messages {
        id
        body
        channel_id
        chat_id
        created_at
        date
        deliveredReceipt
        from
        fromMe
        likes
        messageNumber
        points
        sentReceipt
        timestamp
        to
      }
    }
  }


  ```

  ```js Node.js theme={null}
  const channel_threads = await stateset.channel_threads.retrieve({
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  });
  ```

  ```py Python theme={null}
  channel_threads = stateset.channel_threads.retrieve({
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  })
  ```

  ```go Golang  theme={null}
  channel_threads, err := stateset.Messages.Retrieve(
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  )
  ```

  ```ruby Ruby theme={null}
  channel_threads = Stateset::Messages.retrieve(
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  )
  ```

  ```java Java theme={null}
  ChannelThread channel_threads = Stateset.ChannelThreads.retrieve(
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  );
  ```

  ```csharp C# theme={null}
  ChannelThread channel_threads = Stateset.ChannelThreads.Retrieve(
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  );
  ```

  ```php PHP theme={null}
  $channel_threads = Stateset\ChannelThreads::retrieve(
    'ct_1NXWPnCo6bFb1KQto6C8OWvE'
  );
  ```

  ```http HTTP theme={null}
  GET /v1/channel_threads HTTP/1.1
  Host: api.stateset.com
  Content-Type: application/json
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}

  {
      "data": {
          "message": {
              "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
              "body": "Hello World",
              "created_at": "2021-01-01T00:00:00.000000Z",
              "date": "2021-01-01",
              "deliveredReceipt": true,
              "from": "user1",
              "fromMe": true,
              "is_public": true,
              "messageNumber": 1,
              "sentReceipt": true,
              "time": "00:00:00",
              "timestamp": "2021-01-01T00:00:00.000000Z",
              "to": "user2",
              "user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
              "username": "user1"
          }
      }
  }


  ```
</ResponseExample>
