Skip to main content
POST
/
previewPost
previewPost
curl --request POST \
  --url https://alphainsider.com/api/previewPost \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy_id": "<string>",
  "description": "<string>",
  "url": "<string>"
}
'
{
  "success": true,
  "response": {
    "created_at": "2024-10-22T21:37:32.493Z",
    "strategy_id": "WuRnay0CF3P1oPRSdogj5",
    "user_id": "user_1",
    "likes": "0",
    "liked": false,
    "type": "post",
    "data": {
      "description": "Test",
      "url": "https://www.coindesk.com/markets/2024/10/22/paul-tudor-jones-all-roads-lead-to-inflation-hes-long-bitcoin-and-gold/",
      "content": {
        "site": "www.coindesk.com",
        "type": "summary",
        "title": "Paul Tudor Jones: 'All Roads Lead to Inflation;' He's Long Bitcoi...",
        "description": "The U.S. government's debt and deficit issues aren't going anywhere no matter who wins the presidency next month, said Jones.",
        "image": "https://alphainsider-temp-images.s3.us-east-2.amazonaws.com/nz2JxmthgYBqYYfDI6Mrn"
      }
    }
  }
}

Headers

Authorization
string<JWT>
required

User API token.

Body

application/json
strategy_id
string
required

Strategy ID.

description
string

Post description.

url
string<url>

Post url.

Response

Request was successful.