GhostfeedGhostfeed MCPv13.2.0
REST API

Studio

The agent slideshow creation path: start a blank deck, search Pinterest and Google Images, read a TikTok/Instagram post to copy, browse the library images, save the images you use as slide assets, and write each slide as HTML, seeing each render, with the dashboard updating live. Classic slides in older decks are edited with the set_slide_* tools. The agent is the creative director. (The one-shot server-composed create is a dashboard-only convenience, not exposed here.)

POST /api/v2/pinterest/search

READ

MCP twin: search_pinterest

Search Pinterest for scenes with up to 8 queries (default 6 images each); returns URLs, free. Inspect promising source pixels as needed. Save the winning URL with save_slide_asset (source type pinterest, with its query) to preserve the search. An HTML slide uses the returned ref; a classic slide takes it with set_slide_background. To SHOW these results in an MCP Apps host, ALWAYS call render_library; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "queries": {
      "minItems": 1,
      "maxItems": 8,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "description": "Up to 8 Pinterest search queries. Search for SCENES, not topics: candid photos of moments, never concept words that fetch infographics."
    },
    "perQuery": {
      "description": "Images to return per query (default 6).",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "queries"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "results": [
      {
        "query": "candid morning skincare routine bathroom mirror",
        "imageUrls": [
          "https://i.pinimg.com/originals/a1/b2/c3/a1b2c3skincare1.jpg",
          "https://i.pinimg.com/originals/d4/e5/f6/d4e5f6skincare2.jpg"
        ]
      }
    ],
    "nextSteps": "Inspect promising candidates or the chosen source for relevance, quality, baked-in text and watermarks. Reuse pixels already available; fetch additional images only when needed. Then save_slide_asset with the winning URL and its query so the editor can reopen and shuffle the search, and use its ref in the slide HTML; a classic slide takes it with set_slide_background."
  }
}

POST /api/v2/google-images/search

READ

MCP twin: search_google_images

Search Google Images for real pictures of named things: a person, company, product, place, logo, website, artwork or event. Up to 8 queries; returns image URLs with the page each one is on. Free. LOOK at a picture before using it, then save it with save_slide_asset source type url. An HTML slide uses the returned ref; a classic slide takes it with set_slide_background.

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "queries": {
      "minItems": 1,
      "maxItems": 8,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      },
      "description": "Up to 8 Google Images queries. Name the real thing you need: a person, company, product, place, logo, website, artwork or event."
    },
    "limit": {
      "description": "Images to return per query (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "queries"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "results": [
      {
        "query": "Eiffel Tower at night",
        "images": [
          {
            "url": "https://upload.wikimedia.org/wikipedia/commons/a/a8/Tour_Eiffel_Wikimedia_Commons.jpg",
            "width": 2848,
            "height": 4272,
            "thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcEiffel",
            "title": "Eiffel Tower - Wikipedia",
            "source": "Wikipedia",
            "pageUrl": "https://en.wikipedia.org/wiki/Eiffel_Tower"
          }
        ]
      }
    ],
    "nextSteps": "LOOK at a candidate before using it: check it shows the right thing, is sharp enough, and has no watermark or baked-in text. Then save_slide_asset with source type url and the image url, and use its ref in the slide HTML; a classic slide takes it with set_slide_background."
  }
}

POST /api/v2/social/read

READ

MCP twin: read_social_post

