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 prefixing it with
ATTACHMENT:
on its own line
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}"
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
The file to upload
Response
File successfully uploaded
A string URL where the uploaded file can be accessed