Claude Platform Docs

File

Carica file
FileMetadata Files.Upload(parameters, cancellationToken = default)
POST/v1/files
Elenca i file
FileListPage Files.List(parameters, cancellationToken = default)
GET/v1/files
Scarica file
HttpResponse Files.Download(parameters, cancellationToken = default)
GET/v1/files/{file_id}/content
Ottieni metadati del file
FileMetadata Files.RetrieveMetadata(parameters, cancellationToken = default)
GET/v1/files/{file_id}
Elimina file
DeletedFile Files.Delete(parameters, cancellationToken = default)
DELETE/v1/files/{file_id}
Models
class DeletedFile { Type; ID; }
Type Type

Deleted object type.

For file deletion, this is always "file_deleted".

required string ID

ID of the deleted file.

class FileMetadata { Type = "file"; ID; CreatedAt; /* 5 more */ }
JsonElement Type = "file"

Object type.

For files, this is always "file".

required string ID

Unique object identifier.

The format and length of IDs may change over time.

required DateTimeOffset CreatedAt

RFC 3339 datetime string representing when the file was created.

formatdate-time
required string Filename

Original filename of the uploaded file.

maxLength500
minLength1
required string MimeType

MIME type of the file.

maxLength255
minLength1
required long SizeBytes

Size of the file in bytes.

minimum0
bool Downloadable

Whether the file can be downloaded.

DateTimeOffset? ExpiresAt

RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with expires_in_seconds, this is the upload time plus that value.

formatdate-time