The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get Session Resource
3url: https://platform.claude.com/docs/en/api/beta/sessions/resources/retrieve
4---
5
16# Get Session Resource
27
38**GET** `/v1/sessions/{session_id}/resources/{resource_id}`
from line 23
1823
1924 - `string`
2025
21 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
26 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2227
2328 - `"message-batches-2024-09-24"`
2429
from line 71
6671
6772 - `"user-profiles-2026-08-18"`
6873
74 - `"user-profiles-2026-09-04"`
75
6976 - `"advisor-tool-2026-03-01"`
7077
7178 - `"managed-agents-2026-04-01"`
from line 115
108115
109116 - `"mid-conversation-system-clear-at-2026-08-21"`
110117
118- `"anthropic-workspace-id": optional string`
119
111120## Returns
112121
113122- `BetaManagedAgentsGitHubRepositoryResource object`
114123
124 - `type: "github_repository"`
125
115126 - `id: string`
116127
117128 - `created_at: string`
from line 133
122133
123134 - `mount_path: string`
124135
125 - `type: "github_repository"`
126
127136 - `updated_at: string`
128137
129138 A timestamp in RFC 3339 format
from line 145
136145
137146 - `BetaManagedAgentsBranchCheckout object`
138147
148 - `type: "branch"`
149
139150 - `name: string`
140151
141152 Branch name to check out.
from line 153
142153
143154 minLength: 1, maxLength: 255
144155
145 - `type: "branch"`
146
147156 - `BetaManagedAgentsCommitCheckout object`
148157
158 - `type: "commit"`
159
149160 - `sha: string`
150161
151162 Full commit SHA to check out.
from line 163
152163
153164 minLength: 7, maxLength: 64
154165
155 - `type: "commit"`
156
157166- `BetaManagedAgentsFileResource object`
158167
168 - `type: "file"`
169
159170 - `id: string`
160171
161172 - `created_at: string`
from line 179
168179
169180 - `mount_path: string`
170181
171 - `type: "file"`
172
173182 - `updated_at: string`
174183
175184 A timestamp in RFC 3339 format
from line 189
180189
181190 A memory store attached to an agent session.
182191
192 - `type: "memory_store"`
193
183194 - `memory_store_id: string`
184195
185196 The memory store ID (memstore_...). Must belong to the caller's organization and workspace.
186
187 - `type: "memory_store"`
188197
189198 - `access: optional "read_write" or "read_only" or null`
190199