API reference

Every feature in the app is available over REST. Authenticate with an API key from Settings:

curl https://YOUR_HOST/api/me -H "Authorization: Bearer bl_..."

Responses use one envelope: {"success": true, "data": {...}, "error": null}. Errors return a non-2xx status and a human-readable error. 402 means a plan limit was reached.

Brand

POST/api/brand/analyze{"url"}: build the brand profile from a website
GET/api/brandCurrent brand profile
PATCH/api/brandEdit name, description, audience, tone, niche, differentiators, competitors

Content

GET/api/libraryQuery: q, niche, format, platform, minViews, sort (views|recent|engagement|shares), page, pageSize
POST/api/library/:id/remixAdapt a library item to your brand (1 credit)
GET/api/blitzNext 10 ready-to-post cards. Query exclude: comma-separated source ids
POST/api/blitz/post{"card"}: schedule a card at the next open slot
POST/api/automations/fill{"days": 1-60}: fill the calendar
POST/api/studio/hooks{"topic", "count"} (1 credit)
POST/api/studio/script{"hook", "format"} (2 credits)
POST/api/studio/slideshow{"topic", "slides": 3-10} (4 credits per slide)

Posts & scheduling

GET/api/postsQuery: status, from, to
POST/api/posts{"hook", "caption", "script", "slides", "format", "platforms", "characterId", "scheduledAt" | "schedule": "next"}
PATCH/api/posts/:idEdit fields; "scheduledAt": null unschedules
DELETE/api/posts/:idDelete a post
GET/api/schedule/slotsNext open daily slots. Query count

Accounts, characters & analytics

GET/POST/api/accounts{"platform": tiktok|instagram|youtube|linkedin, "handle"}
DELETE/api/accounts/:platformDisconnect
GET/POST/api/charactersList (query kind, gender) or create {"name", "gender", "age", "style", "prompt"} (8 credits)
GET/api/analyticsQuery days (1-90): totals, per-platform, daily series, top posts

Workspaces, automations & media

GET/POST/api/workspacesList, or create {"name"} (plan-limited). Send X-Workspace-Id on any request to target a workspace
POST/api/workspaces/:id/activateMake a workspace the default
GET/PATCH/api/blitz/settings{"contentMix": {format: percent}, "remixRatio", "angleMention", "captionStyle", "characterId", "characterFrequency"}
GET/POST/api/automationsCreate {"name", "brief", "days", "postsPerDay", "formats", "platforms"}: generates draft posts
POST/api/automations/:id/launchSchedule every draft (also /pause, DELETE)
POST/api/media?kind=image|video|demo&name=Raw file body with its content-type. GET /api/media/:id/file streams it
POST/api/posts/bulk{"ids": [...], "action": "delete" | "unschedule"}
GET/api/formatsFormat catalog and posting limits
POST/api/studio/format{"format", "topic"}: a draft for any catalog format
POST/api/assistant{"question"}: answer from the guide

Admin

GET/api/admin/ingestPipeline status, queries and recent runs
POST/api/admin/ingest/run{"platform"?}: run YouTube / TikTok / Instagram ingestion now
POST/api/admin/ingest/import-url{"url", "niche", "views"?, "likes"?, ...}: import one TikTok or YouTube link
POST/api/admin/library/import{"items": [{platform, niche, format, title, hook, description, creator, views, likes, comments, shares, durationSec, tags, sourceUrl, postedAt}]}. Requires an email listed in ADMIN_EMAILS