Older tool, kept for existing callers: new callers use import_template_from_social_post, then get_slideshow_template. Read a TikTok Photo Mode or Instagram carousel source: caption, slide count, and image URLs. Inspect the images, then create_blank_slideshow and copy it the way the ghostfeed-slideshow-clone skill says: fresh images, and the words of the source or new ones, as the user chose. Free to read; the first deck build edit costs 1 credit.

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "A TikTok Photo Mode or Instagram post (/p/) URL to read as a source to copy."
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "platform": "tiktok",
    "sourceUrl": "https://www.tiktok.com/@creator/photo/7301234567890123456",
    "caption": "the 5 habits that fixed my skin ✨ #skincare #glowup",
    "slideCount": 5,
    "slides": [
      {
        "position": 0,
        "imageUrl": "https://cdn.ghostfeed.ai/scraped/64f1/s0.jpg"
      },
      {
        "position": 1,
        "imageUrl": "https://cdn.ghostfeed.ai/scraped/64f1/s1.jpg"
      }
    ],
    "nextSteps": "This is the SOURCE to copy, not your deck. LOOK at the slide images and read the caption, then create_blank_slideshow with this slideCount and hand-build the copy the way the ghostfeed-slideshow-clone skill says: the same design and beats, FRESH images, and the source's words or new ones, as the user chose. The deck costs 1 credit on your first build edit."
  }
}

GET /api/v2/collections/:collectionId/images

READ

MCP twin: list_collection_images

List collection image URLs and AI captions for background selection (default 30 per page). Save a chosen image with save_slide_asset to place it on a slide. That is the HTML path; a classic slide takes it with set_slide_background. To SHOW these results in an MCP Apps host, ALWAYS call render_library; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Path parameters: collectionId (from the URL).

Query parameters
{
  "type": "object",
  "properties": {
    "collectionId": {
      "type": "string",
      "maxLength": 100,
      "description": "A collection id from list_collections."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Per page (max 100). Each tool documents its own default.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "collectionId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "collection": {
      "id": "64f1c2a1b2c3d4e5f6073000",
      "name": "Skincare UGC"
    },
    "images": [
      {
        "url": "https://cdn.ghostfeed.ai/collections/64f1/img1.jpg",
        "caption": "Woman applying serum in a sunlit bathroom"
      },
      {
        "url": "https://cdn.ghostfeed.ai/collections/64f1/img2.jpg"
      }
    ],
    "total": 24,
    "page": 1,
    "pages": 1
  }
}

GET /api/v2/avatars/:avatarId/images

READ

MCP twin: list_avatar_images

List a saved Avatar's generated photo URLs and shot captions, newest first (default 30 per page); follow total/pages for more. For base Avatar identity, generation takes avatarId, not a photo id. For a specific photo, upload its bytes with request_media_upload and complete_media_upload, then reference the mediaId. Reuse is free; place photos with save_slide_asset type 'avatar' on an HTML slide, or with set_slide_background on a classic slide. To SHOW these results in an MCP Apps host, ALWAYS call render_library; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Path parameters: avatarId (from the URL).

