Upload message attachments

POST
/advanced/attachments

Uploads 1 to 3 files (20 MB maximum each) and returns their URLs, to reference in versions[].attachments of EMAIL, MESSAGE or WHATSAPP steps. Files are stored as is with a PUBLIC URL: anyone with the URL can download them.

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/advanced/attachments" \  -H "Authorization: YOUR_API_KEY" \  -F attachments="[    \"string\"  ]"
{  "success": true,  "attachments": [    {      "url": "https://eml-public.s3.eu-west-3.amazonaws.com/linkedin/attachments/6650f1a2b839d80011c5a001/1760000000000_ab12cd34ef56ab78_brochure.pdf",      "name": "brochure.pdf"    }  ]}