{"openapi":"3.1.0","info":{"title":"Replish API","description":"Replish finds the Twitch and Kick clips that are rising right now and turns any clip into a vertical\n9:16 short (captions, hook), or a 16:9 video for X and YouTube, you can download as an MP4. This API lets your\nagent do the same.\n\n**Flow:** find a clip (`GET /v1/clips`, `/v1/search`, `/v1/streamers/{login}/clips`,\n`/v1/games/{name}/clips`), start a render (`POST /v1/renders`), poll `GET /v1/renders/{id}` every\nfew seconds until `status` is `done`, then download the MP4 (`download_url`, no key needed, one use,\n1 hour; or `file_url` with your key).\n\n**Auth:** every call except these docs needs `Authorization: Bearer rp_live_...`\n(or `X-API-Key: rp_live_...`). Members with a plan create their own keys (up to 3) on\ntheir account page, `/account`. If the plan ends, the key answers 402 `plan_required` until it is renewed.\n\n**Limits (per key):** 2000 requests a UTC day, 60 Twitch lookups a minute, and one render queued or\nrunning at a time. Renders use the account's credits of the month, then its extra credits, shared with the website (with\nnone left: 429 `monthly_render_limit`). Keys issued by hand by the operator have 20 renders a UTC day instead. Each response carries `X-RateLimit-Limit`,\n`X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds to the reset). Past a limit you get\n429 with `Retry-After`.\n\n**Errors** always look like `{\"error\": {\"code\": \"...\", \"message\": \"...\"}}`.\n\n**Campaigns:** the Content Rewards campaigns of the key's account, the same as on `/campaigns`: add one from its\nlink and brief (`POST /v1/campaigns`, the server reads the brief into a spec), change its spec (`PATCH`), set its\nlogo (`PUT /v1/campaigns/{id}/logo` with the image as the body), get its streamers' rising clips\n(`GET /v1/campaigns/{id}/clips`), then render with `\"campaign\": id` in `POST /v1/renders`.\n\n**MCP:** the same features as MCP tools at `/mcp` (Streamable HTTP, same Bearer key).\n","version":"1.1.0"},"paths":{"/v1/clips":{"get":{"tags":["clips"],"summary":"Rising clips, fastest first","description":"The clips Replish's live poller sees rising fastest, ranked by score: average views per\nminute and current speed, boosted when several viewers clipped the same moment (`big_moment`).","operationId":"clips_clips_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"integer","description":"Minutes to look back: 30, 60, 180, 360, 720 or 1440 (24 h). Over 180, clips under 5 views are left out.","default":60,"title":"Window"},"description":"Minutes to look back: 30, 60, 180, 360, 720 or 1440 (24 h). Over 180, clips under 5 views are left out."},{"name":"cat","in":"query","required":false,"schema":{"type":"string","description":"Category slug from /v1/categories, empty = all.","examples":["grand-theft-auto-vi"],"default":"","title":"Cat"},"description":"Category slug from /v1/categories, empty = all."},{"name":"lang","in":"query","required":false,"schema":{"type":"string","description":"Broadcaster language code, empty = all.","examples":["en"],"default":"","title":"Lang"},"description":"Broadcaster language code, empty = all."},{"name":"platform","in":"query","required":false,"schema":{"type":"string","description":"twitch or kick, empty = all.","default":"","title":"Platform"},"description":"twitch or kick, empty = all."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"1 to 100.","default":20,"title":"Limit"},"description":"1 to 100."},{"name":"hide_auto","in":"query","required":false,"schema":{"type":"boolean","description":"Leave out Twitch's auto-made highlight clips.","default":true,"title":"Hide Auto"},"description":"Leave out Twitch's auto-made highlight clips."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipList"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/categories":{"get":{"tags":["clips"],"summary":"Categories with rising clips","description":"Every watched category (also with 0 clips) and every other one with rising clips, most clips first.","operationId":"categories_categories_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"integer","description":"Minutes counted for clip_count: 30, 60, 180, 360, 720 or 1440.","default":180,"title":"Window"},"description":"Minutes counted for clip_count: 30, 60, 180, 360, 720 or 1440."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryList"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trends":{"get":{"tags":["clips"],"summary":"Streamer posts blowing up on TikTok, YouTube and X","description":"The last 24 h of streamer posts doing well elsewhere, and the hot tags (streamers, moments).","operationId":"trends_trends_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"cat","in":"query","required":false,"schema":{"type":"string","description":"Category slug, empty = streamer clips in general.","default":"","title":"Cat"},"description":"Category slug, empty = streamer clips in general."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":60,"minimum":1,"default":24,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trends"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"get":{"tags":["lookup"],"summary":"Search Twitch channels and games","description":"Up to 10 channels and 8 games. Then use each result's clips_path.","operationId":"search_search_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"Streamer or game, 1 to 50 characters.","examples":["xqc"],"title":"Q"},"description":"Streamer or game, 1 to 50 characters."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such channel or game.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Twitch did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/streamers/{login}/clips":{"get":{"tags":["lookup"],"summary":"A streamer's top clips","description":"The channel's most viewed clips of the period (up to 20), with its profile.","operationId":"streamer_clips_streamers__login__clips_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"login","in":"path","required":true,"schema":{"type":"string","description":"Twitch login.","examples":["xqc"],"title":"Login"},"description":"Twitch login."},{"name":"period","in":"query","required":false,"schema":{"type":"string","description":"1h, 6h, day, week, month or all.","default":"week","title":"Period"},"description":"1h, 6h, day, week, month or all."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamerClips"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such channel or game.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Twitch did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/games/{name}/clips":{"get":{"tags":["lookup"],"summary":"A game's top clips","description":"The category's most viewed clips of the period (up to 20).","operationId":"game_clips_games__name__clips_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","description":"Twitch category name, URL-encoded.","examples":["Grand Theft Auto V"],"title":"Name"},"description":"Twitch category name, URL-encoded."},{"name":"period","in":"query","required":false,"schema":{"type":"string","description":"day, week or month.","default":"week","title":"Period"},"description":"day, week or month."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameClips"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such channel or game.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Twitch did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/showcase":{"get":{"tags":["lookup"],"summary":"Biggest streamers today and their best clips","description":"The channels with the highest viewer peak in the last 24 h, 3 top clips each (refreshed every 10 min).","operationId":"showcase_showcase_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Showcase"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"Bearer":[]},{"X-API-Key":[]}]}},"/v1/renders":{"post":{"tags":["renders"],"summary":"Start a render","description":"Queues a render of the clip: vertical 9:16 (facecam at the bottom when found), or landscape\n16:9 with `layout: wide`, with captions and your hook. Answers at\nonce with the render id; poll `poll_url`. A render takes about 30 s to 2 min. One render per key\nat a time: a second one while the first is queued or running gets 429 `render_in_progress`.","operationId":"create_render_renders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Render"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Rendering not installed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"X-API-Key":[]}]}},"/v1/renders/{render_id}":{"get":{"tags":["renders"],"summary":"Render status","description":"status, stage and progress; when done, `download_url` (no key, one use, 1 hour) and `file_url`.","operationId":"render_status_renders__render_id__get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","examples":["3f9c1a2b7d4e"],"title":"Render Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Render"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not your render, or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/renders/{render_id}/download":{"get":{"tags":["renders"],"summary":"Download the MP4","description":"With your key, or with the signed `token` from `download_url` (no key, one download, 1 hour).","operationId":"download_renders__render_id__download_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","title":"Render Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"From download_url. Without it, send your key.","title":"Token"},"description":"From download_url. Without it, send your key."}],"responses":{"200":{"description":"The MP4.","content":{"video/mp4":{}}},"403":{"description":"Bad link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Not done yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Link expired or used, or file gone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaigns":{"get":{"tags":["campaigns"],"summary":"Your campaigns","description":"The account's campaigns, newest first, with their pay, spec and logo.","operationId":"campaigns_campaigns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignList"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"Bearer":[]},{"X-API-Key":[]}]},"post":{"tags":["campaigns"],"summary":"Add a campaign","description":"From its Content Rewards link (the server reads the pay from the page) and its brief (read into the spec by a model when the server has one). Takes a few seconds. 20 adds an hour per account, shared with the website.","operationId":"add_campaign_campaigns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"X-API-Key":[]}]}},"/v1/campaigns/{campaign_id}":{"get":{"tags":["campaigns"],"summary":"One campaign","operationId":"campaign_campaigns__campaign_id__get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["campaigns"],"summary":"Change a campaign's spec","description":"Send only the fields to change. Texts are cut to the render limits, the logo stays inside the video; logo_corner puts it in a corner.","operationId":"update_campaign_campaigns__campaign_id__patch","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["campaigns"],"summary":"Delete a campaign and its logo","operationId":"delete_campaign_campaigns__campaign_id__delete","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaigns/{campaign_id}/logo":{"put":{"tags":["campaigns"],"summary":"Set the campaign's logo","description":"The image itself as the request body: PNG, JPEG or WebP, 2 MB at most, such as\n`curl -X PUT --data-binary @logo.png -H 'Content-Type: image/png' ...`. It replaces the old logo. With your key, or with the `token` of an upload link from the MCP tool `campaign_logo_upload` (no key, 10 minutes).","operationId":"set_logo_campaigns__campaign_id__logo_put","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"From an upload link. Without it, send your key.","title":"Token"},"description":"From an upload link. Without it, send your key."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"The upload link expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["campaigns"],"summary":"The campaign's logo","operationId":"logo_campaigns__campaign_id__logo_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response"},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["campaigns"],"summary":"Remove the campaign's logo","operationId":"delete_logo_campaigns__campaign_id__logo_delete","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaigns/{campaign_id}/clips":{"get":{"tags":["campaigns"],"summary":"Rising clips of the campaign's streamers","description":"Best first, from the channels Replish watches. For a streamer it does not watch, use /v1/streamers/{login}/clips.","operationId":"campaign_clips_campaigns__campaign_id__clips_get","security":[{"Bearer":[]},{"X-API-Key":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"window","in":"query","required":false,"schema":{"type":"integer","description":"Minutes to look back: 30, 60, 180, 360, 720 or 1440.","default":1440,"title":"Window"},"description":"Minutes to look back: 30, 60, 180, 360, 720 or 1440."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignClips"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The plan behind this key is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"A limit was reached; see Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key belongs to no account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such campaign in this key's account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Campaign":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The Content Rewards campaign page."},"banner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner"},"budget_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Cents"},"pay":{"items":{"$ref":"#/components/schemas/CampaignPay"},"type":"array","title":"Pay"},"spec":{"$ref":"#/components/schemas/CampaignSpec"},"logo":{"anyOf":[{"$ref":"#/components/schemas/CampaignLogo"},{"type":"null"}]},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","brand","url","banner","budget_cents","pay","spec","logo","brief","created_at","updated_at"],"title":"Campaign"},"CampaignClips":{"properties":{"campaign":{"type":"string","title":"Campaign"},"window":{"type":"integer","title":"Window"},"streamers":{"items":{"type":"string"},"type":"array","title":"Streamers"},"count":{"type":"integer","title":"Count"},"clips":{"items":{"$ref":"#/components/schemas/Clip"},"type":"array","title":"Clips"}},"type":"object","required":["campaign","window","streamers","count","clips"],"title":"CampaignClips"},"CampaignCreate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Url","description":"The campaign page: https://contentrewards.com/c/campaigns/<id>."},"brief":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Brief","description":"The brief with its rules, as text. The server reads it into the spec."}},"additionalProperties":false,"type":"object","title":"CampaignCreate"},"CampaignList":{"properties":{"campaigns":{"items":{"$ref":"#/components/schemas/Campaign"},"type":"array","title":"Campaigns"}},"type":"object","required":["campaigns"],"title":"CampaignList"},"CampaignLogo":{"properties":{"url":{"type":"string","title":"Url","description":"The image, with your key."},"left":{"type":"number","title":"Left","description":"Percent of the video's width from its left edge."},"top":{"type":"number","title":"Top","description":"Percent of the video's height from its top edge."},"size":{"type":"number","title":"Size","description":"Width, in percent of the video's width."}},"type":"object","required":["url","left","top","size"],"title":"CampaignLogo"},"CampaignPay":{"properties":{"platform":{"type":"string","title":"Platform"},"per_1k_views_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per 1K Views Cents"},"min_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Payout Cents"},"max_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Payout Cents"}},"type":"object","required":["platform","per_1k_views_cents","min_payout_cents","max_payout_cents"],"title":"CampaignPay"},"CampaignSpec":{"properties":{"streamers":{"items":{"type":"string"},"type":"array","title":"Streamers","description":"Twitch or Kick channel names to clip."},"watermark":{"type":"string","title":"Watermark"},"footer":{"type":"string","title":"Footer"},"hook":{"type":"string","title":"Hook","description":"Empty: write a hook for each clip."},"min_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Seconds"},"max_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seconds"},"captions":{"type":"boolean","title":"Captions"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"mentions":{"items":{"type":"string"},"type":"array","title":"Mentions"},"caption_text":{"type":"string","title":"Caption Text","description":"Text the post must include."},"unsupported":{"items":{"type":"string"},"type":"array","title":"Unsupported","description":"Rules Replish cannot apply: the clipper follows them."}},"type":"object","required":["streamers","watermark","footer","hook","min_seconds","max_seconds","captions","hashtags","mentions","caption_text","unsupported"],"title":"CampaignSpec"},"CampaignUpdate":{"properties":{"streamers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Streamers"},"watermark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Watermark"},"footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer"},"hook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook"},"min_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Seconds"},"max_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seconds"},"captions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Captions"},"hashtags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Hashtags"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mentions"},"caption_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption Text"},"unsupported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Unsupported"},"logo_left":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logo Left","description":"Percent of the video's width."},"logo_top":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logo Top","description":"Percent of the video's height."},"logo_size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logo Size","description":"Logo width, 6 to 50 percent of the video's width."},"logo_corner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Corner","description":"top-left, top-right, bottom-left or bottom-right."}},"additionalProperties":false,"type":"object","title":"CampaignUpdate"},"Category":{"properties":{"slug":{"type":"string","title":"Slug","description":"Pass as `cat=` to /v1/clips and /v1/trends."},"name":{"type":"string","title":"Name"},"viewers":{"type":"integer","title":"Viewers","description":"Live viewers on Twitch at the last poll."},"clip_count":{"type":"integer","title":"Clip Count","description":"Rising clips in the window."},"watched":{"type":"boolean","title":"Watched","description":"True when Replish polls this category all the time."},"box_art":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Box Art"}},"type":"object","required":["slug","name","viewers","clip_count","watched"],"title":"Category"},"CategoryList":{"properties":{"window":{"type":"integer","title":"Window"},"categories":{"items":{"$ref":"#/components/schemas/Category"},"type":"array","title":"Categories"}},"type":"object","required":["window","categories"],"title":"CategoryList"},"Channel":{"properties":{"login":{"type":"string","title":"Login"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"followers":{"type":"integer","title":"Followers"},"live":{"type":"boolean","title":"Live"},"viewers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Viewers"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"exact":{"type":"boolean","title":"Exact","description":"The query is this channel's name."},"clips_path":{"type":"string","title":"Clips Path","description":"Where to get this channel's top clips."}},"type":"object","required":["login","display_name","avatar","followers","live","viewers","category","exact","clips_path"],"title":"Channel"},"Clip":{"properties":{"id":{"type":"string","title":"Id","description":"The clip id (the Twitch clip slug). Pass it as `clip` to POST /v1/renders."},"slug":{"type":"string","title":"Slug"},"platform":{"type":"string","title":"Platform","description":"Where the clip lives: twitch or kick."},"url":{"type":"string","title":"Url","description":"The clip's public page."},"title":{"type":"string","title":"Title"},"broadcaster":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broadcaster","description":"Channel login."},"broadcaster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broadcaster Name","description":"Channel display name."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Game or category name."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Broadcaster language code, such as en."},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration","description":"Seconds."},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"ISO 8601, UTC."},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"views_per_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Per Min","description":"Average views per minute since it was made. Rising clips only."},"big_moment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Big Moment","description":"Other clips of the same channel made within 2 minutes: several viewers clipping the same moment. Rising clips only."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Replish's rising score (higher rises faster). Rising clips only."},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank","description":"1 = fastest rising. Rising clips only."},"auto_highlight":{"type":"boolean","title":"Auto Highlight","description":"Twitch's auto-made 'Highlight ... Part 01' clips.","default":false}},"type":"object","required":["id","slug","platform","url","title"],"title":"Clip","examples":[{"auto_highlight":false,"big_moment":3,"broadcaster":"xqc","broadcaster_name":"xQc","category":"Just Chatting","created_at":"2026-11-20T03:12:44Z","duration":28.0,"id":"BraveHungryOtterKappa-x1Y2z3","language":"en","platform":"twitch","rank":1,"score":402.11,"slug":"BraveHungryOtterKappa-x1Y2z3","thumbnail":"https://static-cdn.jtvnw.net/twitch-clips/abc-480x272.jpg","title":"he did NOT see that coming","url":"https://clips.twitch.tv/BraveHungryOtterKappa-x1Y2z3","views":4210,"views_per_min":168.4}]},"ClipList":{"properties":{"window":{"type":"integer","title":"Window","description":"Minutes looked back: 30, 60, 180, 360, 720 or 1440 (24 h)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"count":{"type":"integer","title":"Count"},"clips":{"items":{"$ref":"#/components/schemas/Clip"},"type":"array","title":"Clips"}},"type":"object","required":["window","category","language","platform","count","clips"],"title":"ClipList"},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable code, such as invalid_key or render_in_progress."},"message":{"type":"string","title":"Message","description":"A sentence for humans (and LLMs) saying what to do next."}},"type":"object","required":["code","message"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"type":"object","required":["error"],"title":"ErrorResponse","examples":[{"error":{"code":"invalid_key","message":"This API key is not valid or was revoked."}}]},"Game":{"properties":{"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"box_art":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Box Art"},"viewers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Viewers"},"clips_path":{"type":"string","title":"Clips Path"}},"type":"object","required":["name","display_name","box_art","viewers","clips_path"],"title":"Game"},"GameClips":{"properties":{"game":{"$ref":"#/components/schemas/GameInfo"},"period":{"type":"string","title":"Period"},"clips":{"items":{"$ref":"#/components/schemas/Clip"},"type":"array","title":"Clips","description":"Most viewed first, up to 20."}},"type":"object","required":["game","period","clips"],"title":"GameClips"},"GameInfo":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"box_art":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Box Art"},"viewers":{"type":"integer","title":"Viewers"},"channels":{"type":"integer","title":"Channels"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["name","display_name","box_art","viewers","channels","url"],"title":"GameInfo"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HotTag":{"properties":{"tag":{"type":"string","title":"Tag"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Live","description":"True when that streamer has clips in the rising feed now."}},"type":"object","required":["tag"],"title":"HotTag"},"Render":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status","description":"queued, running, done or error."},"stage":{"type":"string","title":"Stage","description":"queued, downloading, rendering, done or error."},"progress":{"type":"number","title":"Progress","description":"0 to 1."},"clip":{"$ref":"#/components/schemas/RenderClip"},"hook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook"},"footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer"},"watermark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Watermark"},"captions":{"type":"boolean","title":"Captions"},"layout":{"type":"string","title":"Layout"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why it failed, when status is error."},"poll_url":{"type":"string","title":"Poll Url","description":"GET it (with your key) until status is done or error. Every 3 to 5 s is plenty."},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url","description":"When done: the MP4, with your key."},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url","description":"When done: the MP4 without a key, good for one download within 1 hour. Each status call gives a fresh one."},"download_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Expires At"}},"type":"object","required":["id","status","stage","progress","clip","hook","captions","layout","created_at","updated_at","error","poll_url","file_url","download_url","download_expires_at"],"title":"Render","examples":[{"captions":true,"clip":{"slug":"BraveHungryOtterKappa-x1Y2z3","url":"https://clips.twitch.tv/BraveHungryOtterKappa-x1Y2z3"},"created_at":"2026-11-20T03:20:01Z","download_expires_at":"2026-11-20T04:21:12Z","download_url":"https://replish.example/v1/renders/3f9c1a2b7d4e/download?token=1763612472.k3J...","file_url":"https://replish.example/v1/renders/3f9c1a2b7d4e/download","footer":"Follow for daily clips","hook":"wait for it","id":"3f9c1a2b7d4e","layout":"auto","poll_url":"https://replish.example/v1/renders/3f9c1a2b7d4e","progress":1.0,"stage":"done","status":"done","updated_at":"2026-11-20T03:21:12Z","watermark":"@myclips"}]},"RenderClip":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["slug","url"],"title":"RenderClip"},"RenderRequest":{"properties":{"clip":{"type":"string","maxLength":300,"title":"Clip","description":"A Twitch clip slug, https://clips.twitch.tv/<slug> or https://www.twitch.tv/<channel>/clip/<slug>.","examples":["https://clips.twitch.tv/BraveHungryOtterKappa-x1Y2z3"]},"hook":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Hook","description":"Short text burned at the top of the video, up to 120 characters. A line break (\\n) starts a new line, up to 3 lines.","examples":["wait for it"]},"captions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Captions","description":"Burn word-by-word captions (speech to text). Default: true, or the campaign's setting."},"layout":{"type":"string","maxLength":20,"title":"Layout","description":"stack (content on top, facecam at the bottom), blur (the whole clip kept horizontal on a blurred background, hook above and captions below), wide (a landscape 1920x1080 video for X or YouTube, text over the clip) or auto (stack when a facecam is found, else blur).","default":"auto"},"start":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start","description":"Optional: seconds into the clip to start at. Only on servers whose render engine supports trimming (400 otherwise)."},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration","description":"Optional: seconds to keep, 1 to 180. Same note as start."},"footer":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Footer","description":"Optional line burned near the bottom, under the captions, up to 80 characters (2 lines at most).","examples":["Follow for daily clips"]},"watermark":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Watermark","description":"Optional handle shown small and see-through near the top, up to 30 characters.","examples":["@myclips"]},"campaign":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Campaign","description":"Optional: one of your campaigns (GET /v1/campaigns). Its spec fills what this request leaves empty (hook, footer, watermark, captions), caps the length at its longest video, and its logo is laid over the video where it was placed.","examples":["3f9c1a2b7d4e"]}},"additionalProperties":false,"type":"object","required":["clip"],"title":"RenderRequest","examples":[{"captions":true,"clip":"https://clips.twitch.tv/BraveHungryOtterKappa-x1Y2z3","hook":"wait for it"}]},"SearchResult":{"properties":{"query":{"type":"string","title":"Query"},"channels":{"items":{"$ref":"#/components/schemas/Channel"},"type":"array","title":"Channels"},"games":{"items":{"$ref":"#/components/schemas/Game"},"type":"array","title":"Games"}},"type":"object","required":["query","channels","games"],"title":"SearchResult"},"Showcase":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"streamers":{"items":{"$ref":"#/components/schemas/ShowcaseStreamer"},"type":"array","title":"Streamers"}},"type":"object","required":["enabled","updated_at","streamers"],"title":"Showcase"},"ShowcaseStreamer":{"properties":{"login":{"type":"string","title":"Login"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"live":{"type":"boolean","title":"Live"},"viewers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Viewers"},"peak_viewers":{"type":"integer","title":"Peak Viewers"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"period":{"type":"string","title":"Period"},"clips":{"items":{"$ref":"#/components/schemas/Clip"},"type":"array","title":"Clips"}},"type":"object","required":["login","display_name","avatar","live","viewers","peak_viewers","category","period","clips"],"title":"ShowcaseStreamer"},"Streamer":{"properties":{"login":{"type":"string","title":"Login"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"followers":{"type":"integer","title":"Followers"},"live":{"type":"boolean","title":"Live"},"viewers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Viewers"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"url":{"type":"string","title":"Url"}},"type":"object","required":["login","display_name","avatar","followers","live","viewers","category","url"],"title":"Streamer"},"StreamerClips":{"properties":{"streamer":{"$ref":"#/components/schemas/Streamer"},"period":{"type":"string","title":"Period"},"clips":{"items":{"$ref":"#/components/schemas/Clip"},"type":"array","title":"Clips","description":"Most viewed first, up to 20."}},"type":"object","required":["streamer","period","clips"],"title":"StreamerClips"},"TrendItem":{"properties":{"platform":{"type":"string","title":"Platform","description":"tiktok, youtube or x."},"url":{"type":"string","title":"Url"},"text":{"type":"string","title":"Text"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"views":{"type":"integer","title":"Views","default":0},"likes":{"type":"integer","title":"Likes","default":0},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"age":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age","description":"Human age, such as '3 h ago'."}},"type":"object","required":["platform","url","text"],"title":"TrendItem"},"Trends":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"False when the trends panel is off on this server."},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"scope_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Name"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"items":{"items":{"$ref":"#/components/schemas/TrendItem"},"type":"array","title":"Items"},"hot_tags":{"items":{"$ref":"#/components/schemas/HotTag"},"type":"array","title":"Hot Tags"}},"type":"object","required":["enabled","scope","scope_name","updated_at","items","hot_tags"],"title":"Trends"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"Bearer":{"type":"http","description":"Your key: `Authorization: Bearer rp_live_...`","scheme":"bearer"},"X-API-Key":{"type":"apiKey","description":"Same key, as a header, for clients that cannot set Authorization.","in":"header","name":"X-API-Key"}}},"tags":[{"name":"clips","description":"Rising clips, categories and trends."},{"name":"lookup","description":"Search Twitch, and a streamer's or a game's top clips."},{"name":"renders","description":"Vertical renders: start, poll, download."},{"name":"campaigns","description":"Your account's campaigns: spec, logo, clips, renders."}]}