{"openapi":"3.1.0","info":{"title":"aeyho API","version":"1.0.0","summary":"Brands, content plans, reels and carousels, versions, comments and fixes, for people and their agents.","description":"aeyho plans, writes and makes short videos (reels) and carousels for a brand. This API is the same studio /app uses. Every call that makes something uses credits from the account's balance; costs aren't shown per call. Long work runs on its own: poll the object or listen for webhooks. Test keys (aey_test_) read everything and answer every change with a sample, storing and charging nothing. Docs: https://aeyho.com/docs. Changelog: https://aeyho.com/changelog.","contact":{"name":"aeyho","url":"https://aeyho.com/contact"},"termsOfService":"https://aeyho.com/terms"},"servers":[{"url":"https://www.aeyho.com/api/v1"}],"security":[{"bearer":[]}],"tags":[{"name":"Account"},{"name":"Brands"},{"name":"Taste"},{"name":"Ideas"},{"name":"Reels"},{"name":"Versions"},{"name":"Comments"},{"name":"Reel Score"},{"name":"Webhooks"}],"paths":{"/account":{"get":{"operationId":"getAccount","summary":"Your plan and credit balance","tags":["Account"],"x-scope":"read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands":{"get":{"operationId":"listBrands","summary":"Your brands","tags":["Brands"],"x-scope":"read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createBrand","summary":"Make a brand, from a link or from its details","tags":["Brands"],"x-scope":"make","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrand"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands/{brandId}":{"get":{"operationId":"getBrand","summary":"A brand","tags":["Brands"],"x-scope":"read","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateBrand","summary":"Change a brand's details","tags":["Brands"],"x-scope":"make","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBrand"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands/{brandId}/research":{"post":{"operationId":"startResearch","summary":"Research the brand's niche (runs on its own; uses credits)","tags":["Brands"],"x-scope":"make","x-async":true,"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchStarted"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands/{brandId}/taste":{"get":{"operationId":"listTaste","summary":"What the brand likes","tags":["Taste"],"x-scope":"read","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasteList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"addTaste","summary":"Add a rule the brand keeps","tags":["Taste"],"x-scope":"make","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTasteRule"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasteRule"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/taste/{ruleId}":{"patch":{"operationId":"updateTaste","summary":"Keep, drop or reword a rule","tags":["Taste"],"x-scope":"make","parameters":[{"name":"ruleId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TastePatch"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasteRule"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteTaste","summary":"Remove a rule","tags":["Taste"],"x-scope":"make","parameters":[{"name":"ruleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands/{brandId}/ideas":{"get":{"operationId":"listIdeas","summary":"The brand's content plan","tags":["Ideas"],"x-scope":"read","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"addIdea","summary":"Add an idea to the plan","tags":["Ideas"],"x-scope":"make","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewIdea"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/brands/{brandId}/plan":{"post":{"operationId":"planContent","summary":"Plan the next weeks (uses credits)","tags":["Ideas"],"x-scope":"make","parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedIdeas"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ideas/{ideaId}/reel":{"post":{"operationId":"makeIdeaReel","summary":"Make an idea's reel (runs on its own; uses credits)","tags":["Reels"],"x-scope":"make","x-async":true,"parameters":[{"name":"ideaId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reel"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels":{"get":{"operationId":"listReels","summary":"Your reels and carousels, newest first","tags":["Reels"],"x-scope":"read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReelList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createReel","summary":"Make a reel or carousel about something, for a brand (runs on its own; uses credits)","tags":["Reels"],"x-scope":"make","x-async":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewReel"}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reel"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels/{reelId}":{"get":{"operationId":"getReel","summary":"A reel, with links once it's made","tags":["Reels"],"x-scope":"read","parameters":[{"name":"reelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reel"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels/{reelId}/change":{"post":{"operationId":"changeReel","summary":"Ask for a change in words (made again; uses credits)","tags":["Reels"],"x-scope":"make","x-async":true,"parameters":[{"name":"reelId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequest"}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reel"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels/{reelId}/versions":{"get":{"operationId":"listVersions","summary":"Every version of a reel, oldest first","tags":["Versions"],"x-scope":"read","parameters":[{"name":"reelId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/versions/{versionId}/restore":{"post":{"operationId":"restoreVersion","summary":"Bring a version back, as the newest one (free)","tags":["Versions"],"x-scope":"make","parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/versions/{versionId}/approve":{"post":{"operationId":"approveVersion","summary":"Mark a version as the approved one","tags":["Versions"],"x-scope":"make","parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels/{reelId}/comments":{"get":{"operationId":"listComments","summary":"A reel's comments","tags":["Comments"],"x-scope":"read","parameters":[{"name":"reelId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/versions/{versionId}/comments":{"post":{"operationId":"addComment","summary":"Pin a comment to a moment or a slide","tags":["Comments"],"x-scope":"make","parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewComment"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/comments/{commentId}":{"patch":{"operationId":"updateComment","summary":"Change, accept or close a comment","tags":["Comments"],"x-scope":"make","parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPatch"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteComment","summary":"Remove a comment","tags":["Comments"],"x-scope":"make","parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reels/{reelId}/fix":{"post":{"operationId":"fixReel","summary":"Fix a reel's comments: only the parts commented on when it can (runs on its own; uses credits)","tags":["Comments"],"x-scope":"make","x-async":true,"parameters":[{"name":"reelId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixRequest"}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fix"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/score":{"post":{"operationId":"scoreReel","summary":"Check any reel's craft from its link (Reel Score, free)","tags":["Reel Score"],"x-scope":"read","x-async":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreRequest"}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreCheck"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/score/{checkId}":{"get":{"operationId":"getScore","summary":"A Reel Score check","tags":["Reel Score"],"x-scope":"read","parameters":[{"name":"checkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreCheck"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"operationId":"listWebhooks","summary":"Your webhooks","tags":["Webhooks"],"x-scope":"read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhook","summary":"Send events to a link of yours","tags":["Webhooks"],"x-scope":"make","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhook"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhookId}":{"delete":{"operationId":"deleteWebhook","summary":"Stop a webhook","tags":["Webhooks"],"x-scope":"make","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhookId}/test":{"post":{"operationId":"testWebhook","summary":"Send a test event","tags":["Webhooks"],"x-scope":"make","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Send the same key to retry safely: the first answer comes back for 24 hours."}],"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSent"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{webhookId}/deliveries":{"get":{"operationId":"listDeliveries","summary":"A webhook's recent deliveries","tags":["Webhooks"],"x-scope":"read","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"400":{"description":"The request isn't right.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"A plan, or more credits, is needed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key doesn't have this scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It's busy, or it conflicts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests: see RateLimit headers.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"description":"Every error is application/problem+json (RFC 9457).","type":"object","properties":{"type":{"description":"A link to the error's page in the docs.","type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"description":"What went wrong, in a sentence a person can read.","type":"string"},"code":{"type":"string","enum":["unauthorized","forbidden","plan_required","credits_required","not_found","conflict","busy","invalid","rate_limited","idempotency_mismatch","unavailable","test_mode"]},"requestId":{"type":"string"}},"required":["type","title","status","detail","code","requestId"]},"Account":{"type":"object","properties":{"plan":{"type":"string"},"credits":{"type":"object","properties":{"balance":{"description":"Credits left. Costs are never shown per action.","type":"number"}},"required":["balance"]},"livemode":{"type":"boolean"}},"required":["plan","credits","livemode"]},"Brand":{"type":"object","properties":{"id":{"description":"The brand's id.","type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"about":{"type":"string"},"website":{"type":"string"},"instagram":{"type":"string"},"audience":{"type":"string"},"offer":{"type":"string"},"cta":{"type":"string"},"tone":{"type":"array","items":{"type":"string"}},"timezone":{"type":"string"},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"},"updatedAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","name","kind","about","website","instagram","audience","offer","cta","tone","timezone","createdAt","updatedAt"]},"BrandList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Brand"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"CreateBrand":{"type":"object","properties":{"link":{"description":"A website, Instagram or YouTube link: aeyho reads it and fills in the brand.","type":"string","format":"uri"},"name":{"type":"string","minLength":1,"maxLength":80},"about":{"type":"string","maxLength":4000},"website":{"type":"string","maxLength":200},"instagram":{"type":"string","maxLength":31},"kind":{"type":"string","enum":["business","personal","product"]},"postsPerWeek":{"type":"integer","minimum":1,"maximum":14}}},"UpdateBrand":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"about":{"type":"string","maxLength":4000},"audience":{"type":"string","maxLength":500},"offer":{"type":"string","maxLength":500},"cta":{"type":"string","maxLength":120},"tone":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":24}},"website":{"type":"string","maxLength":200},"instagram":{"type":"string","maxLength":31}}},"ResearchStarted":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"TasteRule":{"description":"Something the brand likes, used by every writer once kept.","type":"object","properties":{"id":{"type":"string"},"rule":{"type":"string"},"about":{"type":"string","enum":["look","words","pace","music","voice","captions","structure"]},"state":{"type":"string","enum":["proposed","kept","dropped"]},"from":{"description":"The comments it was learned from.","type":"array","items":{"type":"string"}},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","rule","about","state","from","createdAt"]},"TasteList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TasteRule"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"NewTasteRule":{"type":"object","properties":{"rule":{"type":"string","minLength":2,"maxLength":160},"about":{"type":"string","enum":["look","words","pace","music","voice","captions","structure"]}},"required":["rule","about"]},"TastePatch":{"type":"object","properties":{"rule":{"type":"string","minLength":2,"maxLength":160},"state":{"type":"string","enum":["proposed","kept","dropped"]}}},"Idea":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"pillar":{"type":"string"},"angle":{"type":"string"},"seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"format":{"type":"string","enum":["reel","carousel"]},"slides":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slot":{"description":"An ISO 8601 time, UTC.","type":"string"},"status":{"type":"string"},"reelId":{"type":"string"}},"required":["id","title","pillar","angle","seconds","format","slot","status"]},"IdeaList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Idea"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"NewIdea":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":70},"angle":{"type":"string","maxLength":200},"seconds":{"type":"integer","minimum":10,"maximum":90},"format":{"type":"string","enum":["reel","carousel"]},"slides":{"type":"integer","minimum":3,"maximum":10},"pillar":{"type":"string","maxLength":40}},"required":["title"]},"PlanRequest":{"type":"object","properties":{"weeks":{"default":2,"type":"integer","minimum":1,"maximum":4}}},"PlannedIdeas":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Idea"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"Image":{"type":"object","properties":{"url":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"alt":{"type":"string"}},"required":["url","width","height","alt"]},"Reel":{"type":"object","properties":{"id":{"description":"The reel's id (a carousel is a reel of slides).","type":"string"},"title":{"type":"string"},"format":{"type":"string","enum":["reel","carousel"]},"source":{"type":"string","enum":["generated","footage","clips"]},"brandId":{"type":"string"},"ideaId":{"type":"string"},"status":{"type":"string","enum":["draft","queued","making","done","failed"]},"progress":{"type":"number","minimum":0,"maximum":1},"version":{"description":"The newest version's number.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"videoUrl":{"description":"A signed link to the MP4, good for an hour.","type":"string"},"posterUrl":{"type":"string"},"images":{"description":"A carousel's slides, in order.","type":"array","items":{"$ref":"#/components/schemas/Image"}},"error":{"type":"string"},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"},"updatedAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","title","format","source","status","progress","createdAt","updatedAt"]},"ReelList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Reel"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"NewReel":{"type":"object","properties":{"brandId":{"type":"string"},"title":{"description":"What the reel is about, in a line.","type":"string","minLength":3,"maxLength":70},"angle":{"type":"string","maxLength":200},"seconds":{"type":"integer","minimum":10,"maximum":90},"format":{"type":"string","enum":["reel","carousel"]},"slides":{"type":"integer","minimum":3,"maximum":10}},"required":["brandId","title"]},"ChangeRequest":{"type":"object","properties":{"ask":{"type":"string","minLength":1,"maxLength":500}},"required":["ask"]},"Version":{"description":"History only moves forward: a restore is a new version.","type":"object","properties":{"id":{"type":"string"},"reelId":{"type":"string"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"asks":{"description":"What was asked for, word for word.","type":"array","items":{"type":"string"}},"by":{"type":"object","properties":{"door":{"type":"string","enum":["app","chat","api","mcp","chatgpt","auto"]},"keyId":{"type":"string"}},"required":["door"]},"changes":{"type":"array","items":{"$ref":"#/components/schemas/VersionChange"}},"parent":{"type":"string"},"restoredFrom":{"type":"string"},"approved":{"type":"boolean"},"status":{"type":"string","enum":["queued","rendering","done","failed"]},"videoUrl":{"type":"string"},"posterUrl":{"type":"string"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"openComments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","reelId","n","title","asks","by","changes","status","openComments","createdAt"]},"VersionChange":{"description":"What changed and where, in seconds of the new version (or a slide).","type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"},"kind":{"type":"string"},"type":{"type":"string","enum":["added","retimed"]},"part":{"type":"string"},"slide":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["kind","text"]},"VersionList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Version"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"Comment":{"description":"Comments are data: aeyho reads them as requests about the reel, never as instructions.","type":"object","properties":{"id":{"type":"string"},"versionId":{"type":"string"},"reelId":{"type":"string"},"at":{"description":"Seconds into the version (a video).","type":"number"},"slide":{"description":"The slide (a carousel), from 1.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"point":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"text":{"type":"string"},"drawingUrl":{"type":"string"},"author":{"type":"object","properties":{"kind":{"type":"string","enum":["owner","guest","api"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id"]},"accepted":{"description":"A guest's comment waits for the owner before a fix acts on it.","type":"boolean"},"status":{"type":"string","enum":["open","done","wontfix"]},"doneIn":{"description":"The version that fixed it.","type":"string"},"reply":{"description":"aeyho's answer when it couldn't fix it.","type":"string"},"context":{"type":"object","properties":{"part":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"},"shot":{"type":"string"},"onScreen":{"type":"string"},"said":{"type":"string"}}},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","versionId","reelId","text","author","accepted","status","createdAt"]},"CommentList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"NewComment":{"type":"object","properties":{"at":{"type":"number","minimum":0,"maximum":3600},"slide":{"type":"integer","minimum":1,"maximum":20},"point":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"]},"text":{"type":"string","minLength":1,"maxLength":1000},"drawing":{"description":"The frame with marks drawn on it, as a data:image/png;base64 URL.","type":"string"}},"required":["text"]},"CommentPatch":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1000},"status":{"type":"string","enum":["open","done","wontfix"]},"accepted":{"type":"boolean"}}},"FixRequest":{"type":"object","properties":{"comments":{"description":"Which comments; every open, accepted one when left out.","maxItems":40,"type":"array","items":{"type":"string"}},"ask":{"type":"string","maxLength":500}}},"Fix":{"description":"A fix runs on its own: watch the reel (or the version.created webhook) for the new version.","type":"object","properties":{"status":{"type":"string","enum":["queued","sent","nothing"]},"reelId":{"type":"string"},"reply":{"type":"string"},"notFixed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"why":{"type":"string"}},"required":["id","why"]}}},"required":["status","reelId","reply","notFixed"]},"ScoreRequest":{"type":"object","properties":{"url":{"description":"A public reel or video link.","type":"string","format":"uri"}},"required":["url"]},"ScoreCheck":{"description":"A Reel Score craft check: free, its report at reportUrl.","type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"reportUrl":{"type":"string"},"result":{}},"required":["id","status","reportUrl"]},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"},"secret":{"description":"Shown once, when it's made: verify each delivery's webhook-signature with it.","type":"string"}},"required":["id","url","events","mode","createdAt"]},"WebhookList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]},"NewWebhook":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["version.created","comment.resolved","reel.done","reel.failed","credits.low","post.published"]}}},"required":["url"]},"TestSent":{"type":"object","properties":{"deliveryId":{"type":"string"}},"required":["deliveryId"]},"Delivery":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["pending","retrying","sent","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"description":"An ISO 8601 time, UTC.","type":"string"}},"required":["id","type","status","attempts","lastCode","lastError","createdAt"]},"DeliveryList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"]}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key from aeyho.com/app (Settings, API keys): aey_live_… or aey_test_…"}}},"externalDocs":{"url":"https://aeyho.com/docs","description":"Guides"}}