{ "opencollection": "1.0.0", "info": { "name": "Moonshot AI Batch Files API", "version": "1.0.0" }, "items": [ { "info": { "name": "Files", "type": "folder" }, "items": [ { "info": { "name": "List Files", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.ai/v1/files", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Lists all files uploaded by the current user." }, { "info": { "name": "Upload File", "type": "http" }, "http": { "method": "POST", "url": "https://api.moonshot.ai/v1/files", "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" }, { "name": "purpose", "type": "text", "value": "" } ] }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Uploads a file for extraction, image understanding, or video understanding." }, { "info": { "name": "Get File Information", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.ai/v1/files/:file_id", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "The file identifier" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves metadata for a specific uploaded file." }, { "info": { "name": "Delete File", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.moonshot.ai/v1/files/:file_id", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "The file identifier" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a previously uploaded file." }, { "info": { "name": "Get File Content", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.ai/v1/files/:file_id/content", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "The file identifier" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves extracted text content for files uploaded with purpose `file-extract`." } ] } ], "bundled": true }