Query parameters
{
  "type": "object",
  "properties": {
    "avatarId": {
      "type": "string",
      "maxLength": 100,
      "description": "An avatarId from list_avatars."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Per page (max 100). Each tool documents its own default.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "required": [
    "avatarId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "avatar": {
      "avatarId": "avt_1a2b3c4d5e6f7081",
      "name": "Priya"
    },
    "images": [
      {
        "url": "https://cdn.ghostfeed.ai/avatars/saved/avt_1a2b3c4d5e6f7081/v1.png",
        "caption": "Close-up smiling portrait, natural light"
      },
      {
        "url": "https://cdn.ghostfeed.ai/avatars/saved/avt_1a2b3c4d5e6f7081/v2.png"
      }
    ],
    "total": 2,
    "page": 1,
    "pages": 1
  }
}

POST /api/v2/slideshows/blank

WRITE

MCP twin: create_blank_slideshow

Create a free empty deck with optional workspace Brand association and return stable variantId/slideIds. Its slides start as classic slides; write_slide_html (mode replace) turns a slide into an HTML slide, so build new decks that way. The first successful content-bearing base edit costs 1 credit; later edits are free. Public callers should supply idempotencyKey and reuse it after uncertain responses.

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideCount": {
      "default": 5,
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "aspectRatio": {
      "default": "9:16",
      "type": "string",
      "enum": [
        "9:16",
        "4:5",
        "3:4",
        "1:1"
      ]
    },
    "brandId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "name"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshow": {
      "id": "64f1c2a1b2c3d4e5f6072000",
      "name": "Daily habits",
      "dashboardUrl": "https://ghostfeed.ai/w/client-a/slideshows/64f1c2a1b2c3d4e5f6072000",
      "width": 1080,
      "height": 1920,
      "brandId": null
    },
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/background

WRITE

MCP twin: set_slide_background

Atomically patch backgrounds using saved variant/slide IDs; omissions preserve fields, image:null removes the image, transform:null resets its crop, and crop x/y are frame fractions. Sources are authorized and durably stored as needed; a succeeded image generation is set with image: { type: "generation", generationId }; color/shade also work on collages, whose images use set_slide_layout. color takes any real colour (hex like #FFD43B, rgb(), hsl() or a CSS colour name) and is saved as uppercase hex; colour words like "warm yellow" are rejected. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slides": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "image": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "url"
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "type",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "pinterest"
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      "query": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    },
                    "required": [
                      "type",
                      "url",
                      "query"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "collection"
                      },
                      "collectionId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "type",
                      "collectionId",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "avatar"
                      },
                      "avatarId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "type",
                      "avatarId",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "brand"
                      },
                      "brandId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      },
                      "imageId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      }
                    },
                    "required": [
                      "type",
                      "brandId",
                      "imageId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "image"
                      },
                      "imageId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      }
                    },
                    "required": [
                      "type",
                      "imageId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "generation"
                      },
                      "generationId": {
                        "type": "string",
                        "pattern": "^gen_[A-Za-z0-9-]{1,64}$"
                      }
                    },
                    "required": [
                      "type",
                      "generationId"
                    ],
                    "additionalProperties": false,
                    "description": "A succeeded image generation from text_to_image, reference_to_image, image_edit or clone_image in this workspace, referenced directly and recorded as an AI background."
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "description": "Any real colour: #RGB, #RRGGBB, #RRGGBBAA, rgb()/rgba(), hsl()/hsla() or a CSS colour name, case-insensitive. Saved as uppercase #RRGGBB, or #RRGGBBAA when alpha is below 1.",
            "type": "string",
            "maxLength": 100
          },
          "transform": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": -100,
                    "maximum": 100
                  },
                  "y": {
                    "type": "number",
                    "minimum": -100,
                    "maximum": 100
                  },
                  "scale": {
                    "type": "number",
                    "minimum": 0.2,
                    "maximum": 3
                  }
                },
                "required": [
                  "x",
                  "y",
                  "scale"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "shade": {
            "type": "number",
            "minimum": 0,
            "maximum": 0.4
          }
        },
        "required": [
          "slideId"
        ],
        "additionalProperties": false
      }
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slides"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slides": [
      {
        "slideId": "slide-1",
        "visualRevision": 1,
        "addedIds": [],
        "removedIds": []
      }
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/texts

WRITE

MCP twin: set_slide_texts

Atomically edit text using stable IDs from get_slideshow: no text ID adds, an existing ID patches supplied fields, and removeIds deletes. Other objects and fields survive; font-size changes scale wrapping width and outline unless overridden; authored overflow is allowed and text is never truncated or resized. If an added or changed text would overlap another text, the lower one moves down to leave a gap (the stack moves up if that crosses the bottom safe line); anchored (verticalAlign) and rotated texts never move, so a text overlapping one moves below it; adjusted lists every move. color, backgroundColor and stroke take any real colour (hex like #FFD43B, rgb(), hsl() or a CSS colour name) and are saved as uppercase hex; null or "transparent" removes a backgroundColor or stroke; colour words like "warm yellow" are rejected. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slides": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "texts": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "description": "Existing text ID to update. Omit to add a new text object.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "text": {
                  "type": "string",
                  "maxLength": 10000
                },
                "fontFamily": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "fontWeight": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 30
                },
                "fontSize": {
                  "type": "number",
                  "minimum": 1,
                  "maximum": 400
                },
                "color": {
                  "description": "Any real colour: #RGB, #RRGGBB, #RRGGBBAA, rgb()/rgba(), hsl()/hsla() or a CSS colour name, case-insensitive. Saved as uppercase #RRGGBB, or #RRGGBBAA when alpha is below 1.",
                  "type": "string",
                  "maxLength": 100
                },
                "backgroundColor": {
                  "description": "Any real colour: #RGB, #RRGGBB, #RRGGBBAA, rgb()/rgba(), hsl()/hsla() or a CSS colour name, case-insensitive. Saved as uppercase #RRGGBB, or #RRGGBBAA when alpha is below 1. null or \"transparent\" removes it.",
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "stroke": {
                  "description": "Any real colour: #RGB, #RRGGBB, #RRGGBBAA, rgb()/rgba(), hsl()/hsla() or a CSS colour name, case-insensitive. Saved as uppercase #RRGGBB, or #RRGGBBAA when alpha is below 1. null or \"transparent\" removes it.",
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 100
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "strokeWidth": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "preset": {
                  "type": "string",
                  "enum": [
                    "plain",
                    "stroke",
                    "background",
                    "switch",
                    "background-alt",
                    "plain-alt"
                  ]
                },
                "textCase": {
                  "type": "string",
                  "enum": [
                    "upper",
                    "lower",
                    "title"
                  ]
                },
                "textAlign": {
                  "type": "string",
                  "enum": [
                    "left",
                    "center",
                    "right"
                  ]
                },
                "horizontalAlign": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "left",
                        "center",
                        "right"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "verticalAlign": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "top",
                        "middle",
                        "bottom"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "x": {
                  "description": "Text center in canvas pixels; clears horizontal anchoring.",
                  "type": "number",
                  "minimum": -100000,
                  "maximum": 100000
                },
                "y": {
                  "description": "Text center in canvas pixels; clears vertical anchoring.",
                  "type": "number",
                  "minimum": -100000,
                  "maximum": 100000
                },
                "width": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 100000
                },
                "angle": {
                  "type": "number",
                  "minimum": -360,
                  "maximum": 360
                }
              },
              "additionalProperties": false
            }
          },
          "removeIds": {
            "default": [],
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "isProductSlide": {
            "type": "boolean"
          }
        },
        "required": [
          "slideId"
        ],
        "additionalProperties": false
      }
    },
    "idempotencyKey": {
      "description": "Public callers should reuse this key after an uncertain response. Native calls use their signed invocation identity.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slides"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slides": [
      {
        "slideId": "slide-1",
        "visualRevision": 1,
        "addedIds": [
          "text-1"
        ],
        "removedIds": []
      }
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/images

WRITE

MCP twin: set_slide_images

Atomically edit ordinary image layers by saved IDs: no image ID adds with image, an existing ID patches supplied fields, and removeIds deletes; omitted layers/fields, text, backgrounds and collage cells survive. x/y are canvas-pixel centers and width is rendered width; aspect ratio is preserved and small logos need no background resolution minimum. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slides": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "images": {
            "default": [],
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "image": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "url"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        }
                      },
                      "required": [
                        "type",
                        "url"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "pinterest"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        },
                        "query": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      },
                      "required": [
                        "type",
                        "url",
                        "query"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "collection"
                        },
                        "collectionId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        }
                      },
                      "required": [
                        "type",
                        "collectionId",
                        "url"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "avatar"
                        },
                        "avatarId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        }
                      },
                      "required": [
                        "type",
                        "avatarId",
                        "url"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "brand"
                        },
                        "brandId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "imageId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        }
                      },
                      "required": [
                        "type",
                        "brandId",
                        "imageId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "image"
                        },
                        "imageId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        }
                      },
                      "required": [
                        "type",
                        "imageId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "generation"
                        },
                        "generationId": {
                          "type": "string",
                          "pattern": "^gen_[A-Za-z0-9-]{1,64}$"
                        }
                      },
                      "required": [
                        "type",
                        "generationId"
                      ],
                      "additionalProperties": false,
                      "description": "A succeeded image generation from text_to_image, reference_to_image, image_edit or clone_image in this workspace, referenced directly and recorded as an AI background."
                    }
                  ]
                },
                "x": {
                  "type": "number",
                  "minimum": -100000,
                  "maximum": 100000
                },
                "y": {
                  "type": "number",
                  "minimum": -100000,
                  "maximum": 100000
                },
                "width": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 100000
                },
                "angle": {
                  "type": "number",
                  "minimum": -360,
                  "maximum": 360
                }
              },
              "additionalProperties": false
            }
          },
          "removeIds": {
            "default": [],
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "order": {
            "description": "Complete order of surviving existing ordinary images; new images append in request order. Cells keep their positions.",
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        },
        "required": [
          "slideId"
        ],
        "additionalProperties": false
      }
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slides"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slides": [
      {
        "slideId": "slide-1",
        "visualRevision": 1,
        "addedIds": [],
        "removedIds": []
      }
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/layout

WRITE

MCP twin: set_slide_layout

Atomically edit layouts/cells using saved variant/slide IDs; omit layout to edit current cells, target fixed cell indexes, and assign final images to swap cells. Crop x/y are frame fractions and crops normalize to cover cells; entering collage promotes the background to cell 0, shrinking drops surplus cells, and returning to single promotes cell 0; text/ordinary layers survive and collages require an image. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slides": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "layout": {
            "type": "string",
            "enum": [
              "single",
              "2up",
              "3up",
              "4up"
            ]
          },
          "cells": {
            "default": [],
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3
                },
                "image": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "url"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "type",
                            "url"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "pinterest"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "uri"
                            },
                            "query": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "required": [
                            "type",
                            "url",
                            "query"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "collection"
                            },
                            "collectionId": {
                              "type": "string",
                              "pattern": "^[a-f\\d]{24}$"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "type",
                            "collectionId",
                            "url"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "avatar"
                            },
                            "avatarId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "type",
                            "avatarId",
                            "url"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "brand"
                            },
                            "brandId": {
                              "type": "string",
                              "pattern": "^[a-f\\d]{24}$"
                            },
                            "imageId": {
                              "type": "string",
                              "pattern": "^[a-f\\d]{24}$"
                            }
                          },
                          "required": [
                            "type",
                            "brandId",
                            "imageId"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "image"
                            },
                            "imageId": {
                              "type": "string",
                              "pattern": "^[a-f\\d]{24}$"
                            }
                          },
                          "required": [
                            "type",
                            "imageId"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "generation"
                            },
                            "generationId": {
                              "type": "string",
                              "pattern": "^gen_[A-Za-z0-9-]{1,64}$"
                            }
                          },
                          "required": [
                            "type",
                            "generationId"
                          ],
                          "additionalProperties": false,
                          "description": "A succeeded image generation from text_to_image, reference_to_image, image_edit or clone_image in this workspace, referenced directly and recorded as an AI background."
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "transform": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number",
                          "minimum": -100,
                          "maximum": 100
                        },
                        "y": {
                          "type": "number",
                          "minimum": -100,
                          "maximum": 100
                        },
                        "scale": {
                          "type": "number",
                          "minimum": 1,
                          "maximum": 3
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "scale"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "index"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "slideId"
        ],
        "additionalProperties": false
      }
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slides"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slides": [
      {
        "slideId": "slide-1",
        "visualRevision": 1,
        "addedIds": [],
        "removedIds": []
      }
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/html

WRITE

MCP twin: write_slide_html

Write HTML to saved variantId/slideId. mode replace (default) replaces the whole slide; mode insert adds html as one group under parentId (null = root) at index. An older Fabric slide becomes an HTML slide when written. Returns the canonical html (a data-id on every element), warnings, renderUrl and the rendered slide as an image. The slide is a fixed canvas the size of the slideshow (get_slideshow canvas, e.g. 1080×1920 for 9:16 or 1080×1350 for 4:5); lay it out with CSS px inside it, and on 9:16 keep text out of the bottom ~15%, where TikTok draws its UI. Every image is a gf://asset/<assetId> ref from save_slide_asset; other image URLs are removed. Use only families from list_slide_fonts. Build in small groups and check every returned render for fit, overflow, safe zone, contrast, hierarchy and the match to the source, then fix by id with edit_slide. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slideId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "html": {
      "type": "string",
      "minLength": 1
    },
    "mode": {
      "default": "replace",
      "description": "replace rewrites the whole slide; insert adds html as one group.",
      "type": "string",
      "enum": [
        "replace",
        "insert"
      ]
    },
    "parentId": {
      "description": "insert only: parent data-id; null is the root.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "index": {
      "description": "insert only: child position; omit to append.",
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slideId",
    "html"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideId": "slide-1",
    "visualRevision": 3,
    "html": "<div data-id=\"root\" style=\"position:absolute;inset:0;background:#F4EFE6\"><h1 data-id=\"h1\" style=\"font-family:'Playfair Display';font-size:96px\">Small habits</h1><img data-id=\"img1\" src=\"gf://asset/q3Vd9xLm2KpA\" alt=\"\"></div>",
    "warnings": [],
    "renderUrl": "https://cdn.ghostfeed.ai/users/u/tiktok-slides/64f1/rendered-slide-0.jpg",
    "width": 1080,
    "height": 1920,
    "creditsSpent": 1,
    "creditsRemaining": 46,
    "images": [
      {
        "slideId": "slide-1",
        "kind": "render",
        "width": 720,
        "height": 1280,
        "mimeType": "image/jpeg",
        "data": "<image bytes delivered as an image content block in MCP and native model output>"
      }
    ]
  }
}

