---
title: "Get Session"
method: POST
path: "/session/get"
---

# Get Session

`POST /session/get`

Return an interactive session with a given id for the current user.

Args:
    request (GetSessionRequest): a request containing the id of the session.
    user (Annotated[User, Depends): the current user.
    session (Annotated[Session, Depends): the database session.

Raises:
    HTTPException: could not find an interactive session with the given id
        for the current user.

Returns:
    InteractiveSessionInfo: info on the requested interactive session.

## Request body

- GetSessionRequest — Model of the request to get a specific session.
  - `session_id` integer, required

## Response `200`

Successful Response

- InteractiveSessionBase — The base model for representing interactive sessions.
  - `id` integer, nullable, required
  - `user_id` integer, nullable, required
  - `info` string, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/industrial-optimization-group/apis/desdeo-fast-api.md) · [All operations](https://skmtc.net/industrial-optimization-group/apis/desdeo-fast-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/industrial-optimization-group/desdeo-fast-api/revisions/c24fa4e23380/schema)
