# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand. overlay: 1.0.0 info: title: API Evangelist conversational phrasing for Dify Service Files API version: 1.0.0 extends: openapi/dify-files-api-openapi.yml actions: - target: $.info update: x-apievangelist-phrasing: method: generated generated: '2026-09-26' generator: build-phrasing.py label: Generated by API Evangelist operations: 2 - target: $.paths['/files/upload'].post update: x-apievangelist-phrasing: intent: Upload a file to attach to messages or runs effect: write questions: - How do I upload a local file so I can attach it to a chat message or workflow run? - Which end user owns an uploaded file if I leave the user out? instructions: - text: Upload {file} for end user {user}. slots: file: requestBody.file user: requestBody.user - text: Upload the file {file} and give me its ID to attach later. slots: file: requestBody.file method: generated generated: '2026-09-26' - target: $.paths['/files/{file_id}/preview'].get update: x-apievangelist-phrasing: intent: Download or preview an uploaded file effect: read questions: - Can I get back the raw bytes of a file that was uploaded to my app? - Is there a way to force an uploaded file to download instead of rendering in the browser? instructions: - text: Preview uploaded file {file_id}. slots: file_id: path.file_id - text: Download file {file_id} as an attachment. slots: file_id: path.file_id method: generated generated: '2026-09-26'