---
title: "Get a session"
method: GET
path: "/api/sessions/{id}"
tags: ["Sessions"]
---

# Get a session

`GET /api/sessions/{id}`

## Request

- Base URL: `https://your-deployment.example.com`
- URL: `https://your-deployment.example.com/api/sessions/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Reads a session you own or that was shared with you (called a "notebook" in the product UI): its name, attached knowledge files, tags, and retrieval settings. Use it to confirm what a `PUT` on the same path stored. A session not visible to you, or one that was deleted, is `404`. An API key needs `notebooks:read` or `notebooks:write`.

## Path parameters

- `id` string, required

## Response `200`

The session.

- GetSessionResponse200
  - `id` string, required
  - `_id` string
  - `name` string, required
  - `userId` string, required
  - `knowledgeIds` string[]
  - `artifactIds` string[]
  - `tags` object[]
    - `name` string, required
    - `strength` number, required
  - `forceKnowledgeRetrieval` boolean
  - `retrievalTags` string[]
  - `lakeScopeExplicit` boolean: True when `retrievalTags` is a deliberate choice, so an empty list means "no lake" rather than "any".
  - `includeLibraryFiles` boolean: Whether the session grounds on your own library alongside its lakes. Absent when never set.
  - `lastUsedModel` string, nullable
  - `firstCreated` string, date-time, required
  - `lastUpdated` string, date-time, required

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The API key does not hold any of the required scopes.
- `404`: No session with that id is visible to the caller.
- `405`: The path does not serve this HTTP method.
- `422`: Request failed validation.
- `429`: Per-user rate limit exceeded.

---

[API](https://skmtc.dev/bike4mind/apis/bike4mind-api.md) · [All operations](https://skmtc.dev/bike4mind/apis/bike4mind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bike4mind/apis/bike4mind-api/revisions/db47495b892f?raw)