PATCH /api/v2/slideshows/:slideshowId/html

WRITE

MCP twin: edit_slide

Edit an HTML slide by element data-id; ops apply all-or-nothing in order: set_style (CSS properties, null removes one), set_text (inner html), replace (element with new html), insert (html under parentId, null = root, at index), remove, move (to parentId/index), set_attr (src, alt, class, data-slot, data-role, data-name, data-src-id). Take ids from the last result or get_slideshow; a missing id fails the edit and names it. Returns the canonical html, warnings, renderUrl and the rendered slide as an image. The slide is a fixed canvas the size of the slideshow (get_slideshow canvas, e.g. 1080×1920 for 9:16 or 1080×1350 for 4:5); lay it out with CSS px inside it, and on 9:16 keep text out of the bottom ~15%, where TikTok draws its UI. Every image is a gf://asset/<assetId> ref from save_slide_asset; other image URLs are removed. Use only families from list_slide_fonts. Build in small groups and check every returned render for fit, overflow, safe zone, contrast, hierarchy and the match to the source, then fix by id with edit_slide. The first successful content-bearing base-deck edit costs 1 credit; later edits are free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slideId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "ops": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "set_style"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "style": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": "CSS properties to set, e.g. { \"font-size\": \"64px\" }; null removes one."
              }
            },
            "required": [
              "op",
              "id",
              "style"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "set_text"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "html": {
                "type": "string",
                "maxLength": 65536,
                "description": "Inner HTML of a text element."
              }
            },
            "required": [
              "op",
              "id",
              "html"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "replace"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "html": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "op",
              "id",
              "html"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "insert"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "data-id of the parent element; null is the slide root."
              },
              "index": {
                "description": "Child position; omit to append.",
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              },
              "html": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "op",
              "parentId",
              "html"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "remove"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              }
            },
            "required": [
              "op",
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "move"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "data-id of the parent element; null is the slide root."
              },
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              }
            },
            "required": [
              "op",
              "id",
              "parentId",
              "index"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "const": "set_attr"
              },
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "name": {
                "type": "string",
                "enum": [
                  "src",
                  "alt",
                  "class",
                  "data-slot",
                  "data-role",
                  "data-name",
                  "data-src-id"
                ]
              },
              "value": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "op",
              "id",
              "name",
              "value"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slideId",
    "ops"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideId": "slide-1",
    "visualRevision": 3,
    "html": "<div data-id=\"root\" style=\"position:absolute;inset:0;background:#F4EFE6\"><h1 data-id=\"h1\" style=\"font-family:'Playfair Display';font-size:96px\">Small habits</h1><img data-id=\"img1\" src=\"gf://asset/q3Vd9xLm2KpA\" alt=\"\"></div>",
    "warnings": [],
    "renderUrl": "https://cdn.ghostfeed.ai/users/u/tiktok-slides/64f1/rendered-slide-0.jpg",
    "width": 1080,
    "height": 1920,
    "creditsSpent": 1,
    "creditsRemaining": 46,
    "images": [
      {
        "slideId": "slide-1",
        "kind": "render",
        "width": 720,
        "height": 1280,
        "mimeType": "image/jpeg",
        "data": "<image bytes delivered as an image content block in MCP and native model output>"
      }
    ]
  }
}

