--- url: "https://platform.claude.com/docs/en/api/files" titulek: "Files - Claude API Reference" h1: "Files" popis: "API reference for Files endpoints" jazyk: "en" kanonicka: "https://platform.claude.com/docs/en/api/files" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 02:25:44" znaku: 1700 slov: 184 kodovani: "iso-8859-2" sha256: "67835f0e59c9712274583d520b21a72f4ce8a443aa36c1e1fddb47d34b518fdc" --- ### Cookie settings We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy [here](https://www.anthropic.com/legal/cookies). # Files ##### [Upload File](/docs/en/api/http/files/upload) POST /v1/files ##### [List Files](/docs/en/api/http/files/list) GET /v1/files ##### [Download File](/docs/en/api/http/files/download) GET /v1/files/{file_id}/content ##### [Get File Metadata](/docs/en/api/http/files/retrieve_metadata) GET /v1/files/{file_id} ##### [Delete File](/docs/en/api/http/files/delete) DELETE /v1/files/{file_id} ##### Models DeletedFile object{ type, id }type: optional "file_deleted"Deleted object type.For file deletion, this is always `"file_deleted"`.defaultfile_deletedid: stringID of the deleted file. FileMetadata object{ type, id, created_at, 5 more }type: "file"Object type.For files, this is always `"file"`.id: stringUnique object identifier.The format and length of IDs may change over time.created_at: stringRFC 3339 datetime string representing when the file was created.formatdate-timefilename: stringOriginal filename of the uploaded file.maxLength500minLength1mime_type: stringMIME type of the file.maxLength255minLength1size_bytes: numberSize of the file in bytes.minimum0downloadable: optional booleanWhether the file can be downloaded.defaultfalseexpires_at: optional string or nullRFC 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