Upload a media attachment
Two-step media upload: clients first upload a file here to receive an Attachment object, then pass its url in a POST /feeds/post or POST /reactions/…/comment payload. Accepts multipart/form-data with a binary file field. Supported formats: JPEG and PNG. Maximum file size: 8 MB (8,388,608 bytes). The returned url is a plain CDN URL scoped to the uploading user.
Headers
A unique request identifier.
"388629d6-720d-42df-afc4-1674c04c2c7a"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Query Parameters
Client-generated correlation ID (UUID). Required for request tracing and idempotency.
Body
Required. The image file to upload. Supported formats: JPEG and PNG. Maximum size: 8 MB (8,388,608 bytes), enforced server-side.
Response
Attachment uploaded successfully
Media or link attachment
Full URL of the attachment
"https://cdn.etoro.com/rich-media/images/johndoe/abc-2025-01-15.jpg"
Title of the attachment
"Tesla Q4 Earnings Chart"
Host domain of the attachment
"cdn.etoro.com"
Short description of the attachment
"Tesla quarterly earnings breakdown"
Type of media
None, Link, Image, Video "Image"
Media content details