{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/anthropic/main/json-schema/anthropic-file-list-response-schema.json", "title": "FileListResponse", "x-generated": "2026-09-23", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/anthropic-files-api-openapi.yml#/components/schemas/FileListResponse", "properties": { "data": { "items": { "$ref": "#/$defs/FileMetadataSchema" }, "type": "array", "title": "Data", "description": "List of file metadata objects." }, "next_page": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Page", "description": "Opaque cursor for the next page. Supply as `?page=` to fetch the next page; null when there are no more results." } }, "type": "object", "required": [ "data" ], "$defs": { "FileMetadataSchema": { "properties": { "created_at": { "description": "RFC 3339 datetime string representing when the file was created.", "format": "date-time", "title": "Created At", "type": "string" }, "downloadable": { "default": false, "description": "Whether the file can be downloaded.", "title": "Downloadable", "type": "boolean" }, "expires_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "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.", "title": "Expires At" }, "filename": { "description": "Original filename of the uploaded file.", "maxLength": 500, "minLength": 1, "title": "Filename", "type": "string" }, "id": { "description": "Unique object identifier.\n\nThe format and length of IDs may change over time.", "title": "Id", "type": "string" }, "mime_type": { "description": "MIME type of the file.", "maxLength": 255, "minLength": 1, "title": "Mime Type", "type": "string" }, "size_bytes": { "description": "Size of the file in bytes.", "minimum": 0, "title": "Size Bytes", "type": "integer" }, "type": { "const": "file", "description": "Object type.\n\nFor files, this is always `\"file\"`.", "title": "Type", "type": "string" } }, "required": [ "created_at", "filename", "id", "mime_type", "size_bytes", "type" ], "title": "FileMetadataSchema", "type": "object" } } }