cURL
curl --request POST \ --url https://api.devin.ai/v3beta1/organizations/{org_id}/attachments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "attachment_id": "<string>", "name": "<string>", "url": "<string>" }
Upload a file attachment that can be used in Devin sessions.
UseDevinSessions
Service User credential (prefix: cog_)
Successful Response