---
title: "Get Chain Of Thought"
method: GET
path: "/sessions/{session_id}/chain_of_thought"
---

# Get Chain Of Thought

`GET /sessions/{session_id}/chain_of_thought`

Get chain of thought messages for a session, optionally filtered by user_chat_id.

## Path parameters

- `session_id` string, required

## Query parameters

- `user_chat_id` string, nullable

## Response `200`

Successful Response

- GetChainOfThoughtResponse — Response for get_chain_of_thought endpoint.
  - `chain_of_thought` ChainOfThoughtMessage[], required
    - `id` string, required
    - `session_id` string, required
    - `user_chat_id` string, nullable, required
    - `response_type` string, nullable, required
    - `streamed_content` object, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/traversal/apis/fastapi.md) · [All operations](https://skmtc.net/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traversal/fastapi/revisions/2134ebffd1ef/schema)