POST /api/v2/slideshows/:slideshowId/renders

WRITEIDEMPOTENT

MCP twin: render_slides

See saved slides as images: the current render of each selected slide, up to 20 (omit slideIds for all). HTML slides without a current render are rendered now; a Fabric slide without one is listed in unrendered. With compareWithSourceUrls (public HTTPS images, one per selected slide, same order) each image is side-by-side: SOURCE on the left, OURS on the right, for matching layout, fonts, colours, decorations and amount of text. Free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slideIds": {
      "description": "Slides to see, in this order. Omit for every slide of the variant.",
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    },
    "compareWithSourceUrls": {
      "description": "One public HTTPS source image per selected slide, in the same order.",
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "format": "uri"
      }
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slides": [
      {
        "slideId": "slide-1",
        "position": 0,
        "kind": "html",
        "visualRevision": 3,
        "renderUrl": "https://cdn.ghostfeed.ai/users/u/tiktok-slides/64f1/rendered-slide-0.jpg"
      }
    ],
    "images": [
      {
        "slideId": "slide-1",
        "kind": "comparison",
        "width": 1168,
        "height": 1088,
        "mimeType": "image/jpeg",
        "data": "<image bytes delivered as an image content block in MCP and native model output>"
      }
    ]
  }
}

POST /api/v2/slideshows/:slideshowId/assets

