API Documentation

Content Repurposer API — transform any text into social media posts, newsletters, and more.

Base URL

https://content-repurposer-api-lilac.vercel.app

Authentication

Include your API key in the X-Api-Key header with every request.

X-Api-Key: your-api-key-here

Get your API key via RapidAPI or contact us for direct access.

Endpoints

POST /api/repurpose

Transform content into one or more social media formats.

Request Body (JSON):

FieldTypeRequiredDescription
contentstringYesSource text to repurpose (max 10,000 chars)
formatsstring[]YesOutput formats (max 5 per request)
tonestringNoTone of output: professional, casual, bold, educational (default: professional)
audiencestringNoTarget audience description (default: general)
ctastringNoCall-to-action to include where appropriate

Available formats:

Format IDOutput
tweet_threadTwitter/X thread (3-7 tweets with hooks)
tweet_singleSingle tweet under 280 characters
linkedinLinkedIn post with professional formatting
newsletterEmail snippet with subject line
instagramInstagram caption with hashtags
tiktokShort-form video script (hook → body → CTA)
redditReddit-style informative post
summary2-3 sentence executive summary

Example Request:

curl -X POST https://content-repurposer-api-lilac.vercel.app/api/repurpose \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: your-api-key" \
  -d '{
    "content": "AI agents are transforming how small businesses operate in 2026. Over half of business leaders now deploy agentic AI for customer support, lead follow-up, and content creation.",
    "formats": ["tweet_single", "linkedin", "summary"],
    "tone": "professional",
    "audience": "small business owners"
  }'

Example Response:

{
  "success": true,
  "input_length": 178,
  "formats_requested": 3,
  "results": {
    "tweet_single": "In 2026, over 50% of business leaders are using AI agents — not chatbots — for real work: support, leads, content. The question isn't 'should I use AI?' It's 'how many weeks until my competitor does?'",
    "linkedin": "Here's what changed in 2026:\n\nAI agents aren't experimental anymore.\n\nOver half of business leaders now use them for...",
    "summary": "AI agents have moved from experimental tools to operational necessities for small businesses in 2026, with over half of leaders deploying them for customer support, lead management, and content creation."
  }
}

GET /api/formats

Returns the list of available output formats with descriptions. No authentication required.

GET /api/health

Health check. Returns {"status": "ok"}. No authentication required.

Error Codes

CodeMeaning
400Bad request — missing or invalid fields
401Unauthorized — missing or invalid API key
405Method not allowed — use POST for /api/repurpose
429Rate limited — max 60 requests/minute
500Server error — retry the request
503AI service temporarily unavailable

Rate Limits

60 requests per minute per API key. If you hit the limit, wait 60 seconds and retry.

Code Examples

Python

import requests

response = requests.post(
    "https://content-repurposer-api-lilac.vercel.app/api/repurpose",
    headers={"X-Api-Key": "your-api-key", "Content-Type": "application/json"},
    json={
        "content": "Your blog post here...",
        "formats": ["tweet_thread", "linkedin"],
        "tone": "casual",
        "audience": "developers"
    }
)

data = response.json()
print(data["results"]["tweet_thread"])
print(data["results"]["linkedin"])

JavaScript (Node.js)

const response = await fetch(
  "https://content-repurposer-api-lilac.vercel.app/api/repurpose",
  {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "X-Api-Key": "your-api-key"
    },
    body: JSON.stringify({
      content: "Your blog post here...",
      formats: ["tweet_single", "newsletter"],
      tone: "bold",
      audience: "startup founders"
    })
  }
);

const data = await response.json();
console.log(data.results);

Support

Questions? Email matrixclawai@gmail.com or message us on X.