---
title: "Get Agent Session Context"
method: GET
path: "/api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/context"
---

# Get Agent Session Context

`GET /api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/context`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/context`
- Auth: HTTP bearer

Get current authorized entity context for a session.

## Path parameters

- `workspace-slug` string, required
- `agent-session-id` string, uuid, required

## Response `200`

Resource

- PromptContext
  - `text` string, required
  - `truncated` boolean, required
  - `comment_text` string

## Other responses

- `400`: Schema mismatch
- `403`: **Either:** (1) Resource does not exist **or** (2)
- `404`: **Either:** (1) Resource does not exist **or** (2)
- `409`: **Either:** (1) Resource does not exist **or** (2)
- `422`: **Either:** (1) Resource does not exist **or** (2)
- `503`: **Either:** (1) Resource does not exist **or** (2)

## Changes

- **2026-10-15** `46322a38c246`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shortcut-com/apis/shortcut-api/changes/api/v4/:workspace-slug/agent-sessions/:agent-session-id/context/get.md)

---

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