WaveGen REST API Reference
Automate Brand Kits, post generation, slide-level editing, MP4 rendering, scheduling, and analytics via standard JSON over HTTPS at https://wavegen.ai/api/v1/*.
Base URL, OpenAPI & Rate Limits
Base URL: https://wavegen.ai
OpenAPI 3.1.0 Spec (Public): https://wavegen.ai/api/v1/openapi.json
Authentication: Authorization: Bearer wg_live_... (workspace API key from app.wavegen.ai/workspace) or OAuth 2.1 access token (wgoa_...).
Rate Limits & Payload Size: 300 requests / 15 min per workspace (1,500 / 15 min IP pre-auth), max 10 MB JSON request body.
Endpoints
/api/v1/openapi.json
Retrieve the live OpenAPI 3.1.0 specification for ChatGPT Custom GPT Actions, SDK generation, and API discovery.
curl https://wavegen.ai/api/v1/openapi.json/api/v1/brand-kits
List workspace Brand Kits, colors, fonts, and brand asset IDs.
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
https://wavegen.ai/api/v1/brand-kits/api/v1/brand-kits
Create a Brand Kit from a website URL or explicit brand fields.
| Parameter | In | Type | Description |
|---|---|---|---|
| url | body | string (http/https URL) | Website URL for automatic logo/color/font extraction. |
| name | body | string | Display name (required if url is omitted). |
| primaryColor / brandVoiceTone | body | string | Optional explicit hex colors, fonts, or voice preset. |
curl -X POST https://wavegen.ai/api/v1/brand-kits \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://acmeadvisory.com","brandVoiceTone":"professional"}'/api/v1/connections
List connected social media accounts for the workspace.
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
https://wavegen.ai/api/v1/connections/api/v1/analytics
Retrieve workspace social analytics overview, per-account metrics, and ranked topPosts.
| Parameter | In | Type | Description |
|---|---|---|---|
| days | query | integer (1-90, default 30) | Lookback window in days. |
| from / to | query | ISO-8601 or Unix ms | Explicit date bounds. |
| connectionIds | query | comma-separated string | Filter to specific connection IDs. |
| sort | query | "engagements" | "visibility" | "engagementRate" | Ranking metric for topPosts. |
| postOffset | query | integer | Pagination offset for topPosts. |
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
"https://wavegen.ai/api/v1/analytics?days=30&sort=engagementRate"/api/v1/generations
Start an asynchronous generation job from 1-10 URLs or text notes to produce branded carousels or videos.
| Parameter | In | Type | Description |
|---|---|---|---|
| sources / url / text * | body | array / URL / string | Provide at least one source via sources[], url, or text (min 100 chars). |
| brandKitId | body | string | Brand Kit ID to apply. |
| mode | body | "batch" | "synthesis" | Separate posts per source or one combined roundup. |
| outputOptions | body | Array<"carousel" | "video"> | Defaults to ["carousel"]. |
| maxPostsPerSource / targetLanguage | body | integer / string | Control post count and output language. |
curl -X POST https://wavegen.ai/api/v1/generations \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://acmeadvisory.com/blog/q4-tax-checklist",
"brandKitId": "bk_acme_01",
"outputOptions": ["carousel"]
}'/api/v1/generations/{generationId}
Poll a generation job and retrieve generated post summaries and editor URLs.
| Parameter | In | Type | Description |
|---|---|---|---|
| generationId * | path | string | ID returned by POST /api/v1/generations. |
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
https://wavegen.ai/api/v1/generations/gen_9f2k1m/api/v1/posts
List workspace posts filtered by status and limit.
| Parameter | In | Type | Description |
|---|---|---|---|
| limit | query | integer (1-50, default 20) | Maximum posts returned. |
| status | query | string | draft, scheduled, published, generating, failed, etc. |
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
"https://wavegen.ai/api/v1/posts?limit=10&status=draft"/api/v1/posts
Manually create a draft post from 1-10 supplied images or videos (HTTPS URL, base64, brand_asset, or stock) without consuming a generation credit.
| Parameter | In | Type | Description |
|---|---|---|---|
| media / files * | body | array (1-10 items) | Provide 1-10 image/video items via media[] or files[]. |
| caption / hashtags / firstComment | body | string / string[] / string | Optional caption, up to 30 hashtags, and first comment. |
curl -X POST https://wavegen.ai/api/v1/posts \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"caption": "Behind the scenes from our Q4 product sprint.",
"media": [{ "type": "image", "source": "url", "url": "https://example.com/sprint-1.png" }]
}'/api/v1/posts/{postId}
Retrieve full post details, caption, palette, slide overlays, and optional rendered slide previews.
| Parameter | In | Type | Description |
|---|---|---|---|
| postId * | path | string | Wavegen post ID. |
| includePreviews | query | boolean (default true) | Include rendered slide preview(s). |
| previewSlides | query | comma-separated 0-based indices | Specific slide indices to render (max 5). |
curl -H "Authorization: Bearer wg_live_YOUR_KEY" \
"https://wavegen.ai/api/v1/posts/post_74x9a?includePreviews=false"/api/v1/posts/{postId}
Atomically patch caption, hashtags, slide overlays, images (generate/stock/brand_asset/url/base64), colors, or slide order.
| Parameter | In | Type | Description |
|---|---|---|---|
| postId * | path | string | Wavegen post ID. |
| caption / hashtags / firstComment | body | string / string[] / string | Copy updates. |
| slideEdits / replaceColors / slideOrder | body | array | Slide-level overlay/image edits, palette swaps, or slide reordering. |
curl -X PATCH https://wavegen.ai/api/v1/posts/post_74x9a \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"caption":"Updated Q4 checklist for founders."}'/api/v1/posts/{postId}/animate
Animate a carousel post into a choreographed video and optionally render an MP4.
| Parameter | In | Type | Description |
|---|---|---|---|
| postId * | path | string | Wavegen post ID. |
| renderVideo | body | boolean (default false) | Render an MP4 download URL. |
| forceRegenerate / useDefault | body | boolean | Control choreography regeneration or fast default transitions. |
curl -X POST https://wavegen.ai/api/v1/posts/post_74x9a/animate \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"renderVideo":true}'/api/v1/posts/{postId}/schedule
Schedule a post for publishing on one or more connected social accounts.
| Parameter | In | Type | Description |
|---|---|---|---|
| postId * | path | string | Wavegen post ID. |
| connectionIds * | body | string[] (1-20) | Target connection IDs from GET /api/v1/connections. |
| scheduledFor | body | ISO-8601 string or Unix ms | Omit to auto-pick the next recommended posting slot. |
| timezone | body | string (IANA) | Optional timezone for auto-slot selection. |
curl -X POST https://wavegen.ai/api/v1/posts/post_74x9a/schedule \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"connectionIds":["conn_li_01"],"scheduledFor":"2026-12-05T15:00:00Z"}'/api/v1/posts/{postId}/cancel-schedule
Cancel scheduled publishing for one or all connections and return the post to draft.
| Parameter | In | Type | Description |
|---|---|---|---|
| postId * | path | string | Wavegen post ID. |
| connectionId | body | string | Optional single connection ID; omit to unschedule all accounts. |
curl -X POST https://wavegen.ai/api/v1/posts/post_74x9a/cancel-schedule \
-H "Authorization: Bearer wg_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{}'Errors & Status Codes
| HTTP Status | Error Code | Meaning |
|---|---|---|
| 400 | validation_error | Request body or query failed Zod validation (returns issues). |
| 401 | unauthorized | Missing, invalid, or revoked Bearer token. |
| 403 | insufficient_scope / paid_plan_required | Token lacks the required scope, or workspace needs a paid plan. |
| 429 | plain text + RateLimit-* | Exceeded 300 req / 15 min workspace limit (or 1,500 IP pre-auth on /api/v1/*). |