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

files changedmanaged-agents/files

Nearest release: v2.1.238, published an hour before 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+3added
Lines−1removed
From line 71 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits18to this page, all time

The whole hunk

from line 71, old and new numbered
/
lines
from line 71
7171 ```
7272 
7373 ```php PHP
74 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
7475 $file = $client->beta->files->upload(
7576 FileParam::fromResource(fopen($csvPath, 'r'), filename: 'data.csv', contentType: 'text/csv'),
7677 );
from line 538
537538 
538539## Listing and downloading session files
539540 
540Use the [Files API](https://platform.claude.com/docs/en/build-with-claude/files) to list files scoped to a session and download them. Filtering by `scope_id` requires the `managed-agents-2026-04-01` beta header, so the list examples use the `beta` files namespace and pass that header explicitly. Downloading a file doesn't require a beta header.
541Use the [Files API](https://platform.claude.com/docs/en/build-with-claude/files) to list files scoped to a session and download them. Filtering by `scope_id` requires the `managed-agents-2026-04-01` beta header, so the list examples use the `beta` files namespace and pass that header explicitly.
541542 
542543<CodeGroup>
543544 ```bash cURL
from line 651
650651 ```
651652 
652653 ```php PHP
654 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
653655 // List files associated with a session
654656 $files = $client->beta->files->list(
655657 scopeID: 'sesn_abc123',
Feedback