Social Mockr

API and MCP

Let an AI assistant or your own script write a chat story into Social Mockr and get a link that opens it in the editor.

The API and the MCP server are for the Pro and Lifetime plans. They do one thing: an assistant (Claude, ChatGPT or another tool that speaks the Model Context Protocol) or your own script writes a fictional chat story and gets back a link. The link opens the story in your editor as an editable copy, where you add voices and the story look and export the picture or the video. Social Mockr draws and renders in your browser, so the API does not produce picture or video files itself.

Make a key

Open the Account sheet (logo, Account) and find API and MCP. Type a name (for example Claude desktop) and press Make a key. The key looks like smk_ followed by 40 characters and is shown only once: copy it now. Only a scrambled version is stored, so we cannot show it again; make a new one when you lose it. You can have five active keys, see when each was last used and revoke one at once. A key stops working when the account is no longer Pro.

MCP: connect an AI assistant

Add Social Mockr as a remote MCP server in your assistant with:

  • Address: https://socialmockr.com/api/mcp.php
  • Header: Authorization: Bearer smk_… (your key)

The assistant then has two tools: list_chat_apps (the twenty chat apps and their ids) and create_chat_story (the conversation). Ask it for example: Write a funny wrong-number story for TikTok in WhatsApp and make it with Social Mockr. It answers with the link.

API

GET https://socialmockr.com/api/v1.php?action=apps lists the apps. POST https://socialmockr.com/api/v1.php with the header above and a JSON body makes a story:

{
  "action": "create_story",
  "app": "whatsapp",
  "contactName": "Mom",
  "title": "Dinner plans",
  "theme": "dark",
  "startTime": "21:40",
  "messages": [
    { "from": "them", "text": "Are you coming tonight?" },
    { "from": "me", "text": "Yes! Around 7", "minutesLater": 2 }
  ],
  "story": { "hook": "Mom knows something", "endCard": "Part 2 is up", "gradient": true }
}

The answer is { "code": "…", "url": "https://socialmockr.com/?share=…", "messages": 2 }. from is me (the person whose phone it is) or them; a message has 1 to 600 characters, a story 1 to 200 messages; minutesLater (0 to 30) sets the time under the bubbles. story is optional: a hook line, an end card line and a gradient (it also turns on the typing and message sounds). Mistakes come back as a readable message with status 422.

Limits and good to know

  • 120 calls an hour per key.
  • Every story is a share link of your account (see Sharing): at most 100 links, and you can stop sharing any of them in the Share window. Anyone with the link can open an editable copy, so do not put anything private in a story.
  • The story is fiction. The assistant is told so, and the same rule as everywhere applies: do not present a made-up chat as a real message to mislead people.
  • A key has the powers of your account for this one thing only: it cannot read your chats, export, change your plan or see anything else.

On this page