Source Intelligence
Sweep 28 Aug 2026 ยท 00:00Z Build v2.1.250 478 read Stable v2.1.236 Latest v2.1.250 Next v2.1.250 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

One change

files

build-with-claude/files

first seen The page's own history The capture it came from

Nearest release: v2.1.239, published 2 hours 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.

build-with-claude/files Changed · +16 / -25 lines

from line 123
   ```
 
   ```php PHP
-  // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
-  $file = $client->beta->files->upload(
-      FileParam::fromResource(fopen('/path/to/document.pdf', 'rb'), contentType: 'application/pdf'),
+  $file = $client->files->upload(
+      file: FileParam::fromResource(fopen('/path/to/document.pdf', 'rb'), contentType: 'application/pdf'),
   );
 
   $fileId = $file->id;
from line 329
   ```
 
   ```php PHP
-  // The PHP SDK supports file_id document and image sources only through $client->beta->messages with the files beta.
-  $response = $client->beta->messages->create(
+  $response = $client->messages->create(
       maxTokens: 1024,
       messages: [
           [
from line 340
                       'type' => 'document',
                       'source' => [
                           'type' => 'file',
-                          'file_id' => $fileId
-                      ]
-                  ]
-              ]
-          ]
+                          'fileID' => $fileId,
+                      ],
+                  ],
+              ],
+          ],
       ],
       model: 'claude-opus-5',
-      betas: ['files-api-2025-04-14'],
   );
 
-  print_r($response);
+  echo $response;
   ```
 
   ```ruby Ruby
from line 691
   ```
 
   ```bash CLI
-  ant files list \
-    --max-items 10
+  ant files list --max-items 10
   ```
 
   ```python Python
from line 735
   ```
 
   ```php PHP
-  // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
-  // list() paginates with afterID, beforeID, and limit; page and ids[] are not parameters here.
   $client = new Client();
 
-  $files = $client->beta->files->list();
+  $files = $client->files->list();
   echo $files;
   ```
 
from line 798
   ```
 
   ```php PHP
-  // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
-  $file = $client->beta->files->retrieveMetadata($fileId);
+  $file = $client->files->retrieveMetadata($fileId);
   echo $file;
   ```
 
from line 848
   ```
 
   ```php PHP
-  // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
-  $client->beta->files->delete($fileId);
+  $client->files->delete($fileId);
   ```
 
   ```ruby Ruby
from line 924
   ```
 
   ```php PHP
-  // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
-  $fileContent = $client->beta->files->download($fileId);
+  $fileContent = $client->files->download($fileId);
 
-  file_put_contents("downloaded_file.txt", $fileContent);
+  file_put_contents('downloaded_file.txt', $fileContent);
   ```
 
   ```ruby Ruby