Upload message 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 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" } ]}GETGet campaign statistics
Global and per step statistics of a multichannel campaign.
POSTUpload a LinkedIn voice note
Converts an audio file (webm expected, 10 MB maximum, 5 minutes maximum) to m4a and returns a PUBLIC URL plus its duration IN MILLISECONDS, to use as an attachment with mediaType: "AUDIO" in a MESSAGE step.