from line 1
1---
2title: Add Session Resource
3url: https://platform.claude.com/docs/en/api/beta/sessions/resources/add
4---
1# Add Session Resource
52
6## Add Session Resource
3**POST** `/v1/sessions/{session_id}/resources`
74
8**post** `/v1/sessions/{session_id}/resources`
9
105Add Session Resource
116
12### Path Parameters
7## Path parameters
138
149- `session_id: string`
1510
16### Header Parameters
11## Headers
1712
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914
from line 86
9186
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388
94### Body Parameters
89## Body parameters
9590
9691- `file_id: string`
9792
9893 ID of a previously uploaded file.
9994
95 minLength: 1, maxLength: 128
96
10097- `type: "file"`
10198
102 - `"file"`
103
10499- `mount_path: optional string or null`
105100
106101 Mount path in the container. Defaults to `/mnt/session/uploads/<file_id>`.
107102
108### Returns
103 minLength: 1, maxLength: 4096
109104
110- `BetaManagedAgentsFileResource object { id, created_at, file_id, 3 more }`
105## Returns
111106
107- `BetaManagedAgentsFileResource object`
108
112109 - `id: string`
113110
114111 - `created_at: string`
from line 112
115112
116113 A timestamp in RFC 3339 format
117114
115 format: date-time
116
118117 - `file_id: string`
119118
120119 - `mount_path: string`
from line 120
121120
122121 - `type: "file"`
123122
124 - `"file"`
125
126123 - `updated_at: string`
127124
128125 A timestamp in RFC 3339 format
129126
130### Example
127 format: date-time
131128
132```http
129## Example
130
131```bash
133132curl https://api.anthropic.com/v1/sessions/$SESSION_ID/resources \
134133 -H 'Content-Type: application/json' \
135134 -H 'anthropic-version: 2023-06-01' \
from line 141
142141 }'
143142```
144143
145#### Response
144### Response (200)
146145
147146```json
148147{
No line in this hunk matches that.