---
title: "Get Session Context"
method: GET
path: "/internal/runs/{run_id}/session-context"
tags: ["internal"]
---

# Get Session Context

`GET /internal/runs/{run_id}/session-context`

Everything the entrypoint needs for this turn: the frozen system prompt
(decision 13, read from the session row), the verbatim user message, the
resume key, the reset-banner flag (decision 12) and the model.

## Path parameters

- `run_id` string, uuid, required

## Response `200`

Successful Response

- TurnContextResponse — Everything the sandbox entrypoint needs to run one turn.
  - `session_id` string, required
  - `company_id` string, required
  - `trigger` string, required
  - `turn_trigger` string, required
  - `sdk_session_id` string, nullable
  - `system_prompt` string, required
  - `user_message` string, required
  - `reset_banner` boolean
  - `model` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) · [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nanocorp/nanocorp-api/revisions/04b208d3215b/schema)
