{"openapi":"3.1.0","info":{"title":"Canadian AI Reels API","version":"1.0.0","description":"Videos as JSON documents (https://reels.canadian-ai.ca/schemas/reel/v1.json). The same operations are available as MCP tools at https://reels.canadian-ai.ca/api/mcp; see https://reels.canadian-ai.ca/docs.\n\n- Requires a Canadian AI account with Reels access (an approved member). Agents act as you: they see and change only your reels.\n- Connect the Canadian AI MCP and sign in: no Reels key needed. Reading needs the workspace:read scope; creating, editing and rendering need tools:execute.\n- Media must be public https URLs (logos: SVG or PNG). Brands without a logo get a monogram of their name.\n- Templates take up to 6 bullet points and 3 metrics. Use real figures only: templates show only the numbers you give.\n- Up to 100 operations per edit. Edits are all-or-nothing; send expectedVersion to avoid overwriting someone else.\n- Renders take about 1–3× the video length. MP4 links last 24 hours; rendering the same version again returns the cached file with a fresh link.\n- Scripts and REST can use a personal Reels key from /developers instead (read-only or read + write, shown once, revocable)."},"servers":[{"url":"https://reels.canadian-ai.ca"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A personal key (rk_…) from /developers."}}},"paths":{"/api/recipes":{"get":{"summary":"Rank creative recipes with ?q=; returns input schemas, scene arcs and supported aspect ratios.","x-mcp-tool":"reel_recipe_list","security":[],"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}},"post":{"summary":"Compile recipe inputs to validated reel/v1 JSON without creating or rendering a project.","x-mcp-tool":"reel_recipe_build","security":[],"requestBody":{"required":true,"description":"{ recipe, input }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/templates":{"get":{"summary":"Gallery templates with use cases, scenes, fields and defaults. ?q= filters.","x-mcp-tool":"reel_template_list","security":[],"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/catalog":{"get":{"summary":"Motion blocks, films and templates with props and defaults. ?q=&category=&limit=","x-mcp-tool":"reel_catalog_search","security":[],"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/schemas/reel/v1.json":{"get":{"summary":"The reel/v1 JSON Schema.","security":[],"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels":{"get":{"summary":"Your reels.","x-mcp-tool":"reel_list","security":[{"bearer":[]}],"x-scope":"read","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}},"post":{"summary":"Create a reel from a gallery template (with brand and copy), a motion template, or a reel/v1 document.","x-mcp-tool":"reel_create","security":[{"bearer":[]}],"x-scope":"write","requestBody":{"required":true,"description":"{ template, brand?, copy?, name? } | { reel }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels/{id}":{"get":{"summary":"The document, its version and a clip index.","x-mcp-tool":"reel_inspect","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"read","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}},"patch":{"summary":"Apply operations as a new version (all-or-nothing).","x-mcp-tool":"reel_apply","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"write","requestBody":{"required":true,"description":"{ operations, expectedVersion? }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}},"delete":{"summary":"Delete the reel and its history.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"write","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels/{id}/history":{"get":{"summary":"Versions, newest first. ?version=n returns that document.","x-mcp-tool":"reel_history","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"read","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels/{id}/revert":{"post":{"summary":"Restore a version as a new version.","x-mcp-tool":"reel_revert","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"write","requestBody":{"required":true,"description":"{ version }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels/{id}/render":{"post":{"summary":"Start a server render.","x-mcp-tool":"reel_render","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"write","requestBody":{"required":true,"description":"{ aspect?: \"16:9\" | \"9:16\" | \"1:1\", mode?: \"fit\" | \"reflow\" }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/reels/{id}/renders/{renderId}":{"get":{"summary":"Render status; a signed MP4 url (24 hours) when done.","x-mcp-tool":"reel_render_status","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"renderId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]}],"x-scope":"read","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/music/import":{"post":{"summary":"Turn a public Drive or https audio link into a hosted src.","x-mcp-tool":"music_import","security":[{"bearer":[]}],"x-scope":"write","requestBody":{"required":true,"description":"{ url }","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}},"/api/music/brand":{"get":{"summary":"Your brand music.","x-mcp-tool":"brand_music_get","security":[{"bearer":[]}],"x-scope":"read","responses":{"200":{"description":"OK"},"400":{"description":"{ error, problems? }: what to change"},"401":{"description":"Missing or revoked key"},"409":{"description":"Another editor saved first; re-read and retry"}}}}}}