Skip to main content
POST
Upload a media attachment

Authorizations

Authorization
string
header
required

eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"7972fd3d-6383-42b8-9e96-4a57a7c82d37"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Query Parameters

client_request_id
string<uuid>
required

Client-generated correlation ID (UUID). Required for request tracing and idempotency.

Body

multipart/form-data
file
file
required

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

url
string

Full URL of the attachment

Example:

"https://cdn.etoro.com/rich-media/images/johndoe/abc-2025-01-15.jpg"

title
string

Title of the attachment

Example:

"Tesla Q4 Earnings Chart"

host
string

Host domain of the attachment

Example:

"cdn.etoro.com"

description
string

Short description of the attachment

Example:

"Tesla quarterly earnings breakdown"

mediaType
enum<string>

Type of media

Available options:
None,
Link,
Image,
Video
Example:

"Image"

media
object

Media content details