Partner API v1

Marketing as a Service

One API call to generate clips, flyers, social posts, and full marketing campaigns for your customers. Embed analytics dashboards. Pay only for what you use.

One call. Full marketing pipeline.

POST /api/v1/customers/:id/market
curl -X POST https://app.castopia.ai/api/v1/customers/tutor-sarah/market \
  -H "x-api-key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "content": {
      "url": "https://heyaviya.com/courses/calc-101/welcome",
      "title": "Calculus 101 - Welcome Video",
      "type": "video"
    },
    "platforms": ["instagram", "tiktok", "facebook"],
    "options": {
      "generateClip": true,
      "generateFlyer": true,
      "generateSocialPosts": true
    }
  }'

Returns a campaign ID in seconds. Clips, flyers, and posts generate in the background.

One-Call Marketing

Submit content URL, get back full marketing campaigns with video clips, flyers, and social posts across all platforms.

Multi-Customer Management

Register unlimited customers via API. Each gets isolated campaigns, content, and analytics.

Embeddable Dashboard

Embed white-label analytics into your product. Themed to your brand with a single iframe.

Simple REST API

Clean endpoints with consistent patterns. Auth via API key header. JSON in, JSON out.

Interactive Sandbox

Test every endpoint live with your API key. See real requests and responses.

AI-Ready Integration

Copy-paste prompts for Cursor, ChatGPT, or Claude to build your integration in minutes.

API Reference
Every endpoint, parameter, and response documented.
Try the Sandbox
Make real API calls from your browser.
Integration Guide
Step-by-step setup with AI-generated code.