The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: List Files
3url: https://platform.claude.com/docs/en/api/beta/files/list
4---
5
16# List Files
27
38**GET** `/v1/files`
from line 39
3439
3540 - `string`
3641
37 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
42 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3843
3944 - `"message-batches-2024-09-24"`
4045
from line 87
8287
8388 - `"user-profiles-2026-08-18"`
8489
90 - `"user-profiles-2026-09-04"`
91
8592 - `"advisor-tool-2026-03-01"`
8693
8794 - `"managed-agents-2026-04-01"`
from line 131
124131
125132 - `"mid-conversation-system-clear-at-2026-08-21"`
126133
134- `"anthropic-workspace-id": optional string`
135
127136## Returns
128137
129138- `data: array of BetaFileMetadata`
from line 139
130139
131140 List of file metadata objects.
132141
142 - `type: "file"`
143
144 Object type.
145
146 For files, this is always `"file"`.
147
133148 - `id: string`
134149
135150 Unique object identifier.
from line 175
160175
161176 minimum: 0
162177
163 - `type: "file"`
164
165 Object type.
166
167 For files, this is always `"file"`.
168
169178 - `downloadable: optional boolean`
170179
171180 Whether the file can be downloaded.
from line 191
182191
183192 The scope of this file, indicating the context in which it was created (e.g., a session).
184193
185 - `id: string`
186
187 The ID of the scoping resource (e.g., the session ID).
188
189194 - `type: "session"`
190195
191196 The type of scope (e.g., `"session"`).
197
198 - `id: string`
199
200 The ID of the scoping resource (e.g., the session ID).
192201
193202- `next_page: optional string or null`
194203