> ## 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.

# Create Draft Post

> Creates a draft post in an X Ads account for review before publishing

Creates a draft post in an X Ads account for review before publishing. Media can be attached by URL or media\_key, along with a card.

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

## Inputs

| Field        | Type                      | Required | Default | Description                                                                                                                                                                                                                                         |
| ------------ | ------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`    | DynamicAccount            | Yes      | -       | Select the X Ads account to create the draft post in.                                                                                                                                                                                               |
| `text`       | string                    | No       | -       | The draft's text. Required unless media is attached.                                                                                                                                                                                                |
| `media_urls` | string or array of string | No       | -       | Media to upload and attach (list or comma-separated). Up to 4 images, or 1 GIF, or 1 video. Accepts direct URLs, Google Drive share links with sharing set to 'Anyone with the link', or files uploaded through Markifact. Use this OR media\_keys. |
| `media_keys` | string or array of string | No       | -       | Already-uploaded media keys to attach, e.g. from x\_ads\_upload\_media. Up to 4 images, or 1 GIF, or 1 video.                                                                                                                                       |
| `card_uri`   | string                    | No       | -       | Card to attach, from x\_ads\_create\_card (card://...).                                                                                                                                                                                             |
| `nullcast`   | boolean                   | No       | `True`  | true (default) marks the draft as Promoted-only when it is published.                                                                                                                                                                               |
| `name`       | string                    | No       | -       | Internal name for the draft, up to 80 characters.                                                                                                                                                                                                   |
| `as_user_id` | string                    | No       | -       | User id to draft on behalf of. Defaults to the connected user; only set this when drafting for another handle you have access to.                                                                                                                   |

## Output

**Type**: `Dict`

Returns the created draft post with full details including its id.

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