Claude Platform Docs

Descargar archivo

$client->files->download(string fileID, ?string workspaceID): download
GET/v1/files/{file_id}/content

Descargar archivo

Parameters
fileID: string

ID of the File.

workspaceID?:optional string
Returns
mixed
Descargar archivo
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$response = $client->files->download(
  'file_id', workspaceID: 'wrkspc_011CZkZaBF1tNoB5wlCeusgy'
);

var_dump($response);