Skip to main content
GET
/
posts
/
{post}
/
preview
curl https://app.trypost.it/api/posts/9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c/preview \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "post_id": "9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
  "original_content": "Launch day! ... very long text ...",
  "original_length": 850,
  "platforms": [
    {
      "post_platform_id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
      "platform": "x",
      "content_type": "x_post",
      "sanitized_content": "Launch day! ...",
      "sanitized_length": 280,
      "max_content_length": 280,
      "truncated": true
    },
    {
      "post_platform_id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
      "platform": "linkedin",
      "content_type": "linkedin_post",
      "sanitized_content": "Launch day! ... very long text ...",
      "sanitized_length": 850,
      "max_content_length": 3000,
      "truncated": false
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.trypost.it/llms.txt

Use this file to discover all available pages before exploring further.

Path parameters

post
string
required
The UUID of the post.

Behaviour

  • The post must belong to the caller’s current workspace; otherwise the response is 404.
  • Returns the original content alongside per-platform sanitized versions and length statistics.
  • truncated is true when the platform’s max_content_length forced the content to be shortened.

Response

{
  "post_id": "9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
  "original_content": "Launch day! ... very long text ...",
  "original_length": 850,
  "platforms": [
    {
      "post_platform_id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
      "platform": "x",
      "content_type": "x_post",
      "sanitized_content": "Launch day! ...",
      "sanitized_length": 280,
      "max_content_length": 280,
      "truncated": true
    },
    {
      "post_platform_id": "b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e",
      "platform": "linkedin",
      "content_type": "linkedin_post",
      "sanitized_content": "Launch day! ... very long text ...",
      "sanitized_length": 850,
      "max_content_length": 3000,
      "truncated": false
    }
  ]
}
curl https://app.trypost.it/api/posts/9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c/preview \
  -H "Authorization: Bearer YOUR_API_KEY"