WRITEIDEMPOTENT

MCP twin: save_slide_asset

Save an image for HTML slides and get its ref. Sources: search results (pinterest), collection, avatar, Brand and library images, uploads (url from complete_media_upload) and succeeded generations. Sources are authorized and copied into our storage. Put the returned ref (gf://asset/<assetId>) in an <img> src or a CSS background-image url(); HTML slides accept no other image URLs. Saving the same stored image again returns the same asset. Free.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$",
      "description": "The slideshow the image is for; its storage holds the copy."
    },
    "source": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "url"
            },
            "url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "type",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "pinterest"
            },
            "url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "query": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "required": [
            "type",
            "url",
            "query"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "collection"
            },
            "collectionId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            },
            "url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "type",
            "collectionId",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "avatar"
            },
            "avatarId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "type",
            "avatarId",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "brand"
            },
            "brandId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            },
            "imageId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "required": [
            "type",
            "brandId",
            "imageId"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "image"
            },
            "imageId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "required": [
            "type",
            "imageId"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "generation"
            },
            "generationId": {
              "type": "string",
              "pattern": "^gen_[A-Za-z0-9-]{1,64}$"
            }
          },
          "required": [
            "type",
            "generationId"
          ],
          "additionalProperties": false,
          "description": "A succeeded image generation from text_to_image, reference_to_image, image_edit or clone_image in this workspace, referenced directly and recorded as an AI background."
        }
      ]
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "source"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "assetId": "q3Vd9xLm2KpA",
    "ref": "gf://asset/q3Vd9xLm2KpA",
    "url": "https://cdn.ghostfeed.ai/users/u/slideshows/64f1/sources/photo.jpg",
    "width": 1080,
    "height": 1440,
    "mimeType": "image/jpeg",
    "source": "pinterest"
  }
}

