---
title: "Get Agent Session Context"
method: GET
path: "/agent/session-context/{session_id}"
tags: ["Agent"]
---

# Get Agent Session Context

`GET /agent/session-context/{session_id}`

Return stored agent context for a LiveKit worker.

LiveKit room metadata must remain small, so rooms carry only a session reference.
The agent worker uses this endpoint to load the larger agent_data payload.

## Path parameters

- `session_id` string, required

## Query parameters

- `room_name` string, nullable — Optional room name guard for the session lookup

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
