Upload an attachment
Session Endpoints
Upload an attachment
Upload files for Devin to work with during sessions. Supports various file types including code, data, and documentation files.
POST
Upload an attachment
This endpoint uploads files to our servers and returns a URL that you can reference in Devin sessions. The file isn’t automatically sent to any session - you need to include the URL in your prompts.Documentation Index
Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
Use this file to discover all available pages before exploring further.
How to Use Uploaded Files
To reference an uploaded file in a Devin session:- Upload the file using this endpoint to get a URL
- Include the URL in your prompt when creating a session or sending a message
- Format the URL correctly by putting
ATTACHMENT:"{file_url}"on its own line in your prompt
Complete Example
ATTACHMENT: prefix must be on its own line in the prompt with the URL enclosed in double quotes, exactly as shown above: ATTACHMENT:"{url}". To attach multiple files, add one ATTACHMENT:"{file_url}" line per file.