GET /api/v2/slide-fonts

READ

MCP twin: list_slide_fonts

List the font families HTML slides can use, with weights, italic weights and a one-line style note (sans, display, serif/editorial, handwriting, mono). Use these exact names in CSS font-family; any other family renders with a fallback and a warning. TikTok Sans is the default TikTok caption font. Free.

Query parameters
{
  "type": "object",
  "properties": {
    "query": {
      "description": "Filter by family name or style, e.g. \"serif\" or \"hand\".",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "fonts": [
      {
        "family": "Playfair Display",
        "category": "serif",
        "weights": [
          400,
          500,
          600,
          700,
          800,
          900
        ],
        "italicWeights": [
          400,
          500,
          600,
          700,
          800,
          900
        ],
        "note": "High-contrast editorial titles."
      }
    ],
    "total": 1,
    "defaultFamily": "TikTok Sans"
  }
}

POST /api/v2/slideshows/:slideshowId/slides

WRITE

MCP twin: add_slide

Atomically insert blank slides into saved variantId, of the same kind as the deck (once any slide is HTML, each new slide is HTML with one full-bleed black background element); omit beforeSlideId to append, or use copyFromSlideId to copy a saved slide. Copies get fresh slide/text/ordinary image IDs, preserve collage cell IDs and clear rasters; the variant cannot exceed 20 slides.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "count": {
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "copyFromSlideId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "beforeSlideId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ],
    "addedSlideIds": [
      "slide-2"
    ]
  }
}

