eToro · Schema
Attachments
List of attachments for a post or comment (request body format)
Social TradingCopy TradingInvestingMarket DataPortfolio ManagementFintechTradingStocksCryptocurrencyETFs
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/api-evangelist/etoro/refs/heads/main/json-schema/Attachments.json",
"title": "Attachments",
"type": "array",
"description": "List of attachments for a post or comment (request body format)",
"items": {
"type": "object",
"description": "Media or link attachment",
"properties": {
"url": {
"type": "string",
"description": "Full URL of the attachment",
"example": "https://cdn.etoro.com/rich-media/images/johndoe/abc-2025-01-15.jpg"
},
"title": {
"type": "string",
"description": "Title of the attachment",
"example": "Tesla Q4 Earnings Chart"
},
"host": {
"type": "string",
"description": "Host domain of the attachment",
"example": "cdn.etoro.com"
},
"description": {
"type": "string",
"description": "Short description of the attachment",
"example": "Tesla quarterly earnings breakdown"
},
"mediaType": {
"type": "string",
"enum": [
"None",
"Link",
"Image"
],
"description": "Type of media (video not supported for upload)",
"example": "Image"
},
"media": {
"type": "object",
"description": "Media content details (images only)",
"properties": {
"image": {
"type": "object",
"description": "Image dimensions and URL",
"properties": {
"width": {
"type": "integer",
"description": "Width in pixels",
"example": 1200
},
"height": {
"type": "integer",
"description": "Height in pixels",
"example": 630
},
"url": {
"type": "string",
"description": "Image URL",
"example": "https://cdn.etoro.com/rich-media/images/johndoe/abc-2025-01-15.jpg"
}
}
}
}
}
}
}
}