Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Retrieve a local session changedapi/compliance/apps/sessions/local/retrieve

Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+14added
Lines−15removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits11to this page, all time

# Retrieve a local session ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Retrieve a local session ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Retrieve a local session
3url: https://platform.claude.com/docs/en/api/compliance/apps/sessions/local/retrieve
4---
1# Retrieve a local session
52 
6## Retrieve a local session
3**GET** `/v1/compliance/apps/sessions/local/{local_session_id}`
74 
8**get** `/v1/compliance/apps/sessions/local/{local_session_id}`
9 
105Retrieve one local session.
116 
127The response is the same session object the list endpoint returns,
from line 9
149enforced when the response is served: a session whose every
1510inference call has aged out returns 404.
1611 
17### Path Parameters
12## Path parameters
1813 
1914- `local_session_id: string`
2015 
21### Header Parameters
16## Headers
2217 
2318- `"x-api-key": optional string`
2419 
25### Returns
20## Returns
2621 
2722- `id: string`
2823 
from line 27
3227 
3328 Timestamp of the session's first retained inference call (RFC 3339, UTC). When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected, so this value is the timestamp of the earliest retained call: always strictly after the boundary, never the boundary itself.
3429 
30 format: date-time
31 
3532- `organization_uuid: string`
3633 
3734 UUID of the child organization the session belongs to
from line 39
4239 
4340- `type: "compliance_local_session"`
4441 
45 - `"compliance_local_session"`
42 default: compliance_local_session
4643 
4744- `updated_at: string`
4845 
4946 Timestamp of the session's last retained inference call (RFC 3339, UTC). Always at or after `created_at`. When a session's activity spans the child organization's retention boundary, calls older than the boundary are no longer reflected — but because retention removes only the oldest calls, this value (unlike `created_at`) is unaffected until the entire session has aged out. On the list endpoint this value is a lower bound: for a session still active at a page or `created_at.lt` window boundary it can momentarily lag the session's true last activity. Retrieving the session, or its messages, always reflects the exact latest retained call.
5047 
51- `user: object { id, email_address }`
48 format: date-time
5249 
50- `user: object`
51 
5352 The authenticated user at the time of the session. Always set; `user.id` is always populated. `user.email_address` is null when the user's account has been deleted or the user is no longer a member of an organization the key may read.
5453 
5554 - `id: string`
from line 63
6463 
6564 Workspace identifier (tagged ID, prefixed `wrkspc_`). Null for sessions not attributed to a workspace.
6665 
67### Example
66## Example
6867 
69```http
68```bash
7069curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID \
7170 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
7271```
7372 
74#### Response
73### Response (200)
7574 
7675```json
7776{
Feedback