DELETE /api/v2/slideshows/:slideshowId/slides

WRITE

MCP twin: remove_slide

Atomically remove saved slideIds from variantId; at least one slide must remain.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slideIds": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slideIds"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ],
    "removedSlideIds": [
      "slide-3"
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/slides/order

WRITE

MCP twin: reorder_slides

Reorder a saved variant by listing every existing slideId exactly once in the desired order; authored content survives.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "slideIds": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "slideIds"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ]
  }
}

PUT /api/v2/slideshows/:slideshowId/caption

WRITE

MCP twin: set_caption

Set the caption on saved variantId; an empty caption is allowed and slides survive.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "variantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "caption": {
      "type": "string",
      "maxLength": 10000
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "variantId",
    "caption"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ],
    "caption": "Small daily habits"
  }
}

POST /api/v2/slideshows/:slideshowId/variants

WRITE

MCP twin: create_variant

Copy saved sourceVariantId into a ready variant for 1 credit; later edits are free. Copies get fresh slide/text/ordinary image IDs, retain collage cell IDs, clear rasters and respect the plan variant limit. Name the copy for what will change in it (its topic or theme); the source name is not copied. Public callers should supply idempotencyKey and reuse it after uncertain responses; target the returned variantId for edits.

Path parameters: slideshowId (from the URL).

Workspace-scoped writes name workspace in the body (or as a ?workspace= query param on a bodyless DELETE); the X-Workspace-Id header is for reads only.

Request body
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "slideshowId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "sourceVariantId": {
      "type": "string",
      "pattern": "^[a-f\\d]{24}$"
    },
    "name": {
      "description": "What this version is, e.g. \"Umrah\" or \"Beach\". Omit to show \"Variant N\".",
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    }
  },
  "required": [
    "workspace",
    "slideshowId",
    "sourceVariantId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "slideshowId": "64f1c2a1b2c3d4e5f6072000",
    "variantId": "64f1c2a1b2c3d4e5f6072001",
    "slideIds": [
      "slide-1",
      "slide-2"
    ],
    "creditsSpent": 1,
    "creditsRemaining": 45
  }
}