Claude Platform Docs

파일

파일 업로드
$ ant beta:files upload
POST/v1/files
파일 목록 조회
$ ant beta:files list
GET/v1/files
파일 다운로드
$ ant beta:files download
GET/v1/files/{file_id}/content
파일 메타데이터 조회
$ ant beta:files retrieve-metadata
GET/v1/files/{file_id}
파일 삭제
$ ant beta:files delete
DELETE/v1/files/{file_id}
Models
beta_deleted_file: object{ id, type }
id: string

ID of the deleted file.

type: optional "file_deleted"

Deleted object type.

For file deletion, this is always "file_deleted".

beta_file_metadata: object{ id, created_at, filename, 6 more }
beta_file_scope: object{ id, type }
id: string

The ID of the scoping resource (e.g., the session ID).

type: "session"

The type of scope (e.g., "session").