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

# Get Post Previews

> Returns rendered previews of X posts as they will appear when promoted, for published, draft, or scheduled posts

Returns rendered previews of X posts as they will appear when promoted, for published, draft, or scheduled posts.

| | |
| - | - |
| **App** | X Ads |
| **Operation ID** | `x_ads_get_post_previews` |
| **Type** | Action |
| **Connection** | `x_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the X Ads account that owns the posts. |
| `post_ids` | string or array of string | Yes | - | Post IDs to preview (list or comma-separated string, up to 200). Take these from the id\_str or tweet\_id field, never a numeric id: X ids are 64-bit and any tool that stores them as a number rounds them into a post that does not exist. |
| `tweet_type` | enum (`PUBLISHED`, `DRAFT`, `SCHEDULED`) | No | `PUBLISHED` | The type of the posts being previewed: PUBLISHED (default), DRAFT, or SCHEDULED. |

## Output

**Type**: `List[Dict]`

Returns a preview per post, each with an embeddable preview HTML fragment.

**Fields**: dynamic (depend on the inputs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.