> ## Documentation Index
> Fetch the complete documentation index at: https://api.alphainsider.com/llms.txt
> Use this file to discover all available pages before exploring further.

# previewPost

> Preview a new timeline post.



## OpenAPI

````yaml /openapi.yaml post /previewPost
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /previewPost:
    post:
      tags:
        - Timelines
      summary: previewPost
      description: Preview a new timeline post.
      operationId: previewPost
      parameters:
        - $ref: '#/components/parameters/api_token'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - strategy_id
              properties:
                strategy_id:
                  $ref: '#/components/schemas/strategy_id'
                description:
                  type: string
                  description: Post description.
                url:
                  type: string
                  format: url
                  description: Post url.
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: object
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    properties:
                      created_at:
                        $ref: '#/components/schemas/created_at'
                      strategy_id:
                        $ref: '#/components/schemas/strategy_id'
                      user_id:
                        $ref: '#/components/schemas/user_id'
                      likes:
                        type: string
                        description: Like count.
                      liked:
                        type: boolean
                        description: Whether the authenticated user liked the event.
                      type:
                        type: string
                        description: Type or category for this object.
                      data:
                        type: object
                        description: Timeline event-specific payload.
                        properties:
                          description:
                            type: string
                            description: Human-readable description.
                          url:
                            type: string
                            description: Related URL.
                          content:
                            type: object
                            description: Preview metadata for a linked URL.
                            properties:
                              site:
                                type: string
                                description: Website host for preview content.
                              type:
                                type: string
                                description: Type or category for this object.
                              image:
                                type: string
                                description: Preview image URL.
                              title:
                                type: string
                                description: Preview title.
                              description:
                                type: string
                                description: Human-readable description.
              examples:
                '200':
                  value:
                    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
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
components:
  parameters:
    api_token:
      in: header
      name: Authorization
      description: User API token.
      required: true
      schema:
        type: string
        format: JWT
  schemas:
    strategy_id:
      type: string
      description: AlphaInsider strategy identifier.
    success:
      type: boolean
      description: True when the request succeeded.
    created_at:
      type: string
      format: date-time
      description: Creation timestamp.
    user_id:
      type: string
      description: AlphaInsider user identifier.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.
    '401':
      description: Authentication failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '401':
              value:
                success: false
                response: Authentication failed.

````