Posts API
Immediate publish, scheduling, status lookups, and cancellation.
- POST /api/v1/posts
- GET /api/v1/posts
- GET /api/v1/posts/{id}
- DELETE /api/v1/posts/{id}
ContentFlow exposes one API for posts, videos, accounts, analytics, bombs, comments, and webhook callbacks. Use this page as the human-readable front door, then link engineers to the FastAPI reference for low-level schemas when needed.
Send `X-API-Key` on every request. Production keys start with `cf_live_`; test keys start with `cf_test_`.
01curl -X POST https://api.contentflow.sh/api/v1/posts02 -H "Content-Type: application/json"03 -H "X-API-Key: cf_live_replace_me"04 -d '{05 "text": "Launch post",06 "platforms": ["youtube", "tiktok"],07 "media_urls": ["https://cdn.example.com/video.mp4"]08 }'01from contentflow import ContentFlow02
03client = ContentFlow(api_key="cf_live_...")04
05job = client.videos.generate(06 topic="DUI 3-strike laws",07 mode="legal",08 language="ko",09 auto_publish={10 "enabled": True,11 "platforms": ["youtube", "tiktok"]12 }13)01import { ContentFlow } from "@contentflow/sdk"02
03const client = new ContentFlow({ apiKey: "cf_live_..." })04
05const post = await client.posts.create({06 text: "Ship once. Distribute everywhere.",07 platforms: ["youtube", "instagram", "threads"],08 media_urls: ["https://cdn.example.com/video.mp4"]09});Immediate publish, scheduling, status lookups, and cancellation.
Generate through yt-factory, track status, and trigger auto-publish flows.
OAuth connect flows and connected account inventory.
Analytics, bombs, comments, and webhook delivery hooks.
Webhooks are HMAC-signed and retried automatically. Current event coverage includes `post.published`, `video.completed`, `video.failed`, `account.connected`, and `account.disconnected`.
Deploy the `landing/` directory as the Vercel root project. The API stays where it is, while the marketing site and docs become the public entry point for the existing domain.