---
title: "Get Session By Id"
method: GET
path: "/studio/sessions/{session_id}"
tags: ["AI_STUDIO"]
---

# Get Session By Id

`GET /studio/sessions/{session_id}`

Get a specific AI playground session by ID with its turns

## Path parameters

- `session_id` string, required

## Query parameters

- `navigationSource` string, nullable

## Response `200`

Successful Response

- SessionResponse
  - `session` Session, required
    - `session_id` string, required
    - `name` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `knowledge` string[], nullable
    - `datamates` integer[], nullable
    - `status` 'failed' | 'completed' | 'pending' | 'cancelled'
    - `session_intent` string, nullable
  - `turns` ChatBlock[], required
    - `id` integer, required
    - `role` 'user' | 'assistant' | 'system', required
    - `timestamp` string, date-time, required
    - `content` Content[], required
      - `id` integer, required
      - `type` 'tool_result' | 'write' | 'custom' | 'bash' | 'read' | 'tool_use' | 'tool_call' | 'agent_outcome' | 'text' | 'error' | 'opportunity_draft', required
      - `content` union
        - string
        - object
      - `timestamp` string, date-time, required
      - `error_type` string, nullable
      - `finding` object, nullable
      - `error_code` string, nullable
    - `attachments` Attachment[]
      - `id` string, required
      - `attachment_name` string, required
      - `file_type` string, nullable
      - `s3_url` string, nullable
      - `extracted_content` string, nullable
      - `order` integer, required
      - `attachment_type` string, required
      - `attachment_reference_id` string, nullable
      - `file_size` integer, nullable
      - `created_on` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/103580dad816/schema)
