List the valid content_types per platform plus their constraints (length budgets, allowed media types, default content_type).
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.
POST /api/posts and PUT /api/posts/{id} accept a platforms[] array where each entry has a social_account_id and a content_type. The valid content_type values depend on the platform: linkedin_post for LinkedIn, x_post for X, instagram_feed / instagram_reel / instagram_story for Instagram, etc.
This endpoint exposes the catalog so clients can build correct payloads without hard-coding the matrix.
| Field | Description |
|---|---|
platform | Platform identifier used in social_accounts.platform (e.g. linkedin, x, instagram). |
max_content_length | Hard cap enforced at publish time. Posts exceeding this are truncated. |
recommended_content_length | Soft target — the platform’s “good post” length. Useful for AI generation. |
allowed_media_types | Media types accepted by the platform (image, video, document). |
default_content_type | The content_type to use when the caller doesn’t pick one. |
content_types[].value | Pass this in platforms[].content_type on POST /api/posts. |
content_types[].max_media_count | Max number of media items for this format. |
content_types[].requires_media | Whether at least one media item is required (e.g. Instagram Story). |