## Headers
The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Upload File
3url: https://platform.claude.com/docs/en/api/files/upload
4---
5
16# Upload File
27
38**POST** `/v1/files`
from line 9
49
510Upload File
611
12## Headers
13
14- `"anthropic-workspace-id": optional string`
15
716## Body parameters (form-data)
817
918- `file: string`
1019
11 The file to upload
20 The file to upload. Only the final path component of the part's `filename` is kept; an absent or empty `filename` is replaced with `unnamed` plus the extension for the file's stored `mime_type`, when known.
1221
1322 format: binary
1423
from line 31
2231
2332- `FileMetadata object`
2433
34 - `type: "file"`
35
36 Object type.
37
38 For files, this is always `"file"`.
39
2540 - `id: string`
2641
2742 Unique object identifier.
from line 66
5166 Size of the file in bytes.
5267
5368 minimum: 0
54
55 - `type: "file"`
56
57 Object type.
58
59 For files, this is always `"file"`.
6069
6170 - `downloadable: optional boolean`
6271