---
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`

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/sessions/{session_id}/chain_of_thought`
- Auth: none declared

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

## Path parameters

- `session_id` string, uuid, 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.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
