{"openapi":"3.1.2","info":{"title":"Fusio API","version":"1.0.0","description":"Přes Fusio API můžou tvoje vlastní nástroje pracovat s Fusiem: s články, e-maily, příspěvky na sítě, kampaněmi, soubory, kontakty, leady, obchody, reklamami a s tím, co Fusio ví o tvé firmě.\n\n## Adresa\n\nVšechny požadavky posílej na `https://<host>/api`. Většina cest začíná `/v1/`. Hromadný import leadů a obchodů začíná `/v2/sync/`.\n\n## Přihlášení klíčem\n\nKlíč dej do hlavičky `Authorization`:\n\n```http\nAuthorization: Bearer <klíč>\n```\n\nNikdy ho nedávej do adresy ani do sdíleného souboru. Klíče jsou dvojí:\n\n- **Osobní klíč** jedná za tebe a smí jen to, co smíš ty. Vytvoříš ho v aplikaci v Nastavení → Pro vývojáře → AI asistenti.\n- **Klíč pro aplikace** patří firmě a je pro tvoje servery. Vytvoříš ho v aplikaci v Nastavení → Pro vývojáře → Klíče pro aplikace.\n\n## Odpověď\n\nKaždá odpověď má stejnou obálku:\n\n```json\n{ \"status\": \"success\", \"message\": \"Request processed successfully\", \"payload\": {} }\n```\n\nData jsou vždy v `payload`. Když se něco pokazí, `status` je `error` a v `payload.error` často bývá krátký kód:\n\n| Stav | Co znamená |\n|---|---|\n| 401 | Klíč chybí, vypršel, nebo jsi ho vypnul. |\n| 402 | Tvé firmě nestačí AI kredity. V `payload` najdeš `requiredCredits`, `availableCredits` a `missingCredits`. |\n| 403 | Klíč na tohle nemá právo (`insufficient_scope`), nebo klíče na tuhle adresu nesmí (`route_outside_surface`). |\n| 404 | Taková věc neexistuje, nebo ji klíč nevidí. |\n| 409 | Stejná data ve stejnou chvíli změnil někdo jiný (`concurrent_modification`). Nic se neuložilo, takže pošli stejný požadavek znovu. Některé adresy vrací 409 i s vlastním kódem a reference to u nich napíše. |\n| 422 | Data neprošla kontrolou. V `errors` je každé pole a důvod. Když jsou data v pořádku, ale požadavek teď provést nejde, třeba proto, že kampaň ještě není připravená, přijde místo toho obálka chyby: důvod je v `message` a někdy přidá podrobnosti `payload`, třeba `blockers`. |\n| 429 | Moc požadavků. Hlavička `Retry-After` řekne, kdy to zkusit znovu. |\n\n## Limity\n\nKaždý osobní klíč smí poslat 120 požadavků za minutu. Některé adresy mají vlastní limit a reference to u nich napíše. Když limit překročíš, přijde 429.\n\n## Seznamy, stránky a filtry\n\nSeznamy berou `page` a `perPage`. Na jedné stránce je nejvýš 100 položek. Řadíš přes `sort`; mínus znamená od největšího, třeba `sort=-publishedAt`. Filtr se píše jako `filter[state]=published`. Reference u každého seznamu vypíše jeho filtry a řazení.\n\n## Práva\n\nKlíči dáváš práva (scopes) po oblastech: číst, zapisovat a spouštět. Každá adresa vypíše práva, která potřebuje. Z „Potřebuje jedno z těchto práv“ stačí jedno; práva u „Potřebuje taky“ musí mít klíč vždycky.\n\n- **Práva na vyžádání**, třeba odesílání e-mailů nebo publikování, klíč nikdy nedostane sám. Musíš je zaškrtnout schválně.\n- **Práva navíc** jsou potřeba jen pro některé hodnoty. Třeba uložit článek jako publikovaný chce kromě `articles.write` i `articles.publish`. Reference napíše, které hodnoty co potřebují.\n\n## AI kredity\n\nNěkteré adresy tvoří obsah přes AI. Platí to kredity tvé firmy a reference je označí varováním. Ke každému takovému požadavku pošli `maxCredits`, tedy kolik smí nejvýš stát. Bez něj přijde 422. Kdyby práce stála víc, nic se nestane a přijde `max_credits_below_estimate`. Klíči můžeš dát i měsíční strop kreditů. Když ho klíč vyčerpá, přijde `monthly_credit_limit_reached`."},"servers":[{"url":"https://api.fusio.digital/api"}],"paths":{"/v1/ad-deployments/{deployment}/google-ads/sync":{"post":{"operationId":"ad-deployments.google-ads.sync","tags":["ads"],"parameters":[{"name":"deployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nasazení, z `id` odpovědi `google-ads-search-campaigns.google-ads.deploy`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsDeploymentDetailData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Načti kampaň z Google Ads","description":"Načte kampaň z Google Ads, uloží, co se Fusio dozvědělo, a vrátí obojí: nasazení i kampaň, jak ji má Google Ads. V Google Ads se nic nezmění. Když musíš Google Ads připojit znovu, dostaneš 409.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/ad-deployments/{deployment}/google-ads/reconcile":{"post":{"operationId":"ad-deployments.google-ads.reconcile","tags":["ads"],"parameters":[{"name":"deployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nasazení, z `id` odpovědi `google-ads-search-campaigns.google-ads.deploy`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsDeploymentDetailData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Oprav nedokončené odeslání","description":"> [!WARNING]\n> Tohle znovu propojí kampaň v tvém účtu Google Ads s Fusiem. Na to klíč potřebuje `ads.execute.google`.\n\nPoužij ji, když se odesílání do Google Ads zastavilo uprostřed a nasazení má stav reconciliation_required. Fusio najde pozastavenou kampaň, kterou v Google Ads vytvořilo, zkontroluje, že jsou tam všechny části, a znovu ji propojí. Vrátí nasazení i kampaň.\n\nKdyž Fusio celou kampaň s jistotou nenajde, nic se neuloží a dostaneš 422. Když běží jiná změna nasazení, dostaneš taky 422.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Google Ads (apply, reconcile, status).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/ad-deployments/{deployment}/google-ads/apply":{"post":{"operationId":"ad-deployments.google-ads.apply","tags":["ads"],"parameters":[{"name":"deployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nasazení, z `id` odpovědi `google-ads-search-campaigns.google-ads.deploy`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planRevision":{"type":"string","pattern":"^[a-f0-9]{64}$","minLength":64,"maxLength":64,"description":"`currentPlanRevision` nasazení: 64 znaků z 0–9 a a–f. Když se plán mezitím změnil, dostaneš 409."},"confirmActiveCampaign":{"type":"boolean","description":"true, když potvrzuješ, že víš, že kampaň běží a změny se projeví hned. Když běží a pošleš false, dostaneš 422."}},"required":["planRevision","confirmActiveCampaign"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Pošli změny do Google Ads","description":"> [!WARNING]\n> Tohle mění kampaň v tvém účtu Google Ads, i když běží. Na to klíč potřebuje `ads.execute.google`.\n\nPošle do Google Ads, co jsi v kampani ve Fusiu změnil od posledního odeslání: texty, odkazy, klíčová slova, reklamní sestavy a nastavení. Vrátí nasazení. Nejdřív se podívej na `hasUnsynchronizedChanges` a `canApplyChanges`.\n\nKampaň ve Fusiu musí být schválená. Dostaneš 422, když není co poslat, když nasazení selhalo nebo potřebuje opravu a když běží jiné odesílání.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Google Ads (apply, reconcile, status).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/ad-deployments/{deployment}/google-ads/status":{"post":{"operationId":"ad-deployments.google-ads.status","tags":["ads"],"parameters":[{"name":"deployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nasazení, z `id` odpovědi `google-ads-search-campaigns.google-ads.deploy`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AdDeploymentRemoteStatus","description":"enabled (spustí kampaň, takže utrácí peníze) nebo paused (zastaví ji)."}},"required":["status"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsDeploymentDetailData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Spusť nebo pozastav kampaň Google Ads","description":"> [!WARNING]\n> Spuštění kampaně znamená, že v Google Ads utrácí peníze. Na obojí klíč potřebuje `ads.execute.google`.\n\nSpustí nebo pozastaví kampaň v Google Ads i s reklamními sestavami, reklamami a klíčovými slovy a vrátí nasazení i kampaň.\n\nAby šla spustit, musí být kampaň ve Fusiu schválená a všechny změny poslané přes `ad-deployments.google-ads.apply`; jinak dostaneš 422. 422 dostaneš i tehdy, když nasazení potřebuje opravu a když běží jiná změna.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Google Ads (apply, reconcile, status).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/ads/grid":{"get":{"operationId":"ads.grid","tags":["ads"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["id","state","type","startsAt","createdAt","updatedAt","-id","-state","-type","-startsAt","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexAdData"},"description":"Reklamy téhle stránky."},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš reklamy v tabulce","description":"Vrátí tvoje reklamy po stránkách, připravené pro tabulku. Každá má i problémy a čísla za posledních 30 dní. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/options":{"get":{"operationId":"ads.options","tags":["ads"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionAdData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš reklamy pro výběr","description":"Vrátí reklamy jako krátké položky pro výběr.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/board/summary":{"get":{"operationId":"ads.board.summary","tags":["ads"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Spočítej reklamy na nástěnce","description":"Vrátí, kolik reklam je v každém sloupci (stavu) nástěnky. Použij stejný `filter` jako pro sloupce.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/board/{status}":{"get":{"operationId":"ads.board.column","tags":["ads"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["drafted","rejected","approved","published","scheduled","failed"]},"description":"Sloupec: drafted, rejected, approved, published, scheduled nebo failed."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexAdData"},"description":"Reklamy téhle stránky."},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš reklamy jednoho sloupce nástěnky","description":"Vrátí reklamy jednoho stavu po stránkách. Pošli `nextCursor` zpátky jako `cursor` a načteš další.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/generate":{"post":{"operationId":"ads.generate","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin"],"description":"Reklamní síť: linkedin. Musíš ji mít připojenou."},"mode":{"$ref":"#/components/schemas/AdGenerationMode","description":"Co AI udělá: ad (novou reklamu z tvého zadání), post (reklamu z tvého publikovaného příspěvku) nebo variants (kopie reklamy s jinými texty)."},"brief":{"type":["string","null"],"maxLength":4000,"description":"Co má reklama říkat, nejvýš 4000 znaků."},"objective":{"type":["string","null"],"enum":["website_traffic","post_engagement",null],"description":"Cíl: website_traffic nebo post_engagement. Potřeba u mode ad."},"format":{"anyOf":[{"$ref":"#/components/schemas/AdFormat"},{"type":"null"}],"description":"Vzhled reklamy, který sedí k síti: single_image. Potřeba u mode ad."},"socialPostId":{"type":["integer","null"],"description":"Číslo tvého publikovaného příspěvku na stejné síti. Potřeba u mode post."},"adId":{"type":["integer","null"],"description":"Číslo tvé reklamy na stejné síti, ze které se dělají kopie. Potřeba u mode variants."},"count":{"type":["integer","null"],"enum":["3","5",null],"description":"Kolik kopií: 3 nebo 5. Potřeba u mode variants."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["platform","mode"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdGenerationDispatchOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI napsat reklamy","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nSpustí na pozadí psaní reklam pomocí AI. Nové reklamy jsou koncepty; do reklamní sítě nic nejde. Odpověď je 202 s úlohou.\n\nDostaneš 422, když síť není připojená nebo když pošleš facebook, instagram či `placement`, a 402, když nemáš dost kreditů. Reklamy pro Facebook a Instagram se píšou jinde, v Meta kampaních.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/ads/issue-counts":{"get":{"operationId":"ads.issue-counts","tags":["ads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdIssueCountsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Spočítej reklamy s problémy","description":"Vrátí, kolik tvých reklam má na které síti problém, třeba zamítnutou nebo selhanou reklamu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/overview":{"get":{"operationId":"ads.overview","tags":["ads"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[platform]","in":"query","required":true,"schema":{"type":["string","null"],"enum":["linkedin",null]},"description":"Reklamní síť. Funguje jen linkedin. Musíš ji poslat."},{"name":"filter[adAccountId]","in":"query","schema":{"type":["integer","null"]},"description":"Jen tenhle tvůj reklamní účet na té síti. Když ho vynecháš, jsou to všechny."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž přehled reklam","description":"Vrátí, jak se tvým reklamám na jedné síti dařilo za období: útratu, zobrazení, kliknutí, leady a obchody, které přinesly, a čísla každého účtu a reklamy.\n\nTahle adresa dovolí 120 požadavků za minutu, počítaných dohromady s ostatními adresami přehledů.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/{ad}/performance":{"get":{"operationId":"ads.performance","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdDailySeriesData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž čísla reklamy","description":"Vrátí útratu, zobrazení, kliknutí a konverze jedné reklamy jako součty a po dnech.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/{ad}/audience-estimate":{"get":{"operationId":"ads.audience-estimate","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdAudienceEstimateOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Odhadni, kolik lidí reklama zasáhne","description":"Zeptá se reklamní sítě, kolik lidí sedí k cílení reklamy. Fusio si odpověď hodinu pamatuje.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ads/bulk":{"post":{"operationId":"ads.bulk","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/AdBulkAction","description":"Co udělat: move (změnit stav), duplicate (vytvořit kopie jako koncepty) nebo delete (smazat)."},"adIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Čísla reklam, od 1 do 100, každé jednou."},"state":{"anyOf":[{"$ref":"#/components/schemas/AdState"},{"type":"null"}],"description":"Nový stav pro move: drafted, rejected, approved, published, scheduled nebo failed. Potřeba u move."}},"required":["action","adIds"]},"example":{"action":"move","adIds":[640,641],"state":"approved"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/AdBulkResultData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Hromadná akce dokončena","payload":[{"adId":640,"status":"succeeded","error":null},{"adId":641,"status":"failed","error":"invalid_state_transition"}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Změň víc reklam naráz","description":"> [!WARNING]\n> Přesun reklam do approved, published nebo scheduled a mazání reklam, které jsou v reklamní síti, je tam mění. Na to a na přesun do failed potřebuje klíč právo ke spuštění na jejich síti: `ads.execute.google` nebo `ads.execute.linkedin`.\n\nUdělá jednu věc s víc reklamami a vrátí výsledek za každou reklamu. Jedna selhaná reklama ostatní nezastaví.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/ads/{ad}/state":{"patch":{"operationId":"ads.set-state","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/AdState","description":"Nový stav: drafted, rejected, approved, published, scheduled nebo failed."}},"required":["state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateAdData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Změň stav reklamy","description":"> [!WARNING]\n> Schválení, publikování a naplánování reklamy ji v reklamní síti spustí nebo změní. Každý stav kromě drafted a rejected potřebuje u klíče právo ke spuštění na její síti: `ads.execute.google` nebo `ads.execute.linkedin`.\n\nPřesune reklamu do nového stavu a vrátí ji. published a scheduled ji v síti spustí; přesun běžící reklamy zpátky do approved ji pozastaví. Když reklama začíná v budoucnu, z published se stane scheduled.\n\nDostaneš 422, když reklama do toho stavu jít nemůže, když ji plánuješ bez budoucího začátku a když síť změnu nepřijme. Když se stav už mění, dostaneš 409.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/ads":{"post":{"operationId":"ads.store","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenantOAuthPlatformId":{"type":"integer","description":"Číslo tvého připojení k LinkedInu, na kterém reklama poběží."},"languageId":{"type":["integer","null"],"description":"Číslo jazyka reklamy. Když ho vynecháš, použije se jazyk AI tvé firmy."},"format":{"anyOf":[{"$ref":"#/components/schemas/AdFormat"},{"type":"null"}],"description":"Vzhled reklamy: jen single_image."},"name":{"type":"string","maxLength":60,"description":"Název reklamy, nejvýš 60 znaků."},"type":{"type":"string","enum":["website_traffic","post_engagement"],"description":"Cíl reklamy: website_traffic (návštěvy tvého webu) nebo post_engagement (lajky a komentáře)."},"body":{"type":"string","maxLength":125,"description":"Hlavní text reklamy, nejvýš 125 znaků."},"headline":{"type":["string","null"],"maxLength":40,"description":"Nadpis reklamy, nejvýš 40 znaků."},"cta":{"type":"string","enum":["apply_now","book_now","download","get_offer","get_quote","learn_more","subscribe","sign_up"],"description":"Tlačítko reklamy: apply_now, book_now, download, get_offer, get_quote, learn_more, subscribe nebo sign_up."},"finalUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Stránka, kam reklama vede, začíná http:// nebo https://, nejvýš 2048 znaků."},"imageFileId":{"type":["integer","null"],"description":"Číslo obrázku v Souborech, který se v reklamě ukáže. Když žádný, vynech ho."},"targetingCountries":{"type":"array","items":{"type":"string","enum":["CZ","SK"]},"minItems":1,"uniqueItems":true,"description":"Země, kde se reklama ukazuje: CZ, SK nebo obě, aspoň jedna, každá jednou."},"targetingInterests":{"type":["array","null"],"items":{"type":"string","maxLength":100},"maxItems":20,"uniqueItems":true,"description":"Zájmy lidí, kteří mají reklamu vidět, nejvýš 20, každý nejvýš 100 znaků a jednou."},"targetingAgeMin":{"type":["integer","null"],"minimum":18,"maximum":65,"description":"Nejnižší věk lidí, od 18 do 65. Pošli ho spolu s targetingAgeMax."},"targetingAgeMax":{"type":["integer","null"],"minimum":18,"maximum":65,"description":"Nejvyšší věk lidí, od 18 do 65 a ne pod targetingAgeMin. Pošli ho spolu s targetingAgeMin."},"budget":{"type":"number","minimum":1,"maximum":9999999,"description":"Kolik smí reklama utratit, od 1 do 9999999."},"budgetType":{"type":"string","enum":["daily","lifetime"],"description":"daily (rozpočet je na každý den) nebo lifetime (rozpočet je na celý běh; pak je potřeba endsAt)."},"startsAt":{"type":["string","null"],"description":"Kdy reklama začne, v budoucnu, jako datum a čas s časovou zónou, třeba 2026-12-01T09:00:00+01:00. Když ho vynecháš, začne, jakmile poběží."},"endsAt":{"type":["string","null"],"description":"Kdy reklama skončí, v budoucnu a po startsAt, jako datum a čas s časovou zónou. Potřeba u rozpočtu lifetime."}},"required":["tenantOAuthPlatformId","name","type","body","cta","finalUrl","targetingCountries","budget","budgetType"]},"example":{"tenantOAuthPlatformId":9,"languageId":2,"format":"single_image","name":"Jarní servis kol","type":"website_traffic","body":"Připrav kolo na sezónu. Servis hotový do 48 hodin, v Brně i s odvozem.","headline":"Jarní servis kola","cta":"book_now","finalUrl":"https://www.example.cz/servis","imageFileId":5120,"targetingCountries":["CZ"],"targetingInterests":["Cyklistika","Horská kola"],"targetingAgeMin":25,"targetingAgeMax":55,"budget":300,"budgetType":"daily","startsAt":"2026-12-01T09:00:00+01:00"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateAdData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Reklama úspěšně vytvořena","payload":{"id":640,"userId":88,"tenantId":412,"tenantOAuthPlatformId":9,"languageId":2,"type":"website_traffic","body":"Připrav kolo na sezónu. Servis hotový do 48 hodin, v Brně i s odvozem.","headline":"Jarní servis kola","cta":"book_now","targeting":[],"budget":300,"state":"drafted","rejectReason":null,"name":"Jarní servis kol","format":"single_image","network":"linkedin","tenantOAuthPlatform":null,"publication":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","issue":null,"adAccountId":31,"finalUrl":"https://www.example.cz/servis","imageFileId":5120,"imageUrl":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","targetingCountries":["CZ"],"targetingInterests":["Cyklistika","Horská kola"],"targetingAgeMin":25,"targetingAgeMax":55,"budgetType":"daily","startsAt":"2026-12-01T08:00:00Z","endsAt":null,"externalId":null,"isObjectiveLocked":false,"publishError":null,"publishedAt":null,"lastSyncedAt":null,"pendingNetworkChange":"none","last30Days":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Přidej reklamu","description":"Přidá reklamu jako koncept a vrátí ji. Do reklamní sítě nic nejde, dokud ji neschválíš a nespustíš přes `ads.set-state`.\n\nFunguje jen připojení k LinkedInu. Reklamy pro Facebook a Instagram se dělají v Meta kampaních. Když pošleš `placement`, dostaneš 422.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/ads/{ad}":{"get":{"operationId":"ads.show","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateAdData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Reklama úspěšně načtena","payload":{"id":640,"userId":88,"tenantId":412,"tenantOAuthPlatformId":9,"languageId":2,"type":"website_traffic","body":"Připrav kolo na sezónu. Servis hotový do 48 hodin, v Brně i s odvozem.","headline":"Jarní servis kola","cta":"book_now","targeting":[],"budget":300,"state":"published","rejectReason":null,"name":"Jarní servis kol","format":"single_image","network":"linkedin","tenantOAuthPlatform":null,"publication":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","issue":null,"adAccountId":31,"finalUrl":"https://www.example.cz/servis","imageFileId":5120,"imageUrl":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","targetingCountries":["CZ"],"targetingInterests":["Cyklistika","Horská kola"],"targetingAgeMin":25,"targetingAgeMax":55,"budgetType":"daily","startsAt":"2026-12-01T08:00:00Z","endsAt":null,"externalId":"120214587700410","isObjectiveLocked":true,"publishError":null,"publishedAt":"2026-11-12T13:05:00Z","lastSyncedAt":"2026-11-12T13:05:00Z","pendingNetworkChange":"none","last30Days":{"spend":4210.5,"impressions":38120,"clicks":912,"conversions":41,"currencyCode":"CZK"}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž reklamu","description":"Vrátí jednu reklamu i s texty, cílením, rozpočtem, stavem a problémy.\n\nPotřebuje jedno z těchto práv: ads.read."},"put":{"operationId":"ads.update","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":60,"description":"Název reklamy, nejvýš 60 znaků."},"type":{"type":"string","enum":["website_traffic","post_engagement"],"description":"Cíl reklamy: website_traffic (návštěvy tvého webu) nebo post_engagement (lajky a komentáře)."},"body":{"type":"string","maxLength":125,"description":"Hlavní text reklamy, nejvýš 125 znaků."},"headline":{"type":["string","null"],"maxLength":40,"description":"Nadpis reklamy, nejvýš 40 znaků."},"cta":{"type":"string","enum":["apply_now","book_now","download","get_offer","get_quote","learn_more","subscribe","sign_up"],"description":"Tlačítko reklamy: apply_now, book_now, download, get_offer, get_quote, learn_more, subscribe nebo sign_up."},"finalUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Stránka, kam reklama vede, začíná http:// nebo https://, nejvýš 2048 znaků."},"imageFileId":{"type":["integer","null"],"description":"Číslo obrázku v Souborech, který se v reklamě ukáže. Když žádný, vynech ho."},"targetingCountries":{"type":"array","items":{"type":"string","enum":["CZ","SK"]},"minItems":1,"uniqueItems":true,"description":"Země, kde se reklama ukazuje: CZ, SK nebo obě, aspoň jedna, každá jednou."},"targetingInterests":{"type":["array","null"],"items":{"type":"string","maxLength":100},"maxItems":20,"uniqueItems":true,"description":"Zájmy lidí, kteří mají reklamu vidět, nejvýš 20, každý nejvýš 100 znaků a jednou."},"targetingAgeMin":{"type":["integer","null"],"minimum":18,"maximum":65,"description":"Nejnižší věk lidí, od 18 do 65. Pošli ho spolu s targetingAgeMax."},"targetingAgeMax":{"type":["integer","null"],"minimum":18,"maximum":65,"description":"Nejvyšší věk lidí, od 18 do 65 a ne pod targetingAgeMin. Pošli ho spolu s targetingAgeMin."},"budget":{"type":"number","minimum":1,"maximum":9999999,"description":"Kolik smí reklama utratit, od 1 do 9999999."},"budgetType":{"type":"string","enum":["daily","lifetime"],"description":"daily (rozpočet je na každý den) nebo lifetime (rozpočet je na celý běh; pak je potřeba endsAt)."},"startsAt":{"type":["string","null"],"description":"Kdy reklama začne, v budoucnu, nebo začátek, který už reklama má, jako datum a čas s časovou zónou, třeba 2026-12-01T09:00:00+01:00. Když ho vynecháš, začne, jakmile poběží."},"endsAt":{"type":["string","null"],"description":"Kdy reklama skončí, v budoucnu a po startsAt, jako datum a čas s časovou zónou. Potřeba u rozpočtu lifetime."}},"required":["name","type","body","cta","finalUrl","targetingCountries","budget","budgetType"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateAdData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Změň reklamu","description":"> [!WARNING]\n> Změna reklamy, která je approved nebo failed, se počítá jako její nové spuštění. Pak klíč potřebuje právo ke spuštění na její síti: `ads.execute.google` nebo `ads.execute.linkedin`.\n\nUloží celou reklamu a vrátí ji. Pošli každé pole. Když už reklama v síti je, změny tam půjdou, až ji příště spustíš.\n\nReklama published nebo scheduled se měnit nedá; nejdřív ji přesuň do approved. Když už reklama v síti je, její cíl a typ rozpočtu změnit nejde; udělej kopii. Obojí dostane 422.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."},"delete":{"operationId":"ads.destroy","tags":["ads"],"parameters":[{"name":"ad","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Odeber reklamu","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\n> [!WARNING]\n> Když je reklama v reklamní síti, tohle ji odebere i tam. Pak klíč potřebuje právo ke spuštění na její síti: `ads.execute.google` nebo `ads.execute.linkedin`.\n\nOdebere reklamu.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/ad-improvements":{"get":{"operationId":"ad-improvements.index","tags":["ads"],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string","enum":["google","facebook","linkedin"]},"description":"Reklamní síť: google, facebook nebo linkedin."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/AdImprovementOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš tipy pro tvoje reklamy","description":"Vrátí otevřené tipy, které Fusio našlo pro tvoje reklamy na jedné síti, třeba hledaný výraz k vyloučení nebo nízkou míru prokliku.\n\nTipy pro tvoje kampaně na platformě Meta dostaneš s `platform=facebook`. Můžou být learning_limited, creative_fatigue, poor_performing_ad nebo rejected_ad. U nich campaignId, adId a adSetId ukazují na kampaň, reklamu a sadu reklam v tvém plánu pro Meta Ads.\n\nU learning_limited je amount denní rozpočet, který máš nastavit. Když je rozpočet dost vysoký, je amount null. Null je i tehdy, když chybí odhad nebo známý rozpočet, nebo když je měna jiná. U poor_performing_ad je amount cena za jeden výsledek. Když je results 0, amount je utracená částka.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ad-improvements/{improvement}/dismiss":{"post":{"operationId":"ad-improvements.dismiss","tags":["ads"],"parameters":[{"name":"improvement","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tipu, z `ad-improvements.index`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Skryj tip","description":"Skryje tip, takže už v seznamu není. V reklamní síti se nic nezmění. Když tip není otevřený, dostaneš 422.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/ad-improvements/{improvement}/accept":{"post":{"operationId":"ad-improvements.accept","tags":["ads"],"parameters":[{"name":"improvement","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tipu, z `ad-improvements.index`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Použij tip","description":"> [!WARNING]\n> Tohle mění tvoji živou kampaň v reklamní síti. Na to klíč potřebuje právo ke spuštění na její síti: `ads.execute.google`, `ads.execute.facebook` nebo `ads.execute.linkedin`.\n\nUdělá, co tip říká. Teď to funguje jen u exclude_search_term: Fusio přidá hledaný výraz jako vylučující klíčové slovo do kampaně Google Ads. Tipy pro Meta Ads (learning_limited, creative_fatigue, poor_performing_ad, rejected_ad) tady použít nejde, dostaneš 422. Vyřeš je přímo v kampani na platformě Meta.\n\nDostaneš 422, když tip není otevřený, když ho takhle použít nejde, když kampaň v Google Ads z Fusia neběží ani není pozastavená a když Google Ads změnu nepřijme.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/accounts/{accountId}/pages":{"get":{"operationId":"tenant-ad-platforms.account-pages","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"accountId","in":"path","required":true,"schema":{"type":"string"},"description":"Číslo reklamního účtu v reklamní síti, z `externalId`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ExternalAdAccountPageData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš stránky reklamního účtu","description":"Zeptá se reklamní sítě na stránky, za které můžou běžet reklamy: stránky na Facebooku u účtu Facebooku, firemní stránky u LinkedInu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/accounts/{accountId}/pixels":{"get":{"operationId":"tenant-ad-platforms.account-pixels","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"accountId","in":"path","required":true,"schema":{"type":"string"},"description":"Číslo reklamního účtu v reklamní síti, z `externalId`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ExternalAdAccountPixelData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš pixely reklamního účtu","description":"Zeptá se reklamní sítě na pixely, které počítají výsledky na tvém webu: pixely Meta u Facebooku, Insight Tagy u LinkedInu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/accounts/{accountId}/instagram-accounts":{"get":{"operationId":"tenant-ad-platforms.account-instagram-accounts","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"accountId","in":"path","required":true,"schema":{"type":"string"},"description":"Číslo reklamního účtu v reklamní síti, z `externalId`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ExternalAdAccountInstagramData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš instagramové účty reklamního účtu","description":"Zeptá se Meta Ads na instagramové účty, ze kterých můžou reklamy tohoto účtu běžet: účty propojené s jeho stránkami na Facebooku a účty přidané do reklamního účtu. Funguje jen u připojení k Meta Ads.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/accounts/{accountId}/dsa-recommendations":{"get":{"operationId":"tenant-ad-platforms.account-dsa-recommendations","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"accountId","in":"path","required":true,"schema":{"type":"string"},"description":"Číslo reklamního účtu v reklamní síti, z `externalId`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ExternalAdAccountDsaRecommendationsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš návrhy pro DSA reklamního účtu","description":"Zeptá se Meta Ads, kdo z reklam tohoto účtu obvykle těží a kdo je platí, jak to žádá evropský zákon o digitálních službách (DSA). Funguje jen u připojení k Meta Ads.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/ad-accounts":{"get":{"operationId":"tenant-ad-platforms.ad-accounts","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateAdAccountData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš reklamní účty připojení","description":"Vrátí reklamní účty připojení, které jsou přidané do Fusia, i s placením a stavem.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/linkedin/targeting-facets":{"get":{"operationId":"tenant-ad-platforms.linkedin.targeting-facets","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInTargetingFacetCategoryOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Druhy cílení LinkedInu úspěšně načteny","payload":[{"basic_demographics":[{"genders":"urn:li:adTargetingFacet:genders"},{"ageRanges":"urn:li:adTargetingFacet:ageRanges"},{"interfaceLocales":"urn:li:adTargetingFacet:interfaceLocales"}]},{"professional_information":[{"industries":"urn:li:adTargetingFacet:industries"},{"jobFunctions":"urn:li:adTargetingFacet:jobFunctions"},{"seniorities":"urn:li:adTargetingFacet:seniorities"},{"titles":"urn:li:adTargetingFacet:titles"},{"titlesPast":"urn:li:adTargetingFacet:titlesPast"},{"titlesAll":"urn:li:adTargetingFacet:titlesAll"},{"skills":"urn:li:adTargetingFacet:skills"},{"yearsOfExperienceRanges":"urn:li:adTargetingFacet:yearsOfExperienceRanges"}]},{"education":[{"schools":"urn:li:adTargetingFacet:schools"},{"degrees":"urn:li:adTargetingFacet:degrees"},{"fieldsOfStudy":"urn:li:adTargetingFacet:fieldsOfStudy"}]},{"company_information":[{"staffCountRanges":"urn:li:adTargetingFacet:staffCountRanges"},{"employers":"urn:li:adTargetingFacet:employers"},{"employersPast":"urn:li:adTargetingFacet:employersPast"},{"employersAll":"urn:li:adTargetingFacet:employersAll"},{"companyCategory":"urn:li:adTargetingFacet:companyCategory"},{"growthRate":"urn:li:adTargetingFacet:growthRate"},{"revenue":"urn:li:adTargetingFacet:revenue"}]},{"location":[{"locations":"urn:li:adTargetingFacet:locations"},{"profileLocations":"urn:li:adTargetingFacet:profileLocations"}]},{"social_behavioral":[{"groups":"urn:li:adTargetingFacet:groups"},{"interests":"urn:li:adTargetingFacet:interests"},{"memberBehaviors":"urn:li:adTargetingFacet:memberBehaviors"},{"followedCompanies":"urn:li:adTargetingFacet:followedCompanies"},{"firstDegreeConnectionCompanies":"urn:li:adTargetingFacet:firstDegreeConnectionCompanies"}]},{"advanced_targeting":[{"audienceMatchingSegments":"urn:li:adTargetingFacet:audienceMatchingSegments"},{"dynamicSegments":"urn:li:adTargetingFacet:dynamicSegments"}]}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš druhy cílení LinkedInu","description":"Vrátí druhy cílení LinkedInu seřazené do skupin. Každá položka seznamu má jeden klíč skupiny; jeho hodnota je seznam druhů, každý jako název s LinkedIn URN.\n\nPošli URN do `tenant-ad-platforms.linkedin.targeting-entities` a dostaneš hodnoty toho druhu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/linkedin/{facetUrn}/targeting-entities":{"get":{"operationId":"tenant-ad-platforms.linkedin.targeting-entities","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"facetUrn","in":"path","required":true,"schema":{"type":"string"},"description":"LinkedIn URN druhu, třeba urn:li:adTargetingFacet:industries."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInAdTargetingEntityData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš hodnoty druhu cílení LinkedInu","description":"Zeptá se LinkedInu na hodnoty jednoho druhu cílení, třeba na všechny obory.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/tenant-ad-platforms/{tenantOAuthPlatform}/linkedin/geolocations/search/{searchQuery}":{"get":{"operationId":"tenant-ad-platforms.linkedin.geolocations.search","tags":["ads"],"parameters":[{"name":"tenantOAuthPlatform","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tvého připojení k reklamní síti."},{"name":"searchQuery","in":"path","required":true,"schema":{"type":"string"},"description":"Název místa, které se hledá."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInGeoTypeaheadData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Najdi místa na LinkedInu","description":"Zeptá se LinkedInu na místa, jejichž název sedí k tvému textu, pro cílení reklamy.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/ai/action-prices":{"get":{"operationId":"ai.action-prices.index","tags":["ai"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiActionPricesOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Ceny AI načteny.","payload":{"prices":{"article-generation":12,"social-post-generation":4,"image-generation":6,"campaign-ai-analyze":3,"campaign-ai-plan":25,"lead_firmographic_enrichment":1},"creditBalance":1840.5}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Vypiš ceny AI","description":"Vrátí, kolik kreditů stojí tvou firmu každá akce AI a kolik kreditů máš. Ceny už obsahují přirážku tvé firmy.\n\nCena lead_firmographic_enrichment je za dohledání jedné firmy leadu. Je pevná, bez přirážky.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/credit-estimate":{"get":{"operationId":"ai.credit-estimate.show","tags":["ai"],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AiCreditEstimateKind"},"description":"Práce AI k ocenění: google_ad_group (reklamní sestava Google Ads), google_texts (texty reklamy Google Ads), social_ad (reklama na sociální síti), seo_audit_market (kontrola trhu tvého webu), seo_google_ads_search_refresh (kontrola trhu s novými sestavami Google Ads), worker_instructions (pokyny AI pracovníka), meta_ads_campaign (nová kampaň Meta i s obrázky), meta_ads_texts (texty reklamy Meta), meta_ads_targets (komu ukázat sadu reklam Meta), meta_ads_images (obrázky reklamy Meta) nebo meta_ads_ad_set_ads (nové reklamy do sady reklam Meta)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiCreditEstimateOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"minimum":9,"maximum":14,"balance":1840.5,"sources":[{"scope":"product","isAvailable":true},{"scope":"brand_voice","isAvailable":true},{"scope":"customers","isAvailable":false}],"parts":[{"prompt":"generate-social-ad","maximum":14}]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Odhadni cenu práce AI","description":"Řekne ti před začátkem, kolik kreditů stojí druh práce AI. Výsledek pošli jako `maxCredits` se skutečným požadavkem.\n\nDostaneš 403, když takovou věc nesmíš dělat.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/image-models":{"get":{"operationId":"ai.image-models.index","tags":["ai"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ImageModelOptionData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Vypiš modely AI na obrázky","description":"Vrátí modely AI, které ti umí kreslit obrázky, s cenou jednoho obrázku.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/generation-runs/{aiGenerationRun}":{"get":{"operationId":"ai.generation-runs.show","tags":["ai"],"parameters":[{"name":"aiGenerationRun","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo úlohy AI, z `runId`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiGenerationRunStatusOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Stav generování načten.","payload":{"id":5521,"kind":"article","status":"completed","step":"article-generation","label":"Jak vybrat horské kolo","entityType":"article","entityId":1284,"createdAt":"2026-11-03T08:30:00Z","startedAt":"2026-11-03T08:30:02Z","finishedAt":"2026-11-03T08:31:10Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Ukaž úlohu AI","description":"Ukáže, jak jde úloha AI. Ptej se znovu každých pár sekund, dokud `status` není completed, failed nebo partial.\n\nJsou tu jen úlohy tvé firmy, které píšou článek, e-mail, příspěvek nebo reklamy; jiné dají 404. U reklam se po dokončení podívej do `ads.grid`.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/entity-generation/social/{platform}/clarify":{"post":{"operationId":"ai.entity-generation.social.clarify","tags":["ai"],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"},"description":"Druh příspěvku: x_post, x_thread, facebook_post, instagram_post nebo linkedin_post. Jiná hodnota dá 404."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","minLength":5,"maxLength":4000,"description":"Co chceš, tvými slovy. Od 5 do 4000 znaků."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"priorAnswers":{"type":["array","null"],"items":{"type":"string","maxLength":4000},"maxItems":50,"description":"Tvoje odpovědi na otázky, které jsi dostal předtím, jako objekt: `key` každé otázky a tvoje odpověď jako text. Nejvýš 50 odpovědí, každý klíč nejvýš 100 znaků a každá odpověď nejvýš 4000 znaků. Poprvé ho vynech."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["description","languageId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ClarificationResultData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Zeptej se AI na příspěvek","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nZeptá se AI, jestli ví dost, aby napsala příspěvek. AI si přečte, co chceš, a co ví o tvé firmě.\n\nKdyž AI ví dost, `proceed` je true a `contextBundle` drží zadání: pošli ho do `ai.entity-generation.social.generate`. Když AI potřebuje víc, `proceed` je false a dostaneš `questions`. Odpověz na ně a zeptej se znovu se stejným textem a odpověďmi v `priorAnswers`.\n\nStejná otázka se stejnými odpověďmi dá 30 minut stejný výsledek.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/entity-generation/social/{platform}/generate":{"post":{"operationId":"ai.entity-generation.social.generate","tags":["ai"],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"},"description":"Druh příspěvku: x_post, x_thread, facebook_post, instagram_post nebo linkedin_post. Jiná hodnota dá 404."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contextBundle":{"type":"object","properties":{"origin":{"type":"string","enum":["standalone","campaign"],"description":"standalone (samostatný kus) nebo campaign (kus pro kampaň)."},"goal":{"type":"string","description":"Co má kus udělat."},"audience":{"type":"string","description":"Pro koho kus je."},"topicOrAngle":{"type":"string","description":"Téma, nebo strana tématu, ze které se kus dívá."},"hookCategory":{"type":"string","enum":["data_drop","contrarian","question","pattern_interrupt","personal_stake","curiosity","story","value","social_proof","observation","poll","vivid_story","data_led","prediction"],"description":"Jak začátek upoutá pozornost. Každá síť má vlastní hodnoty: x_post data_drop, contrarian, question, pattern_interrupt nebo personal_stake; x_thread curiosity, story, value, contrarian nebo social_proof; facebook_post story, question, contrarian, observation nebo poll; instagram_post curiosity, vivid_story, contrarian, data_led nebo question; linkedin_post data_led, contrarian, story, question nebo prediction."},"formatHint":{"type":["string","null"],"description":"Nápověda k tvaru, třeba seznam nebo příběh. Když žádná, vynech ji."},"contentAtom":{"type":"string","description":"Jedna hlavní myšlenka, kterou kus nese."},"campaignSummary":{"type":["string","null"],"description":"Krátké shrnutí kampaně. Když žádné, vynech ho."},"sourceDigest":{"type":["string","null"],"description":"Krátké shrnutí podkladů, ze kterých se píše. Když žádné, vynech ho."},"recentAssets":{"type":["string","null"],"description":"Co jsi nedávno zveřejnil, aby to AI neopakovala. Když nic, vynech ho."}},"required":["origin","goal","audience","topicOrAngle","hookCategory","contentAtom"],"description":"Zadání pro příspěvek. Nejsnáz pošleš `contextBundle`, který jsi dostal z clarify; klíče, které tu nejsou, se nepoužijí."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"topicId":{"type":["integer","null"],"description":"Číslo tvého aktivního tématu, ke kterému kus patří. Když žádné, vynech ho."},"campaignId":{"type":["integer","null"],"description":"Číslo aktivní kampaně, do které kus dáš. Pak je potřeba i scheduledAt."},"scheduledAt":{"type":["string","null"],"description":"Kdy kus vyjde, jako datum a čas s časovou zónou, třeba 2026-12-01T09:00:00+01:00. Potřeba s campaignId."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."},"hashtagStrategy":{"type":["string","null"],"enum":["none","minimal","trending","branded",null],"description":"Jak se používají hashtagy: none, minimal (výchozí), trending nebo branded."},"generateFirstComment":{"type":"boolean","description":"true, aby AI napsala i první komentář pod příspěvek. Výchozí je false."},"firstCommentGuidance":{"type":["string","null"],"maxLength":2000,"description":"Co má první komentář říkat, nejvýš 2000 znaků."},"imageMode":{"type":["string","null"],"enum":["none","ai","upload",null],"description":"Odkud jsou obrázky: none (žádné, výchozí), ai (nakreslí je AI) nebo upload (tvoje obrázky ze Souborů)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí. Jen s imageMode ai."},"fileIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":4,"uniqueItems":true,"description":"Čísla tvých obrázků v Souborech, nejvýš 4, JPEG nebo PNG; u X i WebP a u Instagramu jen JPEG. Potřeba s imageMode upload a s ostatními nejde."}},"required":["contextBundle","languageId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DispatchedGenerationRunData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","social-posts.write"]}],"x-fusio-conditional-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"x-fusio-opt-in-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"summary":"Nech AI napsat příspěvek","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\n> [!WARNING]\n> S campaignId nebo scheduledAt kus v tu chvíli vyjde sám. Na to klíč potřebuje právo ke zveřejnění na své síti: `social-posts.publish.x` pro x_post a x_thread, `social-posts.publish.facebook` pro facebook_post, `social-posts.publish.instagram` pro instagram_post nebo `social-posts.publish.linkedin` pro linkedin_post. Bez toho práva dostaneš 403.\n\nSpustí na pozadí psaní příspěvku pomocí AI. Odpověď je hned číslo úlohy; ptej se s ním `ai.generation-runs.show`, dokud `status` není completed, pak je `entityId` nový kus.\n\nBez campaignId je kus koncept. S campaignId se přidá do kampaně; klíč pak potřebuje i `campaigns.write`, jinak dostaneš 403.\n\nDostaneš 402, když nemáš dost kreditů, a 422, když pole nesedí.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: social-posts.write. Některé hodnoty potřebují ještě: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram. Tato práva musíš zaškrtnout schválně: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram."}},"/v1/ai/entity-generation/article/clarify":{"post":{"operationId":"ai.entity-generation.article.clarify","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","minLength":5,"maxLength":4000,"description":"Co chceš, tvými slovy. Od 5 do 4000 znaků."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"priorAnswers":{"type":["array","null"],"items":{"type":"string","maxLength":4000},"maxItems":50,"description":"Tvoje odpovědi na otázky, které jsi dostal předtím, jako objekt: `key` každé otázky a tvoje odpověď jako text. Nejvýš 50 odpovědí, každý klíč nejvýš 100 znaků a každá odpověď nejvýš 4000 znaků. Poprvé ho vynech."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["description","languageId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ClarificationResultData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Otázky k obsahu jsou hotové.","payload":{"proceed":false,"contextBundle":null,"questions":[{"key":"audience","label":"Pro koho","question":"Pro koho článek píšeš?","inputType":"single_choice","options":[{"value":"families","label":"Rodiny s dětmi"},{"value":"riders","label":"Sportovní jezdci"},{"value":"commuters","label":"Lidé, co jezdí do práce"}],"allowSkip":false,"suggestedValue":"families"}]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Zeptej se AI na článek","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nZeptá se AI, jestli ví dost, aby napsala článek. AI si přečte, co chceš, a co ví o tvé firmě.\n\nKdyž AI ví dost, `proceed` je true a `contextBundle` drží zadání: pošli ho do `ai.entity-generation.article.generate`. Když AI potřebuje víc, `proceed` je false a dostaneš `questions`. Odpověz na ně a zeptej se znovu se stejným textem a odpověďmi v `priorAnswers`.\n\nStejná otázka se stejnými odpověďmi dá 30 minut stejný výsledek.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/entity-generation/article/generate":{"post":{"operationId":"ai.entity-generation.article.generate","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contextBundle":{"type":"object","properties":{"origin":{"type":"string","enum":["standalone","campaign"],"description":"standalone (samostatný kus) nebo campaign (kus pro kampaň)."},"goal":{"type":"string","description":"Co má kus udělat."},"audience":{"type":"string","description":"Pro koho kus je."},"topicOrAngle":{"type":"string","description":"Téma, nebo strana tématu, ze které se kus dívá."},"hookCategory":{"type":"string","enum":["curiosity","story","value","contrarian","social_proof"],"description":"Jak začátek upoutá pozornost: curiosity, story, value, contrarian nebo social_proof."},"formatHint":{"type":["string","null"],"description":"Nápověda k tvaru, třeba seznam nebo příběh. Když žádná, vynech ji."},"contentAtom":{"type":"string","description":"Jedna hlavní myšlenka, kterou kus nese."},"campaignSummary":{"type":["string","null"],"description":"Krátké shrnutí kampaně. Když žádné, vynech ho."},"sourceDigest":{"type":["string","null"],"description":"Krátké shrnutí podkladů, ze kterých se píše. Když žádné, vynech ho."},"recentAssets":{"type":["string","null"],"description":"Co jsi nedávno zveřejnil, aby to AI neopakovala. Když nic, vynech ho."}},"required":["origin","goal","audience","topicOrAngle","hookCategory","contentAtom"],"description":"Zadání pro článek. Nejsnáz pošleš `contextBundle`, který jsi dostal z clarify; klíče, které tu nejsou, se nepoužijí."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"topicId":{"type":["integer","null"],"description":"Číslo tvého aktivního tématu, ke kterému kus patří. Když žádné, vynech ho."},"campaignId":{"type":["integer","null"],"description":"Číslo aktivní kampaně, do které kus dáš. Pak je potřeba i scheduledAt."},"scheduledAt":{"type":["string","null"],"description":"Kdy kus vyjde, jako datum a čas s časovou zónou, třeba 2026-12-01T09:00:00+01:00. Potřeba s campaignId."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."},"imageMode":{"type":["string","null"],"enum":["none","ai","upload",null],"description":"Odkud jsou obrázky: none (žádné, výchozí), ai (nakreslí je AI) nebo upload (tvoje obrázky ze Souborů)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí. Jen s imageMode ai."},"fileIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":2,"uniqueItems":true,"description":"Čísla tvých obrázků v Souborech, nejvýš 2, JPEG, PNG nebo WebP, do těla článku. Jen s imageMode upload, který potřebuje fileIds, bannerFileId nebo obojí."},"inContentImageCount":{"type":["integer","null"],"minimum":0,"maximum":2,"description":"Kolik obrázků AI nakreslí do textu, od 0 do 2. Víc než 0 jen s imageMode ai."},"bannerFileId":{"type":["integer","null"],"description":"Číslo tvého obrázku v Souborech pro banner nahoře. Jen s imageMode upload. Nesmí být i ve fileIds."},"bannerType":{"anyOf":[{"$ref":"#/components/schemas/ArticleBannerType"},{"type":"null"}],"description":"Jak AI udělá banner: photo, text (banner se slovy) nebo cutout (vystřižený obrázek na čistém pozadí). Výchozí je photo."}},"required":["contextBundle","languageId"]},"example":{"contextBundle":{"origin":"standalone","goal":"Přivést lidi do servisu před sezónou.","audience":"Rodiny z Brna, které jezdí o víkendech.","topicOrAngle":"Co zkontrolovat na kole po zimě","hookCategory":"value","contentAtom":"Pět kontrol po zimě ušetří drahou opravu."},"languageId":2,"maxCredits":40,"imageMode":"ai","tenantImageProfileId":19,"inContentImageCount":1}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DispatchedGenerationRunData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Psaní obsahu začalo.","payload":{"runId":5521}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Nech AI napsat článek","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\n> [!WARNING]\n> S campaignId nebo scheduledAt kus v tu chvíli vyjde sám. Na to klíč potřebuje `articles.publish`. Bez toho práva dostaneš 403.\n\nSpustí na pozadí psaní článku pomocí AI. Odpověď je hned číslo úlohy; ptej se s ním `ai.generation-runs.show`, dokud `status` není completed, pak je `entityId` nový kus.\n\nBez campaignId je kus koncept. S campaignId se přidá do kampaně; klíč pak potřebuje i `campaigns.write`, jinak dostaneš 403.\n\nDostaneš 402, když nemáš dost kreditů, a 422, když pole nesedí.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."}},"/v1/ai/entity-generation/email/clarify":{"post":{"operationId":"ai.entity-generation.email.clarify","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","minLength":5,"maxLength":4000,"description":"Co chceš, tvými slovy. Od 5 do 4000 znaků."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"priorAnswers":{"type":["array","null"],"items":{"type":"string","maxLength":4000},"maxItems":50,"description":"Tvoje odpovědi na otázky, které jsi dostal předtím, jako objekt: `key` každé otázky a tvoje odpověď jako text. Nejvýš 50 odpovědí, každý klíč nejvýš 100 znaků a každá odpověď nejvýš 4000 znaků. Poprvé ho vynech."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."},"emailTemplateCategory":{"type":["string","null"],"enum":["article_newsletter","general_newsletter","promotion","re_engagement","warm_followup","lead_nurture","product_announcement","seasonal_campaign","survey","referral","event_invitation","welcome","onboarding","win_back","transactional","warm_announcement_cta","abandoned_action","general_update","sequence_opener","sequence_teach","sequence_proof","sequence_objection","sequence_close",null],"description":"Druh šablony e-mailu: article_newsletter, general_newsletter, promotion, re_engagement, warm_followup, lead_nurture, product_announcement, seasonal_campaign, survey, referral, event_invitation, welcome, onboarding, win_back, transactional, warm_announcement_cta, abandoned_action, general_update, sequence_opener, sequence_teach, sequence_proof, sequence_objection nebo sequence_close. Když ho vynecháš, vybere AI."}},"required":["description","languageId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ClarificationResultData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Zeptej se AI na e-mail","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nZeptá se AI, jestli ví dost, aby napsala e-mail. AI si přečte, co chceš, a co ví o tvé firmě.\n\nKdyž AI ví dost, `proceed` je true a `contextBundle` drží zadání: pošli ho do `ai.entity-generation.email.generate`. Když AI potřebuje víc, `proceed` je false a dostaneš `questions`. Odpověz na ně a zeptej se znovu se stejným textem a odpověďmi v `priorAnswers`.\n\nStejná otázka se stejnými odpověďmi dá 30 minut stejný výsledek.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai/entity-generation/email/generate":{"post":{"operationId":"ai.entity-generation.email.generate","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contextBundle":{"type":"object","properties":{"origin":{"type":"string","enum":["standalone","campaign"],"description":"standalone (samostatný kus) nebo campaign (kus pro kampaň)."},"goal":{"type":"string","description":"Co má kus udělat."},"audience":{"type":"string","description":"Pro koho kus je."},"topicOrAngle":{"type":"string","description":"Téma, nebo strana tématu, ze které se kus dívá."},"hookCategory":{"type":"string","enum":["curiosity","story","value","contrarian","social_proof","trigger_event"],"description":"Jak začátek upoutá pozornost: curiosity, story, value, contrarian, social_proof nebo trigger_event."},"formatHint":{"type":["string","null"],"description":"Nápověda k tvaru, třeba seznam nebo příběh. Když žádná, vynech ji."},"contentAtom":{"type":"string","description":"Jedna hlavní myšlenka, kterou kus nese."},"campaignSummary":{"type":["string","null"],"description":"Krátké shrnutí kampaně. Když žádné, vynech ho."},"sourceDigest":{"type":["string","null"],"description":"Krátké shrnutí podkladů, ze kterých se píše. Když žádné, vynech ho."},"recentAssets":{"type":["string","null"],"description":"Co jsi nedávno zveřejnil, aby to AI neopakovala. Když nic, vynech ho."},"audienceWarmth":{"type":"string","enum":["warm","owned"],"description":"Kdo e-mail dostane: warm (lidé, kteří tě trochu znají) nebo owned (lidé, kteří se přihlásili). Musí sedět k šabloně."},"emailKind":{"type":"string","enum":["broadcast"],"description":"broadcast: jeden e-mail mnoha lidem."},"ctaUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Stránka, kam vede tlačítko e-mailu, začíná http:// nebo https://, nejvýš 2048 znaků. Když žádná, vynech ji."}},"required":["origin","goal","audience","topicOrAngle","hookCategory","contentAtom","audienceWarmth","emailKind"],"description":"Zadání pro e-mail. Nejsnáz pošleš `contextBundle`, který jsi dostal z clarify; klíče, které tu nejsou, se nepoužijí."},"workerId":{"type":["integer","null"],"description":"Číslo aktivního AI pracovníka, jehož pokyny AI dodrží. Když žádného, vynech ho."},"languageId":{"type":"integer","description":"Číslo jazyka, ve kterém se píše."},"topicId":{"type":["integer","null"],"description":"Číslo tvého aktivního tématu, ke kterému kus patří. Když žádné, vynech ho."},"campaignId":{"type":["integer","null"],"description":"Číslo aktivní kampaně, do které kus dáš. Pak je potřeba i scheduledAt."},"scheduledAt":{"type":["string","null"],"description":"Kdy kus vyjde, jako datum a čas s časovou zónou, třeba 2026-12-01T09:00:00+01:00. Potřeba s campaignId."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."},"imageMode":{"type":["string","null"],"enum":["none","ai","upload",null],"description":"Odkud jsou obrázky: none (žádné, výchozí), ai (nakreslí je AI) nebo upload (tvoje obrázky ze Souborů)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí. Jen s imageMode ai."},"fileIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":12,"uniqueItems":true,"description":"Čísla tvých obrázků v Souborech, nejvýš 12, JPEG, PNG nebo WebP. Pošli jich tolik, kolik má šablona míst na obrázky. Potřeba s imageMode upload a s ostatními nejde."},"emailTemplateCategory":{"type":["string","null"],"enum":["article_newsletter","general_newsletter","promotion","re_engagement","warm_followup","lead_nurture","product_announcement","seasonal_campaign","survey","referral","event_invitation","welcome","onboarding","win_back","transactional","warm_announcement_cta","abandoned_action","general_update","sequence_opener","sequence_teach","sequence_proof","sequence_objection","sequence_close",null],"description":"Druh šablony e-mailu: article_newsletter, general_newsletter, promotion, re_engagement, warm_followup, lead_nurture, product_announcement, seasonal_campaign, survey, referral, event_invitation, welcome, onboarding, win_back, transactional, warm_announcement_cta, abandoned_action, general_update, sequence_opener, sequence_teach, sequence_proof, sequence_objection nebo sequence_close. Potřeba s imageMode ai nebo upload a musí sedět k audienceWarmth."},"aiImageCount":{"type":["integer","null"],"minimum":1,"maximum":12,"description":"Kolik obrázků AI nakreslí, od 1 do 12, tolik, kolik má šablona míst na obrázky. Potřeba s imageMode ai a s ostatními nejde."}},"required":["contextBundle","languageId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DispatchedGenerationRunData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Nech AI napsat e-mail","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\n> [!WARNING]\n> S campaignId nebo scheduledAt kus v tu chvíli vyjde sám. Na to klíč potřebuje `emails.send`. Bez toho práva dostaneš 403.\n\nSpustí na pozadí psaní e-mailu pomocí AI. Odpověď je hned číslo úlohy; ptej se s ním `ai.generation-runs.show`, dokud `status` není completed, pak je `entityId` nový kus.\n\nBez campaignId je kus koncept. S campaignId se přidá do kampaně; klíč pak potřebuje i `campaigns.write`, jinak dostaneš 403.\n\nS obrázky potřebuješ emailTemplateCategory. Šablona toho druhu pro tvůj jazyk určí, kolik je míst na obrázky; šablona bez nich dá 422.\n\nDostaneš 402, když nemáš dost kreditů, a 422, když pole nesedí.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/ai-image-generations":{"post":{"operationId":"ai-image-generations.store","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":2000,"description":"Co nakreslit, nejvýš 2000 znaků."},"variantCount":{"type":"integer","minimum":1,"maximum":4,"description":"Kolik obrázků nakreslit, od 1 do 4."},"format":{"type":"string","enum":["square","portrait","landscape","portrait_tall","story","widescreen","banner","wide"],"description":"Tvar obrázku, například square nebo landscape."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, ve kterém kreslit, nebo null."},"destination":{"type":["string","null"],"enum":["blog_article","facebook_post","instagram_post","x_post","linkedin_post","email_broadcast","email_sequence",null],"description":"Kde se obrázek použije, nebo null."},"purpose":{"anyOf":[{"$ref":"#/components/schemas/ArticleImagePurpose"},{"type":"null"}],"description":"K čemu obrázek je. Jen pro články na blogu."},"bannerType":{"anyOf":[{"$ref":"#/components/schemas/ArticleBannerType"},{"type":"null"}],"description":"Druh banneru. Jen když purpose je banner."},"productId":{"type":["integer","null"],"description":"Číslo produktu na obrázku. Jen s purpose."},"campaignId":{"type":["integer","null"],"description":"Číslo kampaně. Jen s purpose."},"contextType":{"type":["string","null"],"enum":["article","social_post","email",null],"description":"Druh záznamu, pro který obrázek je: article, social_post nebo email. Pošli ho s contextId."},"contextId":{"type":["integer","null"],"description":"Číslo toho záznamu. Pošli ho s contextType."},"aiProviderModelId":{"type":["integer","null"],"description":"Číslo modelu pro obrázky, nebo null pro výchozí."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["prompt","variantCount","format"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiImageGenerationStatusData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write","ai.generate"]},{"fusioToken":["emails.write","ai.generate"]},{"fusioToken":["social-posts.write","ai.generate"]}],"summary":"Nakresli obrázky pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí nakreslí obrázky. Odpověď je 201 s prací; sleduj její stav a postup. Cena počítá každý obrázek.\n\nPotřebuje jedno z těchto práv: articles.write, emails.write, social-posts.write. Potřebuje taky: ai.generate."}},"/v1/ai-image-generations/{generation}":{"get":{"operationId":"ai-image-generations.show","tags":["ai"],"parameters":[{"name":"generation","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiImageGenerationStatusData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Ukaž generování obrázků pomocí AI","description":"Ptej se znovu, dokud stav není completed.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/ai-image-generations/{generation}/select":{"post":{"operationId":"ai-image-generations.select","tags":["ai"],"parameters":[{"name":"generation","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"variantId":{"type":"integer","description":"Číslo obrázku, který vybrat."}},"required":["variantId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateFileData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write","ai.generate"]},{"fusioToken":["emails.write","ai.generate"]},{"fusioToken":["social-posts.write","ai.generate"]}],"summary":"Vyber jeden obrázek z generování pomocí AI","description":"Generování musí být hotové. Když vzniklo pro článek, příspěvek nebo e-mail, vybraný obrázek se k němu připojí. Odpověď je uložený soubor.\n\nPotřebuje jedno z těchto práv: articles.write, emails.write, social-posts.write. Potřebuje taky: ai.generate."}},"/v1/article-authors":{"get":{"operationId":"article-authors.index","tags":["article-authors"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantArticleAuthorData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.read"]}],"summary":"Vypiš autory","description":"Vrátí všechny autory, aktivní i neaktivní, se všemi texty a počtem článků.\n\nPotřebuje jedno z těchto práv: article-authors.read."},"post":{"operationId":"article-authors.store","tags":["article-authors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["person","organization"],"description":"person (člověk) nebo organization (organizace)."},"name":{"type":"string","minLength":2,"maxLength":100,"description":"Jméno u článků, 2 až 100 znaků."},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","minLength":2,"maxLength":60,"description":"Poslední část adresy stránky autora: malá písmena, číslice a pomlčky, 2 až 60 znaků. Ve tvé firmě musí být jedinečná."},"avatarFileId":{"type":["integer","null"],"description":"Číslo souboru s fotkou nebo logem."},"websiteUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Web autora, http nebo https, nejvýš 255 znaků."},"facebookUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na Facebooku."},"instagramUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na Instagramu."},"linkedinUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na LinkedInu."},"xUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na X."},"youtubeUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa kanálu na YouTube."},"tiktokUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na TikToku."},"githubUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na GitHubu."},"email":{"type":["string","null"],"format":"email","maxLength":254,"description":"E-mail autora."},"isEmailPublic":{"type":"boolean","description":"true ukáže e-mail na webu."},"sameAs":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":2048},"maxItems":10,"uniqueItems":true,"description":"Další stránky o autorovi, nejvýš 10 webových adres."},"knowsAbout":{"type":["array","null"],"items":{"type":"string","minLength":2,"maxLength":60},"maxItems":10,"uniqueItems":true,"description":"V čem se autor vyzná, nejvýš 10 slov nebo frází po 2 až 60 znacích."},"isDefault":{"type":"boolean","description":"true z něj udělá autora nových článků. Dosavadní výchozí autor přestane být výchozí."},"isActive":{"type":"boolean","description":"false autora na webu schová."},"translation":{"type":"object","properties":{"locale":{"type":"string","maxLength":10,"description":"Jazyk textů, třeba cs_CZ."},"jobTitle":{"type":["string","null"],"minLength":2,"maxLength":100,"description":"Pracovní pozice autora, 2 až 100 znaků."},"bio":{"type":["string","null"],"minLength":10,"maxLength":2000,"description":"Pár vět o autorovi, 10 až 2000 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání pro stránku autora, nejvýš 160 znaků."}},"required":["locale"],"description":"Texty o autorovi v jednom jazyce."}},"required":["type","name","slug","isEmailPublic","isDefault","isActive","translation"]},"example":{"type":"person","name":"Jana Nováková","slug":"jana-novakova","email":"jana.novakova@example.cz","isEmailPublic":false,"isDefault":true,"isActive":true,"translation":{"locale":"cs_CZ","jobTitle":"Vedoucí servisu","bio":"Jana opravuje kola přes deset let."}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantArticleAuthorData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Autor článků úspěšně vytvořen","payload":{"id":7,"tenantId":412,"type":"person","name":"Jana Nováková","slug":"jana-novakova","avatarFileId":null,"avatar":null,"websiteUrl":"https://www.example.cz/o-nas","facebookUrl":null,"instagramUrl":null,"linkedinUrl":"https://www.linkedin.com/in/jana-novakova-example","xUrl":null,"youtubeUrl":null,"tiktokUrl":null,"githubUrl":null,"email":"jana.novakova@example.cz","isEmailPublic":false,"sameAs":["https://www.linkedin.com/in/jana-novakova-example"],"knowsAbout":["horská kola","servis kol"],"isDefault":true,"isActive":true,"articleCount":0,"translations":[{"id":9,"tenantArticleAuthorId":7,"locale":"cs_CZ","isPrimary":true,"jobTitle":"Vedoucí servisu","bio":"Jana opravuje kola přes deset let.","metaDescription":"Články od Jany Novákové."}],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.write"]}],"summary":"Vytvoř autora","description":"Vytvoří autora s texty v jednom jazyce. První autor tvé firmy je vždy výchozí.\n\nPotřebuje jedno z těchto práv: article-authors.write."}},"/v1/article-authors/{tenantArticleAuthor}":{"get":{"operationId":"article-authors.show","tags":["article-authors"],"parameters":[{"name":"tenantArticleAuthor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo autora."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantArticleAuthorData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Autor článků úspěšně načten","payload":{"id":7,"tenantId":412,"type":"person","name":"Jana Nováková","slug":"jana-novakova","avatarFileId":null,"avatar":null,"websiteUrl":"https://www.example.cz/o-nas","facebookUrl":null,"instagramUrl":null,"linkedinUrl":"https://www.linkedin.com/in/jana-novakova-example","xUrl":null,"youtubeUrl":null,"tiktokUrl":null,"githubUrl":null,"email":"jana.novakova@example.cz","isEmailPublic":false,"sameAs":["https://www.linkedin.com/in/jana-novakova-example"],"knowsAbout":["horská kola","servis kol"],"isDefault":true,"isActive":true,"articleCount":12,"translations":[{"id":9,"tenantArticleAuthorId":7,"locale":"cs_CZ","isPrimary":true,"jobTitle":"Vedoucí servisu","bio":"Jana opravuje kola přes deset let.","metaDescription":"Články od Jany Novákové."}],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.read"]}],"summary":"Ukaž jednoho autora","description":"Vrátí jednoho autora se všemi texty.\n\nPotřebuje jedno z těchto práv: article-authors.read."},"put":{"operationId":"article-authors.update","tags":["article-authors"],"parameters":[{"name":"tenantArticleAuthor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo autora."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["person","organization"],"description":"person (člověk) nebo organization (organizace)."},"name":{"type":"string","minLength":2,"maxLength":100,"description":"Jméno u článků, 2 až 100 znaků."},"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","minLength":2,"maxLength":60,"description":"Poslední část adresy stránky autora: malá písmena, číslice a pomlčky, 2 až 60 znaků. Ve tvé firmě musí být jedinečná."},"avatarFileId":{"type":["integer","null"],"description":"Číslo souboru s fotkou nebo logem."},"websiteUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Web autora, http nebo https, nejvýš 255 znaků."},"facebookUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na Facebooku."},"instagramUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na Instagramu."},"linkedinUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na LinkedInu."},"xUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na X."},"youtubeUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa kanálu na YouTube."},"tiktokUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na TikToku."},"githubUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Adresa profilu na GitHubu."},"email":{"type":["string","null"],"format":"email","maxLength":254,"description":"E-mail autora."},"isEmailPublic":{"type":"boolean","description":"true ukáže e-mail na webu."},"sameAs":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":2048},"maxItems":10,"uniqueItems":true,"description":"Další stránky o autorovi, nejvýš 10 webových adres."},"knowsAbout":{"type":["array","null"],"items":{"type":"string","minLength":2,"maxLength":60},"maxItems":10,"uniqueItems":true,"description":"V čem se autor vyzná, nejvýš 10 slov nebo frází po 2 až 60 znacích."},"isDefault":{"type":"boolean","description":"true z něj udělá autora nových článků. Dosavadní výchozí autor přestane být výchozí."},"isActive":{"type":"boolean","description":"false autora na webu schová."},"translation":{"type":"object","properties":{"locale":{"type":"string","maxLength":10,"description":"Jazyk textů, třeba cs_CZ."},"jobTitle":{"type":["string","null"],"minLength":2,"maxLength":100,"description":"Pracovní pozice autora, 2 až 100 znaků."},"bio":{"type":["string","null"],"minLength":10,"maxLength":2000,"description":"Pár vět o autorovi, 10 až 2000 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání pro stránku autora, nejvýš 160 znaků."}},"required":["locale"],"description":"Texty o autorovi v jednom jazyce."}},"required":["type","name","slug","isEmailPublic","isDefault","isActive","translation"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantArticleAuthorData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.write"]}],"summary":"Změň autora","description":"Nahradí autora a texty v jazyce `translation.locale`. Pošli všechna pole, ne jen změněná.\n\nPotřebuje jedno z těchto práv: article-authors.write."},"delete":{"operationId":"article-authors.destroy","tags":["article-authors"],"parameters":[{"name":"tenantArticleAuthor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo autora."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.write"]}],"summary":"Smaž autora","description":"Smaže autora natrvalo. Jeho články přejdou na výchozího autora.\n\n> [!WARNING]\n> Tohle nejde vrátit.\n\nChyba: 422, když je autor výchozí. Nejdřív udělej výchozím jiného autora.\n\nPotřebuje jedno z těchto práv: article-authors.write."}},"/v1/article-categories/public":{"get":{"operationId":"article-categories.public.index","tags":["article-categories"],"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.read"]}],"summary":"Vypiš kategorie pro web","description":"Vrátí strom kategorií s texty v jazyce `locale`, počtem zveřejněných článků v každé kategorii a jejich průměrnou dobou čtení.\n\nPotřebuje jedno z těchto práv: article-categories.read."}},"/v1/article-categories/public/{slug}":{"get":{"operationId":"article-categories.public.show","tags":["article-categories"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"Část webové adresy kategorie, v tomhle jazyce nebo hlavní."},{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.read"]}],"summary":"Ukaž jednu kategorii pro web","description":"Vrátí jednu kategorii s kategoriemi pod ní a jejími čísly. Chyba: 404, když kategorie s touhle adresou není.\n\nPotřebuje jedno z těchto práv: article-categories.read."}},"/v1/article-categories":{"get":{"operationId":"article-categories.index","tags":["article-categories"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.read"]}],"summary":"Vypiš kategorie","description":"Vrátí hlavní kategorie a u každé z nich její podkategorie v `children`.\n\nPotřebuje jedno z těchto práv: article-categories.read."},"post":{"operationId":"article-categories.store","tags":["article-categories"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"Nemusíš ho posílat. Fusio sem vždy dá člověka, za kterého klíč jedná."},"name":{"type":"string","maxLength":255,"description":"Název kategorie, nejvýš 255 znaků."},"slug":{"type":"string","maxLength":255,"description":"Poslední část webové adresy. Ve tvé firmě musí být jedinečná."},"parentId":{"type":["integer","null"],"description":"Číslo nadřazené kategorie. Pro hlavní kategorii nech prázdné."},"color":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryColor"},{"type":"null"}],"description":"Barva štítku kategorie."},"icon":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryIcon"},{"type":"null"}],"description":"Ikona kategorie."},"translation":{"type":"object","properties":{"locale":{"type":"string","description":"Jazyk textu, třeba cs_CZ."},"name":{"type":["string","null"],"maxLength":255,"description":"Název v tomhle jazyce, nejvýš 255 znaků."},"slug":{"type":["string","null"],"maxLength":255,"description":"Část webové adresy v tomhle jazyce. Pro jazyk musí být jedinečná."},"description":{"type":["string","null"],"description":"Text o kategorii, ukáže se na její stránce."},"breadcrumbTitle":{"type":["string","null"],"description":"Krátký název pro řádek odkazů nad stránkou."},"metaTitle":{"type":["string","null"],"maxLength":60,"description":"Nadpis ve výsledcích hledání, nejvýš 60 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání, nejvýš 160 znaků."},"canonicalUrl":{"type":["string","null"],"format":"uri","description":"Hlavní adresa stránky, když je i jinde."},"ogTitle":{"type":["string","null"],"description":"Nadpis pro sdílení na Facebooku nebo LinkedInu."},"ogDescription":{"type":["string","null"],"description":"Text pro sdílení na Facebooku nebo LinkedInu."},"ogImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení."}},"required":["locale"],"description":"Text kategorie v jednom jazyce."}},"required":["name","slug","translation"]},"example":{"name":"Návody","slug":"navody","color":"navody","icon":"bookOpen","translation":{"locale":"cs_CZ","description":"Krátké návody na péči o kolo."}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kategorie článků úspěšně vytvořena","payload":{"id":31,"tenantId":412,"userId":88,"parentId":null,"name":"Návody","slug":"navody","translation":{"id":57,"articleCategoryId":31,"locale":"cs_CZ","isPrimary":true,"name":"Návody","slug":"navody","description":"Krátké návody na péči o kolo.","breadcrumbTitle":null,"metaTitle":null,"metaDescription":null,"canonicalUrl":null,"ogTitle":null,"ogDescription":null,"ogImageId":null},"availableLocales":["cs_CZ"],"color":"navody","icon":"bookOpen","children":[]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.write"]}],"summary":"Vytvoř kategorii","description":"Vytvoří kategorii s prvním textem. Chyba: 422, když je část adresy obsazená.\n\nPotřebuje jedno z těchto práv: article-categories.write."}},"/v1/article-categories/{articleCategory}":{"get":{"operationId":"article-categories.show","tags":["article-categories"],"parameters":[{"name":"articleCategory","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kategorie."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kategorie článků 31 úspěšně načtena","payload":{"id":31,"tenantId":412,"userId":88,"parentId":null,"name":"Návody","slug":"navody","translation":{"id":57,"articleCategoryId":31,"locale":"cs_CZ","isPrimary":true,"name":"Návody","slug":"navody","description":"Krátké návody na péči o kolo.","breadcrumbTitle":null,"metaTitle":null,"metaDescription":null,"canonicalUrl":null,"ogTitle":null,"ogDescription":null,"ogImageId":null},"availableLocales":["cs_CZ"],"color":"navody","icon":"bookOpen","children":[]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.read"]}],"summary":"Ukaž jednu kategorii","description":"Vrátí jednu kategorii s textem a kategoriemi pod ní.\n\nPotřebuje jedno z těchto práv: article-categories.read."},"put":{"operationId":"article-categories.update","tags":["article-categories"],"parameters":[{"name":"articleCategory","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kategorie."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Nemusíš ho posílat. Fusio vždy vezme číslo z adresy."},"userId":{"type":"integer","description":"Nemusíš ho posílat. Fusio sem vždy dá člověka, za kterého klíč jedná."},"name":{"type":"string","maxLength":255,"description":"Název kategorie, nejvýš 255 znaků."},"slug":{"type":"string","maxLength":255,"description":"Poslední část webové adresy. Ve tvé firmě musí být jedinečná."},"parentId":{"type":["integer","null"],"description":"Číslo nadřazené kategorie. Pro hlavní kategorii nech prázdné."},"color":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryColor"},{"type":"null"}],"description":"Barva štítku kategorie."},"icon":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryIcon"},{"type":"null"}],"description":"Ikona kategorie."},"translation":{"type":["object","null"],"properties":{"id":{"type":["integer","null"],"description":"Číslo textu, který měníš. Když ho vynecháš, přidáš jazyk."},"locale":{"type":"string","description":"Jazyk textu, třeba cs_CZ. Je potřeba, když posíláš translation."},"name":{"type":["string","null"],"maxLength":255,"description":"Název v tomhle jazyce, nejvýš 255 znaků."},"slug":{"type":["string","null"],"maxLength":255,"description":"Část webové adresy v tomhle jazyce. Pro jazyk musí být jedinečná."},"description":{"type":["string","null"],"description":"Text o kategorii, ukáže se na její stránce."},"breadcrumbTitle":{"type":["string","null"],"description":"Krátký název pro řádek odkazů nad stránkou."},"metaTitle":{"type":["string","null"],"maxLength":60,"description":"Nadpis ve výsledcích hledání, nejvýš 60 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání, nejvýš 160 znaků."},"canonicalUrl":{"type":["string","null"],"format":"uri","description":"Hlavní adresa stránky, když je i jinde."},"ogTitle":{"type":["string","null"],"description":"Nadpis pro sdílení na Facebooku nebo LinkedInu."},"ogDescription":{"type":["string","null"],"description":"Text pro sdílení na Facebooku nebo LinkedInu."},"ogImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení."}},"description":"Text v jednom jazyce. Když ho vynecháš, texty zůstanou."}},"required":["name","slug"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleCategoryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.write"]}],"summary":"Změň kategorii","description":"Nahradí kategorii. Pošli všechna pole, ne jen změněná.\n\nPotřebuje jedno z těchto práv: article-categories.write."},"delete":{"operationId":"article-categories.destroy","tags":["article-categories"],"parameters":[{"name":"articleCategory","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kategorie."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-categories.write"]}],"summary":"Smaž kategorii","description":"Přesune kategorii do koše. Její články zůstanou.\n\nPotřebuje jedno z těchto práv: article-categories.write."}},"/v1/articles/grid":{"get":{"operationId":"articles.grid","tags":["articles"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."},{"name":"sort","in":"query","schema":{"type":"string","enum":["tenantSequence","state","isVisible","publishedAt","createdAt","updatedAt","-tenantSequence","-state","-isVisible","-publishedAt","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexArticleData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]},"example":{"status":"success","message":"Seznam načten.","payload":{"data":[{"id":1284,"tenantSequence":37,"name":"Jak vybrat horské kolo","slug":"jak-vybrat-horske-kolo","state":"approved","rejectReason":null,"campaign":null,"availableLocales":["cs_CZ"],"articleCategoryId":31,"categorySlug":"navody","isVisible":true,"isCornerstone":false,"publication":null,"publishedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","wordCount":860,"readingTime":4,"ownerName":"Jana Nováková","helperNames":["Petr Malý"]}],"currentPage":1,"perPage":25,"lastPage":1,"total":1,"from":1,"to":1,"nextPageUrl":null,"previousPageUrl":null,"hasMorePages":false,"nextCursor":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Vypiš články v tabulce","description":"Vrátí jednu stránku článků podle filtrů a řazení. Kdo smí měnit jen svoje články, uvidí jen ty.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/options":{"get":{"operationId":"articles.options","tags":["articles"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionArticleData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Vypiš články pro výběr","description":"Vrátí krátké položky s číslem a názvem každého článku. Hodí se pro výběr v seznamu.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/board/summary":{"get":{"operationId":"articles.board.summary","tags":["articles"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Spočítej články v každém stavu","description":"Vrátí, kolik článků je v každém sloupci nástěnky. Sloupec je jeden stav.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/board/{status}":{"get":{"operationId":"articles.board.column","tags":["articles"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"]},"description":"Sloupec: drafted, approved, rejected, scheduled, published nebo failed."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexArticleData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Vypiš články jednoho sloupce nástěnky","description":"Vrátí články v jednom stavu, stránku po stránce. Pošli `nextCursor` zpátky jako `cursor` a dostaneš další stránku.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/overview":{"get":{"operationId":"articles.overview","tags":["articles"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[categoryId]","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen články téhle kategorie."},{"name":"filter[locale]","in":"query","schema":{"type":["string","null"],"maxLength":16},"description":"Počítej jen články v tomhle jazyce, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ArticleOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Ukaž čísla článků za období","description":"Vrátí čísla tvých článků za vybrané dny: zveřejněné články, zobrazení, přečtení, kliknutí a leady, nejlepší články a články, které ztrácejí čtenáře.\n\nKdyž je `ready` false, zeptej se znovu. Tahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/{article}/visibility":{"patch":{"operationId":"articles.set-visibility","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isVisible":{"type":"boolean","description":"true článek na webu ukáže, false ho schová."}},"required":["isVisible"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"summary":"Ukaž nebo schovej článek","description":"Ukáže nebo schová článek na webu. Stav zůstane stejný. Schovaný článek na webu odpoví 404. Když článek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: articles.write."}},"/v1/articles/{article}/state":{"patch":{"operationId":"articles.set-state","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"],"description":"Nový stav. Každý stav kromě drafted a rejected potřebuje articles.publish."}},"required":["state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Přesuň článek do jiného stavu","description":"Posune článek dál. Povolené kroky: z drafted na approved nebo rejected, z rejected na approved a z approved na rejected. Na jiné kroky dostaneš 422 se zprávou. Naplánovaný nebo zveřejněný článek tady změnit nejde a dostaneš taky 422; použij publikace.\n\nKe schválení potřebuje článek web, hlavní obrázek, autora a úplný hlavní text. Jinak je odpověď 422 s `payload.missingFields`.\n\n`approved` potřebuje `articles.publish`. Když článek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."}},"/v1/articles/bulk-state":{"patch":{"operationId":"articles.bulk-set-state","tags":["articles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"articleIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":100,"description":"Čísla článků, nejvýš 100."},"state":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"],"description":"Nový stav pro všechny. Každý stav kromě drafted a rejected potřebuje articles.publish."}},"required":["articleIds","state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Přesuň víc článků do jednoho stavu","description":"Posune každý článek stejně jako změna stavu jednoho článku, jeden po druhém. Povolené jsou stejné kroky. Když jeden článek posunout nejde, protože je naplánovaný nebo zveřejněný nebo ten krok není povolený, požadavek skončí chybou 422 se zprávou a nezmění se žádný článek. Když některý z článků patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."}},"/v1/articles/{article}/fields":{"patch":{"operationId":"articles.update-fields","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Nadpis článku, nejvýš 255 znaků."},"content":{"type":"string","description":"Text v Markdownu. Nepoužívej nadpis 1. úrovně. Obrázky smí používat jen soubory, které tvoje firma vidí."},"metaTitle":{"type":["string","null"],"maxLength":255,"description":"Nadpis ve výsledcích hledání, nejvýš 255 znaků."},"metaDescription":{"type":["string","null"],"maxLength":500,"description":"Text ve výsledcích hledání, nejvýš 500 znaků."},"primaryFocusKeyword":{"type":["string","null"],"maxLength":255,"description":"Hlavní hledaná fráze, pro kterou je článek napsaný."},"secondaryKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":8,"description":"Další hledané fráze, nejvýš 8 textů po 255 znacích."},"ogTitle":{"type":["string","null"],"maxLength":255,"description":"Nadpis pro sdílení na Facebooku nebo LinkedInu."},"ogDescription":{"type":["string","null"],"maxLength":500,"description":"Text pro sdílení na Facebooku nebo LinkedInu, nejvýš 500 znaků."},"twitterTitle":{"type":["string","null"],"maxLength":255,"description":"Nadpis pro sdílení na X."},"twitterDescription":{"type":["string","null"],"maxLength":500,"description":"Text pro sdílení na X, nejvýš 500 znaků."},"slug":{"type":"string","maxLength":255,"description":"Poslední část webové adresy. Pár slov si nechává Fusio a ta se odmítnou."},"bannerImageId":{"type":["integer","null"],"description":"Číslo souboru s hlavním obrázkem."},"locale":{"type":"string","maxLength":10,"description":"Jazyk textu, který měníš, třeba cs_CZ. Když ho vynecháš, změní se hlavní jazyk."},"breadcrumbTitle":{"type":["string","null"],"maxLength":30,"description":"Krátký název pro řádek odkazů nad článkem, nejvýš 30 znaků."},"summary":{"type":["string","null"],"description":"Krátké shrnutí nad textem."},"signature":{"type":["string","null"],"description":"Řádek na konci článku."},"sources":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":"string","description":"Název zdroje."},"url":{"type":"string","format":"uri","description":"Webová adresa zdroje."}}},"description":"Zdroje článku. Každý potřebuje title a url."},"ogImageId":{"type":["integer","null"],"description":"Číslo souboru s obrázkem pro sdílení na Facebooku nebo LinkedInu."},"twitterImageId":{"type":["integer","null"],"description":"Číslo souboru s obrázkem pro sdílení na X."},"articleCategoryId":{"type":["integer","null"],"description":"Číslo kategorie."},"tenantArticleAuthorId":{"type":["integer","null"],"description":"Číslo autora."},"articleIntegrationId":{"type":["integer","null"],"description":"Web, na který článek patří. null vybere tvůj hlavní web."},"isCornerstone":{"type":"boolean","description":"true označí hlavní článek, na který odkazují ostatní."},"schemaType":{"anyOf":[{"$ref":"#/components/schemas/ArticleSchemaType"},{"type":"null"}],"description":"Druh stránky pro vyhledávače: Article, NewsArticle nebo BlogPosting."},"seoIndex":{"type":"boolean","description":"true dovolí vyhledávačům stránku ukázat."},"seoFollow":{"type":"boolean","description":"true dovolí vyhledávačům jít po odkazech na stránce."},"robotsNoarchive":{"type":"boolean","description":"true požádá vyhledávače, ať si stránku neukládají."},"robotsNosnippet":{"type":"boolean","description":"true požádá vyhledávače, ať neukazují ukázku textu."},"robotsMaxSnippet":{"type":["integer","null"],"minimum":-1,"maximum":1000,"description":"Nejdelší ukázka textu, od -1 do 1000 znaků. -1 znamená bez omezení."},"robotsMaxImagePreview":{"anyOf":[{"$ref":"#/components/schemas/RobotsMaxImagePreview"},{"type":"null"}],"description":"Jak velký smí být náhled obrázku: none, standard nebo large."},"robotsMaxVideoPreview":{"type":["integer","null"],"minimum":-1,"maximum":60,"description":"Nejdelší ukázka videa, od -1 do 60 sekund. -1 znamená bez omezení."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Změň pár polí článku","description":"Změní jen pole, která pošleš. Textová pole mění text v jazyce `locale`, nebo hlavní text, když ho vynecháš. Stav se nezmění.\n\nMěnit jde jen článek ve stavu drafted; v jakémkoli jiném stavu dostaneš 422. Když je článek approved, scheduled, published nebo failed, klíč bez `articles.publish` dostane místo toho 403 `insufficient_scope`. Když článek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nChyba: 404, když článek v tom jazyce text nemá.\n\nPotřebuje jedno z těchto práv: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."}},"/v1/articles":{"post":{"operationId":"articles.store","tags":["articles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"Člověk, kterému článek patří. Musí to být aktivní člen tvé firmy."},"articleIntegrationId":{"type":["integer","null"],"description":"Web, na který článek patří. Naplánovaný nebo zveřejněný článek potřebuje web s ověřenou doménou."},"state":{"$ref":"#/components/schemas/ArticleState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje articles.publish."},"schemaType":{"anyOf":[{"$ref":"#/components/schemas/ArticleSchemaType"},{"type":"null"}],"description":"Druh stránky pro vyhledávače: Article, NewsArticle nebo BlogPosting."},"seoIndex":{"type":"boolean","description":"true dovolí vyhledávačům stránku ukázat."},"seoFollow":{"type":"boolean","description":"true dovolí vyhledávačům jít po odkazech na stránce."},"robotsNoarchive":{"type":"boolean","description":"true požádá vyhledávače, ať si stránku neukládají."},"robotsNosnippet":{"type":"boolean","description":"true požádá vyhledávače, ať neukazují ukázku textu."},"robotsMaxSnippet":{"type":["integer","null"],"minimum":-1,"description":"Nejdelší ukázka textu ve znacích. -1 znamená bez omezení."},"robotsMaxImagePreview":{"anyOf":[{"$ref":"#/components/schemas/RobotsMaxImagePreview"},{"type":"null"}],"description":"Jak velký smí být náhled obrázku: none, standard nebo large."},"robotsMaxVideoPreview":{"type":["integer","null"],"minimum":-1,"description":"Nejdelší ukázka videa v sekundách. -1 znamená bez omezení."},"isVisible":{"type":"boolean","description":"false článek na webu schová, ale stav mu nechá."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které článek měl."},"isCornerstone":{"type":"boolean","description":"true označí hlavní článek, na který odkazují ostatní."},"publishedAt":{"type":["string","null"],"description":"Kdy článek vyjde, třeba 2026-11-17T09:00:00+01:00. Vždy přidej časové pásmo."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém článek je."},"articleCategoryId":{"type":["integer","null"],"description":"Číslo kategorie článku."},"tenantArticleAuthorId":{"type":["integer","null"],"description":"Číslo autora, který se u článku ukáže."},"bannerImageId":{"type":["string","null"],"description":"Číslo souboru s hlavním obrázkem."},"createdAt":{"type":["string","null"],"description":"Kdy článek vznikl. Můžeš ho vynechat."},"updatedAt":{"type":["string","null"],"description":"Kdy se článek naposledy změnil. Můžeš ho vynechat."},"translation":{"type":"object","properties":{"id":{"type":["integer","null"],"description":"Když článek zakládáš, vynech ho."},"articleId":{"type":["integer","null"],"description":"Když článek zakládáš, vynech ho."},"locale":{"type":"string","description":"Jazyk textu, třeba cs_CZ. Když ho vynecháš, bude en_US."},"name":{"type":"string","description":"Nadpis článku."},"content":{"type":"string","description":"Text v Markdownu. Nepoužívej nadpis 1. úrovně; tím je nadpis článku. Obrázky smí používat jen soubory, které tvoje firma vidí."},"slug":{"type":["string","null"],"description":"Poslední část webové adresy, třeba muj-prvni-clanek. Pár slov si nechává Fusio a ta se odmítnou."},"breadcrumbTitle":{"type":["string","null"],"description":"Krátký název pro řádek odkazů nad článkem."},"metaTitle":{"type":["string","null"],"maxLength":60,"description":"Nadpis ve výsledcích hledání, nejvýš 60 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání, nejvýš 160 znaků."},"primaryFocusKeyword":{"type":["string","null"],"description":"Hlavní hledaná fráze, pro kterou je článek napsaný."},"secondaryKeywords":{"type":["array","null"],"items":{},"maxItems":8,"description":"Další hledané fráze, seznam nejvýš 8 textů."},"canonicalUrl":{"type":["string","null"],"format":"uri","description":"Hlavní adresa textu, když je i na jiné stránce."},"ogTitle":{"type":["string","null"],"description":"Nadpis, když někdo článek sdílí na Facebooku nebo LinkedInu."},"ogDescription":{"type":["string","null"],"description":"Text, když někdo článek sdílí na Facebooku nebo LinkedInu."},"ogImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení na Facebooku nebo LinkedInu."},"twitterTitle":{"type":["string","null"],"description":"Nadpis, když někdo článek sdílí na X."},"twitterDescription":{"type":["string","null"],"description":"Text, když někdo článek sdílí na X."},"twitterImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení na X."},"summary":{"type":["string","null"],"description":"Krátké shrnutí nad textem."},"signature":{"type":["string","null"],"description":"Řádek na konci článku."},"sources":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":"string","description":"Název zdroje."},"url":{"type":"string","format":"uri","description":"Webová adresa zdroje."}}},"description":"Zdroje článku. Každý má title a url."}},"required":["locale","name","content"],"description":"Text článku v jednom jazyce."},"campaignId":{"type":["integer","null"],"description":"Číslo kampaně, do které článek patří. Klíč pak potřebuje i campaigns.write."}},"required":["userId","state","translation"]},"example":{"userId":88,"state":"drafted","articleCategoryId":31,"tenantArticleAuthorId":7,"tagIds":[64],"translation":{"locale":"cs_CZ","name":"Jak vybrat horské kolo","content":"## Na čem záleží\n\nVyber rám podle své výšky a terénu, kam jezdíš.","metaDescription":"Krátký návod, jak vybrat horské kolo podle výšky a terénu."}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Článek úspěšně vytvořen","payload":{"id":1284,"publication":null,"campaign":null,"translation":{"id":2210,"articleId":1284,"locale":"cs_CZ","isPrimary":true,"name":"Jak vybrat horské kolo","content":"## Na čem záleží\n\nVyber rám podle své výšky a terénu, kam jezdíš.","contentHtml":"<h2>Na čem záleží</h2><p>Vyber rám podle své výšky a terénu, kam jezdíš.</p>","slug":"jak-vybrat-horske-kolo","breadcrumbTitle":"Výběr horského kola","metaTitle":"Jak vybrat horské kolo | Cyklo Novák","metaDescription":"Krátký návod, jak vybrat horské kolo podle výšky a terénu.","primaryFocusKeyword":"horské kolo","secondaryKeywords":["výběr kola","velikost rámu"],"canonicalUrl":"https://www.example.cz/blog/jak-vybrat-horske-kolo","ogTitle":"Jak vybrat horské kolo","ogDescription":"Návod na výběr horského kola.","ogImageId":null,"ogImage":null,"twitterTitle":null,"twitterDescription":null,"twitterImageId":null,"twitterImage":null,"wordCount":860,"readingTime":4,"summary":"Rám vyber podle výšky, kola podle terénu.","summaryHtml":"<p>Rám vyber podle výšky, kola podle terénu.</p>","signature":null,"sources":[],"tableOfContents":[]},"availableLocales":["cs_CZ"],"alternates":[{"locale":"cs_CZ","slug":"jak-vybrat-horske-kolo","languageTag":"cs-CZ","languageCode":"cs","categorySlug":"navody"}],"tenantId":412,"tenantSequence":37,"userId":88,"articleCategoryId":31,"categorySlug":"navody","tenantArticleAuthorId":7,"author":null,"bannerImageId":5120,"unsplashBannerImageUrl":null,"unsplashBannerCredit":null,"bannerImage":null,"articleIntegrationId":3,"externalReference":null,"tags":[{"id":64,"tenantId":412,"userId":88,"name":"Horská kola","slug":"horska-kola","color":"#2f855a","notes":null,"assignmentSource":"manual"}],"articleIntegration":null,"state":"drafted","schemaType":"BlogPosting","seoIndex":true,"seoFollow":true,"robotsNoarchive":false,"robotsNosnippet":false,"robotsMaxSnippet":null,"robotsMaxImagePreview":"large","robotsMaxVideoPreview":null,"isVisible":true,"isCornerstone":false,"publishedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","blueprint":null,"campaignAsset":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Vytvoř článek","description":"Vytvoří článek s prvním textem. Staneš se jedním z lidí, kterým je přiřazený. Když pošleš `campaignId`, článek se přidá do té kampaně.\n\nStav jiný než `drafted` nebo `rejected` potřebuje `articles.publish`. Článek ve stavu `scheduled` nebo `published` potřebuje web s ověřenou doménou.\n\n> [!WARNING]\n> Článek ve stavu `published` je hned vidět na tvém webu.\n\nChyby: 403 `insufficient_scope` bez `articles.publish`, 403 s `campaignId` bez `campaigns.write`, 422 když je pole špatně nebo doména webu není ověřená.\n\nPotřebuje jedno z těchto práv: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."}},"/v1/articles/{article}":{"get":{"operationId":"articles.show","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Článek [ 1284 ] úspěšně načten","payload":{"id":1284,"publication":null,"campaign":null,"translation":{"id":2210,"articleId":1284,"locale":"cs_CZ","isPrimary":true,"name":"Jak vybrat horské kolo","content":"## Na čem záleží\n\nVyber rám podle své výšky a terénu, kam jezdíš.","contentHtml":"<h2>Na čem záleží</h2><p>Vyber rám podle své výšky a terénu, kam jezdíš.</p>","slug":"jak-vybrat-horske-kolo","breadcrumbTitle":"Výběr horského kola","metaTitle":"Jak vybrat horské kolo | Cyklo Novák","metaDescription":"Krátký návod, jak vybrat horské kolo podle výšky a terénu.","primaryFocusKeyword":"horské kolo","secondaryKeywords":["výběr kola","velikost rámu"],"canonicalUrl":"https://www.example.cz/blog/jak-vybrat-horske-kolo","ogTitle":"Jak vybrat horské kolo","ogDescription":"Návod na výběr horského kola.","ogImageId":null,"ogImage":null,"twitterTitle":null,"twitterDescription":null,"twitterImageId":null,"twitterImage":null,"wordCount":860,"readingTime":4,"summary":"Rám vyber podle výšky, kola podle terénu.","summaryHtml":"<p>Rám vyber podle výšky, kola podle terénu.</p>","signature":null,"sources":[],"tableOfContents":[]},"availableLocales":["cs_CZ"],"alternates":[{"locale":"cs_CZ","slug":"jak-vybrat-horske-kolo","languageTag":"cs-CZ","languageCode":"cs","categorySlug":"navody"}],"tenantId":412,"tenantSequence":37,"userId":88,"articleCategoryId":31,"categorySlug":"navody","tenantArticleAuthorId":7,"author":null,"bannerImageId":5120,"unsplashBannerImageUrl":null,"unsplashBannerCredit":null,"bannerImage":null,"articleIntegrationId":3,"externalReference":null,"tags":[{"id":64,"tenantId":412,"userId":88,"name":"Horská kola","slug":"horska-kola","color":"#2f855a","notes":null,"assignmentSource":"manual"}],"articleIntegration":null,"state":"approved","schemaType":"BlogPosting","seoIndex":true,"seoFollow":true,"robotsNoarchive":false,"robotsNosnippet":false,"robotsMaxSnippet":null,"robotsMaxImagePreview":"large","robotsMaxVideoPreview":null,"isVisible":true,"isCornerstone":false,"publishedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","blueprint":null,"campaignAsset":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Ukaž jeden článek","description":"Vrátí článek s hlavním textem, štítky, kategorií a autorem.\n\nPotřebuje jedno z těchto práv: articles.read."},"put":{"operationId":"articles.update","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"Člověk, kterému článek patří. Musí to být aktivní člen tvé firmy."},"articleIntegrationId":{"type":["integer","null"],"description":"Web, na který článek patří. Naplánovaný nebo zveřejněný článek potřebuje web s ověřenou doménou."},"state":{"$ref":"#/components/schemas/ArticleState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje articles.publish."},"schemaType":{"anyOf":[{"$ref":"#/components/schemas/ArticleSchemaType"},{"type":"null"}],"description":"Druh stránky pro vyhledávače: Article, NewsArticle nebo BlogPosting."},"seoIndex":{"type":"boolean","description":"true dovolí vyhledávačům stránku ukázat."},"seoFollow":{"type":"boolean","description":"true dovolí vyhledávačům jít po odkazech na stránce."},"robotsNoarchive":{"type":"boolean","description":"true požádá vyhledávače, ať si stránku neukládají."},"robotsNosnippet":{"type":"boolean","description":"true požádá vyhledávače, ať neukazují ukázku textu."},"robotsMaxSnippet":{"type":["integer","null"],"minimum":-1,"description":"Nejdelší ukázka textu ve znacích. -1 znamená bez omezení."},"robotsMaxImagePreview":{"anyOf":[{"$ref":"#/components/schemas/RobotsMaxImagePreview"},{"type":"null"}],"description":"Jak velký smí být náhled obrázku: none, standard nebo large."},"robotsMaxVideoPreview":{"type":["integer","null"],"minimum":-1,"description":"Nejdelší ukázka videa v sekundách. -1 znamená bez omezení."},"isVisible":{"type":"boolean","description":"false článek na webu schová, ale stav mu nechá."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které článek měl."},"isCornerstone":{"type":"boolean","description":"true označí hlavní článek, na který odkazují ostatní."},"publishedAt":{"type":["string","null"],"description":"Kdy článek vyjde, třeba 2026-11-17T09:00:00+01:00. Vždy přidej časové pásmo."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém článek je."},"articleCategoryId":{"type":["integer","null"],"description":"Číslo kategorie článku."},"tenantArticleAuthorId":{"type":["integer","null"],"description":"Číslo autora, který se u článku ukáže."},"bannerImageId":{"type":["string","null"],"description":"Číslo souboru s hlavním obrázkem."},"createdAt":{"type":["string","null"],"description":"Kdy článek vznikl. Můžeš ho vynechat."},"updatedAt":{"type":["string","null"],"description":"Kdy se článek naposledy změnil. Můžeš ho vynechat."},"translation":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo textu, který měníš. Musí patřit k tomuhle článku."},"articleId":{"type":"integer","description":"Číslo tohohle článku."},"locale":{"type":"string","description":"Jazyk textu, třeba cs_CZ. Když ho vynecháš, bude en_US."},"name":{"type":"string","description":"Nadpis článku."},"content":{"type":"string","description":"Text v Markdownu. Nepoužívej nadpis 1. úrovně; tím je nadpis článku. Obrázky smí používat jen soubory, které tvoje firma vidí."},"slug":{"type":["string","null"],"description":"Poslední část webové adresy, třeba muj-prvni-clanek. Pár slov si nechává Fusio a ta se odmítnou."},"breadcrumbTitle":{"type":["string","null"],"description":"Krátký název pro řádek odkazů nad článkem."},"metaTitle":{"type":["string","null"],"maxLength":60,"description":"Nadpis ve výsledcích hledání, nejvýš 60 znaků."},"metaDescription":{"type":["string","null"],"maxLength":160,"description":"Text ve výsledcích hledání, nejvýš 160 znaků."},"primaryFocusKeyword":{"type":["string","null"],"description":"Hlavní hledaná fráze, pro kterou je článek napsaný."},"secondaryKeywords":{"type":["array","null"],"items":{},"maxItems":8,"description":"Další hledané fráze, seznam nejvýš 8 textů."},"canonicalUrl":{"type":["string","null"],"format":"uri","description":"Hlavní adresa textu, když je i na jiné stránce."},"ogTitle":{"type":["string","null"],"description":"Nadpis, když někdo článek sdílí na Facebooku nebo LinkedInu."},"ogDescription":{"type":["string","null"],"description":"Text, když někdo článek sdílí na Facebooku nebo LinkedInu."},"ogImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení na Facebooku nebo LinkedInu."},"twitterTitle":{"type":["string","null"],"description":"Nadpis, když někdo článek sdílí na X."},"twitterDescription":{"type":["string","null"],"description":"Text, když někdo článek sdílí na X."},"twitterImageId":{"type":["string","null"],"description":"Číslo souboru s obrázkem pro sdílení na X."},"summary":{"type":["string","null"],"description":"Krátké shrnutí nad textem."},"signature":{"type":["string","null"],"description":"Řádek na konci článku."},"sources":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":"string","description":"Název zdroje."},"url":{"type":"string","format":"uri","description":"Webová adresa zdroje."}}},"description":"Zdroje článku. Každý má title a url."}},"required":["id","articleId","locale","name","content"],"description":"Text článku v jednom jazyce."},"id":{"type":"integer","description":"Číslo článku. Musí být stejné jako v adrese."}},"required":["userId","state","translation","id"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"x-fusio-conditional-scopes":["articles.publish"],"x-fusio-opt-in-scopes":["articles.publish"],"summary":"Změň celý článek","description":"Nahradí článek a jeden jeho text. Pošli všechna pole, ne jen změněná. `tagIds` nahradí štítky, jen když ho pošleš.\n\nZměna článku, který není `drafted` ani `rejected`, potřebuje `articles.publish`, stejně jako přesun do takového stavu. Když naplánovaný článek vrátíš zpátky, jeho publikace se zruší. Když článek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\n> [!WARNING]\n> Změna zveřejněného článku změní tvůj živý web.\n\nChyby: 403 `insufficient_scope`, 422 když je pole špatně nebo doména webu není ověřená.\n\nPotřebuje jedno z těchto práv: articles.write. Některé hodnoty potřebují ještě: articles.publish. Tato práva musíš zaškrtnout schválně: articles.publish."},"delete":{"operationId":"articles.destroy","tags":["articles"],"parameters":[{"name":"article","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo článku."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.write"]}],"summary":"Smaž článek","description":"Přesune článek do koše. Jeho stránka na webu pak odpovídá 410 Gone. Když článek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: articles.write."}},"/v1/auth/me":{"get":{"operationId":"auth.me","tags":["auth"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AuthMeOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Údaje uživatele načteny","payload":{"user":{"id":88,"activeTenantId":412,"firstName":"Jana","lastName":"Nováková","email":"jana.novakova@example.cz","emailVerifiedAt":"2026-11-03T08:30:00Z","preferredLanguageId":2,"preferredTheme":"system","roles":["owner"],"permissions":[],"isAdmin":false},"tenant":{"id":412,"ownerId":88,"slug":"cyklo-novak","name":"Cyklo Novák","legalName":"Cyklo Novák s.r.o.","email":"info@example.cz","ownerEmail":"jana.novakova@example.cz","privacyPolicyUrl":"https://www.example.cz/ochrana-udaju","verifiedDomainName":"example.cz","hasAgencyWorkspace":false,"twoFactorRequired":false,"preferredAiLanguageId":2,"bio":"Prodej a servis kol v Brně.","website":"https://www.example.cz","timezone":"Europe/Prague","resolvedTimezone":"Europe/Prague","logoId":null,"logoBannerId":null,"logoUrl":null,"logoBannerUrl":null,"documents":[],"type":"company","teamSize":"2-10","registrationNumber":"12345678","vatNumber":"CZ12345678","industryCategoryIds":[],"completedAt":"2026-11-03T08:30:00Z","packageName":"Start","subscriptionId":77,"creditBalance":1840.5,"emailSendingBalance":4200,"socialPlatformLinkingBalance":3,"adPlatformLinkingBalance":1,"organizationMemberBalance":4,"crmRecordsUsed":312,"companyLookupsUsed":9,"resetLimitsAt":"2026-11-30T23:00:00Z","entitlements":{"status":"active","lane":"self","packageId":3,"packageType":"bundle","subscriptionId":77,"billingCycle":"monthly","periodStartsOn":"2026-11-01","periodEndsOn":"2026-11-30","usageResetsAt":"2026-11-30T23:00:00Z","moduleIds":[],"moduleKeys":[],"readOnlyModuleIds":[],"permissionNames":[],"limits":[],"shop":{"available":true,"newOrderOnly":false},"alerts":[],"lockedModules":[]},"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null},"twoFactorSetupRequired":false,"membershipSuspension":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]},{"fusioToken":["articles.write"]},{"fusioToken":["article-categories.read"]},{"fusioToken":["article-categories.write"]},{"fusioToken":["article-authors.read"]},{"fusioToken":["article-authors.write"]},{"fusioToken":["topics.read"]},{"fusioToken":["topics.write"]},{"fusioToken":["emails.read"]},{"fusioToken":["emails.write"]},{"fusioToken":["social-posts.read"]},{"fusioToken":["social-posts.write"]},{"fusioToken":["campaigns.read"]},{"fusioToken":["campaigns.write"]},{"fusioToken":["leads.read"]},{"fusioToken":["leads.write"]},{"fusioToken":["deals.read"]},{"fusioToken":["deals.write"]},{"fusioToken":["articles.publish"]},{"fusioToken":["emails.send"]},{"fusioToken":["social-posts.publish.x"]},{"fusioToken":["social-posts.publish.facebook"]},{"fusioToken":["social-posts.publish.linkedin"]},{"fusioToken":["social-posts.publish.instagram"]},{"fusioToken":["campaigns.execute"]},{"fusioToken":["intelligence.read"]},{"fusioToken":["intelligence.write"]},{"fusioToken":["seo.read"]},{"fusioToken":["seo.write"]},{"fusioToken":["contacts.read"]},{"fusioToken":["contacts.write"]},{"fusioToken":["files.read"]},{"fusioToken":["files.write"]},{"fusioToken":["deals.execute"]},{"fusioToken":["ai.generate"]},{"fusioToken":["ads.read"]},{"fusioToken":["ads.write"]},{"fusioToken":["ads.execute.google"]},{"fusioToken":["ads.execute.facebook"]},{"fusioToken":["ads.execute.linkedin"]},{"fusioToken":["ads.execute.instagram"]}],"x-fusio-opt-in-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","intelligence.write","seo.write","deals.execute","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Ukaž, za koho klíč jedná","description":"Vrátí člověka, za kterého klíč jedná (`user`), a firmu (`tenant`). Stačí jakékoli právo klíče.\n\nU klíče bez `subscription.read` `tenant` vynechá fakturační údaje a čerpání. S ním je dostaneš, jen když je člověk smí vidět.\n\nPotřebuje jedno z těchto práv: articles.read, articles.write, article-categories.read, article-categories.write, article-authors.read, article-authors.write, topics.read, topics.write, emails.read, emails.write, social-posts.read, social-posts.write, campaigns.read, campaigns.write, leads.read, leads.write, deals.read, deals.write, articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, intelligence.read, intelligence.write, seo.read, seo.write, contacts.read, contacts.write, files.read, files.write, deals.execute, ai.generate, ads.read, ads.write, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, intelligence.write, seo.write, deals.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/brand-voices/extract":{"post":{"operationId":"brand-voices.extract","tags":["brand-voices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název hlasu, od 1 do 255 znaků."},"source_url":{"type":["string","null"],"format":"uri","description":"Webová stránka, ze které se hlas přečte. Pošli ji, nebo sample_content."},"sample_content":{"type":["string","null"],"maxLength":50000,"description":"Text, ze kterého se hlas přečte, nejvýš 50000 znaků. Pošli ho, nebo source_url."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ExtractedBrandVoiceData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate"]}],"summary":"Navrhni hlas značky z textu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI přečte webovou stránku nebo text a navrhne, jak zní hlas tvé značky. Nic se neuloží: když si ho chceš nechat, pošli návrh do `brand-voices.store`.\n\nDostaneš 422, když nepošleš ani source_url, ani sample_content, nebo když stránku není bezpečné číst, a 502, když se stránka nedá načíst.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate."}},"/v1/brand-voices/{brandVoice}/set-default":{"patch":{"operationId":"brand-voices.set-default","tags":["brand-voices"],"parameters":[{"name":"brandVoice","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo hlasu značky."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BrandVoiceOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Udělej z hlasu značky hlavní","description":"Udělá z tohohle hlasu hlavní. Hlas, který byl hlavní předtím, přestane být hlavní. AI použije hlavní hlas, když žádný nevybereš.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/brand-voices":{"get":{"operationId":"brand-voices.index","tags":["brand-voices"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/BrandVoiceOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš hlasy značky","description":"Vrátí všechny tvoje hlasy značky i s jejich frázemi.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"post":{"operationId":"brand-voices.store","tags":["brand-voices"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název hlasu, od 1 do 255 znaků."},"description":{"type":["string","null"],"maxLength":5000,"description":"Jak hlas zní, tvými slovy. Nejvýš 5000 znaků."},"toneDescriptor":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceTone"},{"type":"null"}],"description":"Tón: professional, friendly, authoritative, casual, playful, inspirational, empathetic, technical nebo custom."},"readingLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceReadingLevel"},{"type":"null"}],"description":"Jak těžké jsou texty na čtení: simple, standard nebo advanced."},"persona":{"type":["string","null"],"maxLength":255,"description":"Kdo mluví, třeba přátelský odborník. Nejvýš 255 znaků."},"sampleContent":{"type":["string","null"],"maxLength":10000,"description":"Ukázkový text napsaný tímhle hlasem. Nejvýš 10000 znaků."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Vynech ho, když to píšeš sám."},"phrases":{"type":["array","null"],"items":{"type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":255,"description":"Fráze, od 1 do 255 znaků."},"mode":{"$ref":"#/components/schemas/TenantBrandVoicePhraseMode","description":"prefer, když se má používat, avoid, když se jí mají texty vyhnout."}}},"maxItems":200,"description":"Fráze, které se mají používat nebo ne, nejvýš 200. Nahradí všechny staré fráze."}},"required":["name"]},"example":{"name":"Přátelský odborník","description":"Mluvíme jako zkušený mechanik, který rád poradí. Krátké věty, žádná hantýrka.","toneDescriptor":"friendly","readingLevel":"simple","persona":"Zkušený mechanik z dílny","sampleContent":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a nafoukni pneumatiky. Zbytek rádi uděláme za tebe.","phrases":[{"phrase":"rádi poradíme","mode":"prefer"},{"phrase":"bezkonkurenční","mode":"avoid"}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BrandVoiceOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Hlas značky úspěšně vytvořen","payload":{"id":23,"tenantId":412,"tenantSequence":2,"name":"Přátelský odborník","description":"Mluvíme jako zkušený mechanik, který rád poradí. Krátké věty, žádná hantýrka.","toneDescriptor":"friendly","readingLevel":"simple","persona":"Zkušený mechanik z dílny","sampleContent":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a nafoukni pneumatiky. Zbytek rádi uděláme za tebe.","isDefault":false,"derivedFromAnalysisId":null,"createdBy":88,"phrases":[{"id":301,"phrase":"rádi poradíme","mode":"prefer"},{"id":302,"phrase":"bezkonkurenční","mode":"avoid"}],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","deletedAt":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř hlas značky","description":"Vytvoří hlas značky. Potřeba je jen název. Když z něj chceš udělat hlavní, zavolej potom `brand-voices.set-default`.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/brand-voices/{brandVoice}":{"get":{"operationId":"brand-voices.show","tags":["brand-voices"],"parameters":[{"name":"brandVoice","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo hlasu značky."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BrandVoiceOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Hlas značky úspěšně načten","payload":{"id":23,"tenantId":412,"tenantSequence":2,"name":"Přátelský odborník","description":"Mluvíme jako zkušený mechanik, který rád poradí. Krátké věty, žádná hantýrka.","toneDescriptor":"friendly","readingLevel":"simple","persona":"Zkušený mechanik z dílny","sampleContent":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a nafoukni pneumatiky. Zbytek rádi uděláme za tebe.","isDefault":true,"derivedFromAnalysisId":null,"createdBy":88,"phrases":[{"id":301,"phrase":"rádi poradíme","mode":"prefer"},{"id":302,"phrase":"bezkonkurenční","mode":"avoid"}],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","deletedAt":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž jeden hlas značky","description":"Vrátí jeden hlas značky i s jeho frázemi.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"put":{"operationId":"brand-voices.update","tags":["brand-voices"],"parameters":[{"name":"brandVoice","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo hlasu značky."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název hlasu, od 1 do 255 znaků. Když ho vynecháš, zůstane."},"description":{"type":["string","null"],"maxLength":5000,"description":"Jak hlas zní, tvými slovy. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"toneDescriptor":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceTone"},{"type":"null"}],"description":"Tón: professional, friendly, authoritative, casual, playful, inspirational, empathetic, technical nebo custom. Když ho vynecháš, zůstane."},"readingLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceReadingLevel"},{"type":"null"}],"description":"Jak těžké jsou texty na čtení: simple, standard nebo advanced. Když ho vynecháš, zůstane."},"persona":{"type":["string","null"],"maxLength":255,"description":"Kdo mluví, třeba přátelský odborník. Nejvýš 255 znaků. Když ho vynecháš, zůstane."},"sampleContent":{"type":["string","null"],"maxLength":10000,"description":"Ukázkový text napsaný tímhle hlasem. Nejvýš 10000 znaků. Když ho vynecháš, zůstane."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Když ho vynecháš, zůstane."},"phrases":{"type":"array","items":{"type":"object","properties":{"phrase":{"type":"string","minLength":1,"maxLength":255,"description":"Fráze, od 1 do 255 znaků."},"mode":{"$ref":"#/components/schemas/TenantBrandVoicePhraseMode","description":"prefer, když se má používat, avoid, když se jí mají texty vyhnout."}}},"maxItems":200,"description":"Fráze, které se mají používat nebo ne, nejvýš 200. Nahradí všechny staré fráze."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BrandVoiceOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň hlas značky","description":"Změní hlas značky. Pošli jen to, co chceš změnit. Pole, které vynecháš, zůstane, jak je; null ho smaže. Když pošleš fráze, nahradí všechny staré fráze.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"brand-voices.destroy","tags":["brand-voices"],"parameters":[{"name":"brandVoice","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo hlasu značky."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber hlas značky","description":"Odebere hlas značky. Texty, které jím byly napsané, zůstanou, jak jsou. Výchozí hlas značky odebrat nejde; dostaneš 422, takže nejdřív přes `brand-voices.set-default` udělej výchozím jiný hlas.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/campaigns/grid":{"get":{"operationId":"campaigns.grid","tags":["campaigns"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[standaloneEntity]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"developer_docs.listing.filter.standaloneEntity"},{"name":"filter[status]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[mode]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak kampaň běží. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[goal]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Čeho chce kampaň dosáhnout. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[origin]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Odkud to přišlo. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[autonomyLevel]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kolik smí kampaň dělat sama. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["tenantSequence","name","status","mode","goal","origin","autonomyLevel","startAt","endsOn","createdAt","updatedAt","-tenantSequence","-name","-status","-mode","-goal","-origin","-autonomyLevel","-startAt","-endsOn","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexCampaignData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Vypiš kampaně v tabulce","description":"Vrátí jednu stránku kampaní podle filtrů a řazení.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/options":{"get":{"operationId":"campaigns.options","tags":["campaigns"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[status]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionCampaignData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Vypiš kampaně pro výběr","description":"Vrátí krátké položky s číslem a názvem každé kampaně. Hodí se pro výběr v seznamu.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/board/summary":{"get":{"operationId":"campaigns.board.summary","tags":["campaigns"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[standaloneEntity]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"developer_docs.listing.filter.standaloneEntity"},{"name":"filter[status]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[mode]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak kampaň běží. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[goal]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Čeho chce kampaň dosáhnout. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[origin]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Odkud to přišlo. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[autonomyLevel]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kolik smí kampaň dělat sama. Jedna nebo víc hodnot, oddělených čárkou."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Spočítej kampaně v každém stavu","description":"Vrátí, kolik kampaní je v každém sloupci nástěnky. Sloupec je jeden stav.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/board/{status}":{"get":{"operationId":"campaigns.board.column","tags":["campaigns"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["draft","approved","scheduled","active","paused","completed","cancelled","archived"]},"description":"Sloupec: draft, approved, scheduled, active, paused, completed, cancelled nebo archived."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[standaloneEntity]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"developer_docs.listing.filter.standaloneEntity"},{"name":"filter[status]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[mode]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak kampaň běží. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[goal]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Čeho chce kampaň dosáhnout. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[origin]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Odkud to přišlo. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[autonomyLevel]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kolik smí kampaň dělat sama. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexCampaignData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Vypiš kampaně jednoho stavu","description":"Vrátí kampaně jednoho sloupce nástěnky po stránkách. Pro další stránku pošli `nextCursor` jako `cursor`.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/overview":{"get":{"operationId":"campaigns.overview","tags":["campaigns"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[status]","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignStatus"},{"type":"null"}]},"description":"Počítej jen kampaně s tímhle stavem."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Ukaž čísla kampaní za období","description":"Vrátí čísla tvých kampaní za dny, které vybereš. Dosah a kliknutí potřebují čtení článků, e-mailů a příspěvků, leady potřebují `leads.read` a obchody a peníze `deals.read`; bez nich je ta část null.\n\nKdyž je `ready` false, zeptej se znovu.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/overview/timeline":{"get":{"operationId":"campaigns.overview.timeline","tags":["campaigns"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[status]","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignStatus"},{"type":"null"}]},"description":"Ukaž jen kampaně s tímhle stavem. Bez něj se vynechají kampaně draft, cancelled a archived."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignOverviewTimelineData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Ukaž kampaně na časové ose","description":"Vrátí kampaně, které v období běží, abys je mohl nakreslit na časovou osu.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/ai-analyze":{"post":{"operationId":"campaigns.ai-analyze","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":20,"maxLength":5000,"description":"Zadání, které se má rozebrat, od 20 do 5000 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["brief"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignBriefAnalysisResponseData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","ai.generate"]}],"summary":"Rozbor zadání kampaně pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI přečte zadání kampaně a řekne ti cíl, kanály, načasování, výzvy k akci a podrobnosti, které ještě chybí. Nic se neuloží jako kampaň; odpověď můžeš použít k vyplnění nové kampaně.\n\nKlíč potřebuje také oprávnění k zápisu obsahu: `articles.write`, `emails.write` nebo `social-posts.write`. Bez něj dostaneš 422 a nic se neutratí.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: ai.generate."}},"/v1/campaigns/ai-plan":{"post":{"operationId":"campaigns.ai-plan","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":20,"maxLength":5000,"description":"O čem kampaň je, od 20 do 5000 znaků."},"overrides":{"type":["object","null"],"properties":{"name":{"type":["string","null"],"maxLength":120},"goal":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoal"},{"type":"null"}]},"audienceWarmth":{"anyOf":[{"$ref":"#/components/schemas/CampaignAudienceWarmth"},{"type":"null"}]},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}]},"goalMetricTarget":{"type":["number","null"],"minimum":0,"maximum":1000000000},"goalMetricLabel":{"type":["string","null"],"maxLength":255},"mode":{"anyOf":[{"$ref":"#/components/schemas/CampaignMode"},{"type":"null"}]},"languageId":{"type":["integer","null"]},"tone":{"type":["string","null"],"maxLength":2000},"brandVoiceId":{"type":["integer","null"]},"articleIntegrationId":{"type":["integer","null"]},"sendFromTenantDomainEmailId":{"type":["integer","null"]},"replyToTenantDomainEmailId":{"type":["integer","null"]},"channels":{"type":["array","null"],"items":{"type":"string","enum":["blog","facebook","instagram","x","linkedin","email_broadcast","email_sequence"]},"maxItems":10,"uniqueItems":true},"destinations":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignDestination"},"uniqueItems":true},"product":{"type":["string","null"],"maxLength":2000},"audience":{"type":["string","null"],"maxLength":2000},"startAt":{"type":["string","null"]},"endsOn":{"type":["string","null"],"format":"date"},"timing":{"type":["object","null"],"properties":{"start":{"type":["string","null"]},"end":{"type":["string","null"],"format":"date"},"inferredDurationDays":{"type":["integer","null"],"minimum":1}}},"askRatio":{"type":["number","null"],"minimum":0,"maximum":0.4},"suggestedCtas":{"type":["array","null"],"items":{"type":"object","properties":{"label":{"type":"string","maxLength":120},"description":{"type":["string","null"],"maxLength":1000}},"required":["label"]},"maxItems":5}},"description":"Tvoje vlastní volby, které přebijí to, co by AI vybrala sama. Přes klíč je povinné overrides.destinations."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["brief"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignAiPlanDispatchOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","ai.generate"]}],"summary":"Naplánuj kampaň pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí naplánuje kampaň z tvého krátkého zadání. Odpověď je 202 s číslem kampaně v konceptu; přečti ji později a uvidíš plán.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: ai.generate."}},"/v1/campaigns/ai-plan/estimate":{"post":{"operationId":"campaigns.ai-plan.estimate","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destinations":{"type":"array","items":{"$ref":"#/components/schemas/CampaignDestination"},"minItems":1,"description":"Místa, kam obsah půjde, například blog_article."},"audienceWarmth":{"anyOf":[{"$ref":"#/components/schemas/CampaignAudienceWarmth"},{"type":"null"}],"description":"Jak lidé znají značku: cold, warm nebo owned. Když chybí, použije se owned."}},"required":["destinations"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignPrePlanEstimateData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Ukaž, kolik stojí plánování kampaně pomocí AI","description":"Tohle jen řekne cenu. Nic neutrácí.\n\nPotřebuje jedno z těchto práv: campaigns.read."}},"/v1/campaigns/{campaign}/ai-plan/retry":{"post":{"operationId":"campaigns.ai-plan-retry","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignAiPlanDispatchOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","ai.generate"]}],"summary":"Naplánuj kampaň pomocí AI znovu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí naplánuje kampaň znovu. Odpověď je 202.\n\nJde to jen u konceptu, který plánovala AI. Plán nevznikl, nebo selhal. Jinak dostaneš 409. Když koncept už má kanály, dostaneš 409. Krok plánu může běžet nebo právě začít. Pak dostaneš 409. Odpověď 409 nestojí žádné kredity.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: ai.generate."}},"/v1/campaigns/{campaign}/ai-adjust":{"post":{"operationId":"campaigns.ai-adjust","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně, která se má upravit."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instruction":{"type":"string","minLength":5,"maxLength":2000,"description":"Co změnit, normálními slovy, od 5 do 2000 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["instruction"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiAdjustResponseData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","ai.generate"]}],"summary":"Úprava kampaně pomocí AI podle pokynu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI upraví kampaň přímo podle tvého pokynu. Přes klíč umí přidat místa pro tvorbu obsahu nebo zdroje, posunout harmonogram, kampaň pozastavit a změnit schvalování. Odpověď vypíše, co se provedlo a co se přeskočilo.\n\nObnovení kampaně a zrušení lidského schvalování potřebují `campaigns.execute`; bez něj se tyhle operace přeskočí a objeví se v odpovědi. V aplikaci umí AI také znovu vytvořit části obsahu; přes klíč se tento krok přeskočí, protože je to zvláštní placený krok.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani, stejně jako u `campaigns.update`: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403 dřív, než se utratí kredity. Místo pro tvorbu nového druhu obsahu potřebuje to oprávnění také; bez něj se operace přeskočí.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: ai.generate."}},"/v1/campaigns/{campaign}/pause":{"post":{"operationId":"campaigns.pause","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně pozastavena","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":120,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"paused","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":"2027-03-01T07:00:00Z","publishedAt":"2027-03-01T07:00:00Z","endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"summary":"Pozastav kampaň","description":"Pozastaví kampaň ve stavu `active`. Fusio pro ni přestane vytvářet nový obsah. Odpověď je kampaň ve stejném tvaru jako `campaigns.show`.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyba: 422, když kampaň neběží.\n\nPotřebuje jedno z těchto práv: campaigns.write."}},"/v1/campaigns/{campaign}/resume":{"post":{"operationId":"campaigns.resume","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně obnovena","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":120,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"active","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":"2027-03-01T07:00:00Z","publishedAt":"2027-03-01T07:00:00Z","endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","campaigns.execute"]}],"x-fusio-opt-in-scopes":["campaigns.execute"],"summary":"Obnov pozastavenou kampaň","description":"Vrátí pozastavenou kampaň (`paused`) zpátky do stavu `active`. Kampaň, kterou Fusio pozastavilo dřív, než vůbec začala, se vrátí do stavu `scheduled`. Obsah naplánovaný na čas, který uplynul během pauzy, se přeskočí.\n\nOdpověď je kampaň ve stejném tvaru jako `campaigns.show`.\n\n> [!WARNING]\n> Fusio pokračuje ve vytváření a zveřejňování obsahu.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 403 `insufficient_scope`, 422, když kampaň není pozastavená.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: campaigns.execute. Tato práva musíš zaškrtnout schválně: campaigns.execute."}},"/v1/campaigns/{campaign}/archive":{"post":{"operationId":"campaigns.archive","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně archivována","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":120,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"archived","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":"2027-03-01T07:00:00Z","publishedAt":"2027-03-01T07:00:00Z","endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"summary":"Archivuj kampaň","description":"Přesune kampaň do stavu `archived`. Natrvalo se zastaví. Když nějaký obsah ještě čeká na schválení, lidé, kteří schvalují, dostanou zprávu. Odpověď je kampaň ve stejném tvaru jako `campaigns.show`.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyba: 422, když už je kampaň archivovaná.\n\nPotřebuje jedno z těchto práv: campaigns.write."}},"/v1/campaigns/{campaign}/duplicate":{"post":{"operationId":"campaigns.duplicate","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně, kterou kopíruješ."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string","format":"date","description":"Den, kdy nová kampaň začne, ve tvaru RRRR-MM-DD. Nesmí být dřív než dnes v časovém pásmu původní kampaně ani víc než 5 let dopředu."}},"required":["startDate"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň je zkopírovaná jako nový koncept","payload":{"id":59,"tenantId":412,"tenantSequence":7,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027 (kopie)","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":0,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"draft","createdAt":"2026-11-19T09:00:00Z","updatedAt":"2026-11-19T09:00:00Z","deletedAt":null,"startAt":"2027-06-01T07:00:00Z","endsOn":"2027-06-30","startedAt":null,"publishedAt":null,"endedAt":null,"brandVoice":null,"sources":[{"id":121,"tenantId":412,"campaignId":59,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]},"derivedFromCampaignId":58}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"summary":"Zkopíruj kampaň","description":"Zkopíruje kampaň do nového konceptu, který začne v den `startDate`. Kopie si nechá cíl, kanály, plány tvorby obsahu, publikum, nastavení a pravidla schvalování. Všechna data se posunou o rozdíl mezi `startDate` a začátkem původní kampaně.\n\nObsah, publikace, metriky, výsledky A/B testů a formuláře se nekopírují a schvalovatelé, kteří z firmy odešli, se vynechají. Kopie kampaně naplánované s AI je běžný koncept, protože samotný plán se nekopíruje. Nová kampaň si drží odkaz na původní v `derivedFromCampaignId`. Odpověď je nová kampaň ve stejném tvaru jako `campaigns.show` a se stavem 201.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 422, když chybí `startDate`, není to datum ve tvaru 2026-10-20, je v minulosti nebo víc než 5 let dopředu, když čas začátku v dnešní den už minul, nebo když původní kampaň nemá datum začátku.\n\nPotřebuje jedno z těchto práv: campaigns.write."}},"/v1/campaigns/{campaign}/activate":{"post":{"operationId":"campaigns.activate","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně aktivována","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":120,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"active","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":"2027-03-01T07:00:00Z","publishedAt":"2027-03-01T07:00:00Z","endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","campaigns.execute"]}],"x-fusio-opt-in-scopes":["campaigns.execute"],"summary":"Spusť kampaň","description":"Spustí kampaň ve stavu `draft` nebo `scheduled`. Fusio nejdřív zkontroluje, že je kampaň připravená. Když není, odpověď je 422 se seznamem problémů v `payload.issues`.\n\nOdpověď je kampaň ve stejném tvaru jako `campaigns.show`.\n\n> [!WARNING]\n> Od teď Fusio vytváří a zveřejňuje obsah tak, jak kampaň říká.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 403 `insufficient_scope`, 422, když kampaň není připravená nebo není ve stavu, který jde spustit.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: campaigns.execute. Tato práva musíš zaškrtnout schválně: campaigns.execute."}},"/v1/campaigns/{campaign}/approve":{"post":{"operationId":"campaigns.approve","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CampaignApproveResultData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write","campaigns.execute"]}],"x-fusio-opt-in-scopes":["campaigns.execute"],"summary":"Schval kampaň a její obsah","description":"Schválí všechen obsah kampaně, který čeká na schválení, a přesune kampaň z `draft` do `approved`. Jde to jen u kampaně ve stavu `draft`; jinak se nic nezmění. Musíš být jeden z lidí, kteří smí schvalovat.\n\n> [!WARNING]\n> Schválený obsah se může zveřejnit bez další kontroly.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 403 `insufficient_scope` nebo když schvalovat nesmíš, 422, když kampaň není `draft`.\n\nPotřebuje jedno z těchto práv: campaigns.write. Potřebuje taky: campaigns.execute. Tato práva musíš zaškrtnout schválně: campaigns.execute."}},"/v1/campaigns":{"post":{"operationId":"campaigns.store","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kampaně, nejvýš 255 znaků."},"description":{"type":["string","null"],"description":"Krátká poznámka o kampani pro tvůj tým."},"origin":{"anyOf":[{"$ref":"#/components/schemas/CampaignOrigin"},{"type":"null"}],"description":"Odkud kampaň pochází. Když ho vynecháš, je to kampaň, kterou děláš sám."},"mode":{"$ref":"#/components/schemas/CampaignMode","description":"burst běží mezi dvěma daty a potřebuje endsOn. evergreen běží bez konce. nurture provází lidi v čase."},"audienceWarmth":{"anyOf":[{"$ref":"#/components/schemas/CampaignAudienceWarmth"},{"type":"null"}],"description":"Jak dobře tě lidé znají: cold, warm nebo owned (tvoje vlastní kontakty)."},"autonomyLevel":{"$ref":"#/components/schemas/CampaignAutonomyLevel","description":"Kolik Fusio udělá samo: l0_manual nic, l1_approval připraví obsah, který schválíš, l2_auto_publish zveřejňuje bez tebe, l3_autopilot řídí celou kampaň."},"goal":{"$ref":"#/components/schemas/CampaignGoal","description":"K čemu kampaň je: awareness, traffic, leads, sales, retention nebo custom."},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}],"description":"Hlavní číslo, které sleduješ, třeba leads nebo revenue."},"goalMetricTarget":{"type":["number","null"],"description":"Kolik z toho čísla chceš dosáhnout."},"goalMetricLabel":{"type":["string","null"],"maxLength":255,"description":"Tvůj vlastní název čísla, nejvýš 255 znaků."},"brief":{"type":["string","null"],"description":"O čem kampaň je, tvými slovy. Fusio z toho píše obsah."},"brandVoiceId":{"type":["integer","null"],"description":"Číslo hlasu značky, kterým obsah mluví."},"languageId":{"type":["integer","null"],"description":"Číslo jazyka obsahu."},"approvalWindowHours":{"type":["integer","null"],"minimum":1,"maximum":72,"description":"Kolik hodin máš na schválení nového obsahu, 1 až 72."},"approvalTimeoutAction":{"anyOf":[{"$ref":"#/components/schemas/CampaignApprovalTimeoutAction"},{"type":"null"}],"description":"Co se stane, když nikdo neschválí včas: skip obsah zahodí, publish ho zveřejní."},"generationBudgetCredits":{"type":["integer","null"],"minimum":0,"description":"Kolik kreditů smí Fusio nejvýš utratit za psaní obsahu, 0 nebo víc."},"similarityCheckEnabled":{"type":["boolean","null"],"description":"true, když se má hlídat, aby nový obsah nebyl moc podobný staršímu."},"similarityThreshold":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Jak moc podobný smí obsah být, od 0 do 1. Vyšší číslo dovolí podobnější obsah."},"similarityAction":{"anyOf":[{"$ref":"#/components/schemas/CampaignSimilarityAction"},{"type":"null"}],"description":"Co dělat s moc podobným obsahem: skip ho zahodí, require_approval se tě zeptá."},"similarityWindowDays":{"type":["integer","null"],"minimum":1,"description":"Kolik dní zpátky se porovnává, 1 nebo víc."},"timezone":{"type":"string","maxLength":64,"description":"Časové pásmo kampaně, třeba Europe/Prague."},"startAt":{"type":"string","description":"Kdy kampaň začne: datum a čas s časovým pásmem, třeba 2026-12-01T09:00:00+01:00."},"endsOn":{"type":["string","null"],"format":"date","description":"Poslední den ve tvaru YYYY-MM-DD. Nesmí být před začátkem."},"status":{"anyOf":[{"$ref":"#/components/schemas/CampaignStatus"},{"type":"null"}],"description":"Tady se nepoužije: nová kampaň vždy začne jako draft."},"askRatio":{"type":["number","null"],"minimum":0,"maximum":0.4,"description":"Jak velká část obsahu vyzývá lidi k akci, od 0 do 0.4. Když ho vynecháš, použije se výchozí poměr."},"slots":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/CampaignDestination","description":"Kam obsah půjde, třeba blog_article nebo sociální síť. Musí sedět k audienceWarmth: studené publikum nedostane email_broadcast ani email_sequence."},"recurrenceRule":{"type":["string","null"],"maxLength":500,"description":"Jak často přijde nový obsah, jako pravidlo opakování (RRULE), nejvýš 500 znaků."},"angle":{"anyOf":[{"$ref":"#/components/schemas/CampaignAngle"},{"type":"null"}],"description":"Druh pohledu, který obsah má."},"buyerStage":{"anyOf":[{"$ref":"#/components/schemas/CampaignBuyerStage"},{"type":"null"}],"description":"Pro který krok nákupu obsah je, třeba awareness nebo decision."},"preferredFormat":{"anyOf":[{"$ref":"#/components/schemas/CampaignAssetFormat"},{"type":"null"}],"description":"Forma, kterou máš nejradši, třeba karusel."},"itemsPerGeneration":{"type":["integer","null"],"minimum":1,"description":"Kolik kusů Fusio udělá pokaždé, 1 nebo víc."},"copyFramework":{"anyOf":[{"$ref":"#/components/schemas/CampaignCopyFramework"},{"type":"null"}],"description":"Způsob, jak je text postavený, třeba AIDA nebo PAS."},"painToAddress":{"type":["string","null"],"maxLength":300,"description":"Problém tvých čtenářů, o kterém obsah mluví, nejvýš 300 znaků."},"proofToCite":{"type":["string","null"],"maxLength":300,"description":"Důkaz, který obsah ukáže, třeba číslo nebo výsledek, nejvýš 300 znaků."},"sources":{"type":"array","items":{"type":"object","properties":{"sourceIndex":{"type":"integer","minimum":0,"description":"Místo podkladu v seznamu sources, od 0."},"sortOrder":{"type":["integer","null"],"minimum":0,"description":"Pořadí podkladu v tomhle slotu, od 0."}},"required":["sourceIndex"]},"minItems":1,"description":"Které podklady slot používá, aspoň jeden."}}},"description":"Co Fusio vytváří a jak často: jeden slot pro každý druh obsahu."},"customerIds":{"type":["array","null"],"items":{"type":"integer"},"description":"Čísla zákazníků, o kterých kampaň je."},"sources":{"type":"array","items":{"type":"object","properties":{"sourceType":{"type":"string","enum":["brief","url_list","knowledge_base","topic_ref","topic_feed_ref","article_ref"],"description":"brief je tvůj vlastní text, url_list webové stránky, knowledge_base tvoje dokumenty, topic_ref téma, topic_feed_ref zdroj tématu. article_ref použije články téhle kampaně, pro příspěvky a e-maily, a žádné další podklady nebere."},"name":{"type":"string","maxLength":120,"description":"Název podkladu, nejvýš 120 znaků."},"seedAngles":{"type":["array","null"],"items":{"type":"string","maxLength":500},"maxItems":15,"description":"Nápady, o čem psát, nejvýš 15, každý do 500 znaků."},"angleType":{"anyOf":[{"$ref":"#/components/schemas/CampaignAngle"},{"type":"null"}],"description":"Druh pohledu, který obsah má, třeba educational nebo case_study."},"brief":{"type":["object","null"],"properties":{"text":{"type":["string","null"],"minLength":80,"maxLength":20000,"description":"Text, 80 až 20000 znaků."}},"description":"Tvůj vlastní text, pro sourceType brief."},"urls":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":2048},"maxItems":100,"description":"Webové adresy, pro url_list. Nejvýš 100, každá do 2048 znaků."},"documentFileIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":50,"description":"Čísla tvých dokumentů, pro knowledge_base. Nejvýš 50."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, pro topic_ref."},"topicFeedId":{"type":["integer","null"],"description":"Číslo zdroje tématu, pro topic_feed_ref."},"topicPickMode":{"type":["string","null"],"enum":["latest_relevant","newest_unused",null],"description":"Jak vybírat novinky: latest_relevant vezme nejlepší čerstvé, newest_unused nejnovější ještě nepoužité."},"topicPickWindowSize":{"type":["integer","null"],"minimum":1,"maximum":50,"description":"Z kolika nejnovějších položek vybírat, 1 až 50."}},"required":["sourceType"]},"description":"Podklady, ze kterých Fusio píše. Sloty na ně ukazují podle místa v seznamu, od 0."},"trackingEventIds":{"type":"array","items":{"type":"integer"},"description":"Čísla tvých sledovaných událostí, které kampaň používá."},"events":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"description":"Název události, nejvýš 100 znaků. Musí být nový."},"description":{"type":["string","null"],"description":"Co událost znamená."},"isActive":{"type":"boolean","description":"false, když má Fusio událost zatím přehlížet."},"createsLead":{"type":"boolean","description":"true, když událost vytvoří nový lead."},"fields":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]+$","maxLength":60,"description":"Klíč hodnoty: malá písmena, čísla a _, začíná písmenem, nejvýš 60 znaků."},"label":{"type":"string","maxLength":120,"description":"Název, který lidé vidí, nejvýš 120 znaků."},"type":{"$ref":"#/components/schemas/TenantTrackingEventFieldType","description":"Druh hodnoty: string, number, boolean, enum nebo date."},"isRequired":{"type":"boolean","description":"true, když událost musí tuhle hodnotu nést."},"sortOrder":{"type":"integer","minimum":0,"description":"Pořadí hodnoty."},"enumOptions":{"type":["array","null"],"items":{"type":"object","properties":{"value":{"type":"string","maxLength":191,"description":"Uložená hodnota, nejvýš 191 znaků."},"label":{"type":"string","maxLength":191,"description":"Název, který lidé vidí, nejvýš 191 znaků."}},"required":["value","label"]},"description":"Povolené volby, pro hodnotu s výběrem."},"bindings":{"type":["array","null"],"items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/TrackingEventFieldBindingKind","description":"none nic neuloží. native vyplní pole leadu nebo kontaktu. custom vyplní vlastní pole. create_custom založí nové vlastní pole."},"entity":{"type":"string","enum":["lead","contact"],"description":"Kam hodnota půjde: lead nebo contact."},"attribute":{"type":["string","null"],"maxLength":191,"description":"Pole, které se vyplní, pro kind native, třeba email."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, pro kind custom."},"isMatchKey":{"type":"boolean","description":"true, když se má podle téhle hodnoty najít existující lead nebo kontakt."}},"required":["entity"]},"description":"Kam Fusio hodnotu uloží."}},"required":["key","label","type"]},"description":"Hodnoty, které událost nese."}}},"description":"Nové sledované události, které vzniknou s kampaní. Formuláře na ně ukazují podle místa, od 0."},"leadForms":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"description":"Název formuláře, nejvýš 120 znaků."},"description":{"type":["string","null"],"maxLength":1000,"description":"Text nad formulářem, nejvýš 1000 znaků."},"successMessage":{"type":["string","null"],"maxLength":500,"description":"Co lidé uvidí po odeslání formuláře, nejvýš 500 znaků."},"successRedirectUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Stránka, na kterou lidé po odeslání formuláře přejdou."},"confirmationEmailTemplateId":{"type":["integer","null"],"description":"Vzhled e-mailu s poděkováním."},"isActive":{"type":"boolean","description":"false formulář vypne."},"tagIds":{"type":["array","null"],"items":{"type":"integer","minimum":1},"maxItems":500,"description":"Štítky, které nové leady dostanou, nejvýš 500."},"segmentIds":{"type":["array","null"],"items":{"type":"integer","minimum":1},"maxItems":500,"description":"Segmenty, do kterých se nové leady přidají, nejvýš 500."},"assigneeUserIds":{"type":["array","null"],"items":{"type":"integer"},"description":"Lidé, kteří dostanou nové leady."},"additionalAssigneeUserIds":{"type":["array","null"],"items":{"type":"integer"},"description":"Další lidé, kteří na nových leadech taky pracují."},"eventIndex":{"type":["integer","null"],"minimum":0,"description":"Místo nové události v seznamu events, od 0. Formulář tu událost pošle. Pošli eventIndex, nebo tenantTrackingEventId, právě jedno."},"tenantTrackingEventId":{"type":["integer","null"],"description":"Číslo jedné z tvých sledovaných událostí, kterou formulář pošle. Pošli eventIndex, nebo tenantTrackingEventId, právě jedno."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z_][a-z0-9_]*$","maxLength":60,"description":"Klíč pole: malá písmena, čísla a _, nejvýš 60 znaků."},"label":{"type":"string","maxLength":120,"description":"Název, který lidé vidí, nejvýš 120 znaků."},"type":{"type":"string","enum":["text","email","tel","url","textarea","number","select","multi_select","checkbox","hidden"],"description":"Druh pole, třeba text, email nebo select."},"isRequired":{"type":"boolean","description":"true, když ho lidé musí vyplnit."},"isLeadName":{"type":"boolean","description":"true, když tohle pole dá jméno novému leadu."},"sortOrder":{"type":"integer","minimum":0,"description":"Pořadí pole."},"options":{"type":["array","null"],"items":{"type":"string","maxLength":500},"maxItems":100,"description":"Volby pole s výběrem."},"validationRules":{"type":["object","null"],"properties":{"minLength":{"type":["integer","null"],"minimum":0,"description":"Nejmenší počet znaků."},"maxLength":{"type":["integer","null"],"minimum":0,"description":"Největší počet znaků."},"pattern":{"type":["string","null"],"maxLength":500,"description":"Vzor (regulární výraz), kterému musí hodnota odpovídat."},"min":{"type":["integer","null"],"description":"Nejmenší číslo."},"max":{"type":["integer","null"],"description":"Největší číslo."}},"description":"Další kontroly hodnoty."},"bindings":{"type":["array","null"],"items":{},"maxItems":4,"description":"Kam Fusio hodnotu uloží: kind, entity, attribute, customFieldId a isMatchKey, jako u polí událostí. Nejvýš 4."}},"required":["name","label","type"]},"minItems":1,"maxItems":100,"description":"Pole formuláře, aspoň 1 a nejvýš 100."}}},"description":"Nové formuláře pro leady, které vzniknou s kampaní. Výzvy k akci na ně ukazují podle místa, od 0."},"ctas":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":120,"description":"Text tlačítka nebo odkazu, nejvýš 120 znaků."},"description":{"type":["string","null"],"maxLength":1000,"description":"Víc o nabídce, nejvýš 1000 znaků."},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Stránka, kterou výzva otevře. Pošli destinationUrl, nebo leadFormIndex, právě jedno."},"leadFormIndex":{"type":["integer","null"],"minimum":0,"description":"Místo nového formuláře v seznamu leadForms, od 0. Pošli destinationUrl, nebo leadFormIndex, právě jedno."},"isPrimary":{"type":"boolean","description":"true pro hlavní výzvu k akci."},"offerRole":{"anyOf":[{"$ref":"#/components/schemas/CampaignCtaOfferRole"},{"type":"null"}],"description":"Role nabídky: attraction, upsell, downsell nebo continuity."}}},"description":"Výzvy k akci: co obsah lidi žádá udělat."},"conversionActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo jedné z tvých konverzních akcí."},"countsTowardGoal":{"type":"boolean","description":"true, když se tahle akce počítá do cíle."}},"required":["id","countsTowardGoal"]},"uniqueItems":true,"description":"Konverzní akce, které kampaň sleduje, nejvýš 20. Seznam nahradí ten starý."},"goalTargets":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and: musí se splnit každý cíl. or: stačí jeden."},"targets":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí cíle, od 0."},"metric":{"$ref":"#/components/schemas/CampaignGoalTargetMetric","description":"Co se počítá, třeba reach, visits nebo money. conversion_action počítá jednu konverzní akci."},"conversionActionId":{"type":["integer","null"],"description":"Číslo konverzní akce. Jen a vždy s metric conversion_action. Musí být jedna z conversionActions."},"operator":{"$ref":"#/components/schemas/CampaignGoalTargetOperator","description":"gte: aspoň tolik. lte: nejvýš tolik."},"value":{"type":"number","maximum":1000000000000000000,"description":"Číslo, kterého se má dosáhnout, 0 nebo víc. S gte musí být víc než 0."}},"required":["position","metric","operator","value"]},"description":"Cíle na nejvyšší úrovni."},"groups":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí skupiny, od 0."},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and nebo or, pro cíle v téhle skupině."},"targets":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí cíle, od 0."},"metric":{"$ref":"#/components/schemas/CampaignGoalTargetMetric","description":"Co se počítá, třeba reach, visits nebo money. conversion_action počítá jednu konverzní akci."},"conversionActionId":{"type":["integer","null"],"description":"Číslo konverzní akce. Jen a vždy s metric conversion_action. Musí být jedna z conversionActions."},"operator":{"$ref":"#/components/schemas/CampaignGoalTargetOperator","description":"gte: aspoň tolik. lte: nejvýš tolik."},"value":{"type":"number","maximum":1000000000000000000,"description":"Číslo, kterého se má dosáhnout, 0 nebo víc. S gte musí být víc než 0."}},"required":["position","metric","operator","value"]},"description":"Cíle skupiny, aspoň jeden."}},"required":["position","operator","targets"]},"description":"Skupiny cílů. Skupina nemůže mít další skupiny."}},"description":"Čísla, která znamenají, že kampaň splnila cíl. Nejvýš 20 cílů celkem."}},"required":["name","mode","autonomyLevel","goal","timezone","startAt"]},"example":{"name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":40,"languageId":2,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"timezone":"Europe/Prague","startAt":"2027-03-01T08:00:00+01:00","endsOn":"2027-04-30","sources":[{"sourceType":"brief","name":"Zadání","brief":{"text":"Jaro začíná, kola potřebují servis."}}],"slots":[{"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","itemsPerGeneration":1,"sources":[{"sourceIndex":0}]}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně vytvořena","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":0,"softAsk":0,"ask":0},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":0,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"draft","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":null,"publishedAt":null,"endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"summary":"Vytvoř kampaň","description":"Vytvoří kampaň se vším v jednom požadavku: podklady, sloty, sledovanými událostmi, formuláři a výzvami k akci. Nová kampaň je vždy `draft`; nic nedělá, dokud ji nespustíš.\n\nPoložky na sebe ukazují podle místa v seznamu, od 0: slot na podklad, formulář na událost, výzva k akci na formulář.\n\nKampaň `evergreen` nemá `endsOn`. Kampaň z autopilota nemůže použít `autonomyLevel` l0_manual a smí použít jen místa zveřejnění svého původu.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 422, když je pole špatně, místo zveřejnění nesedí k publiku nebo místo v seznamu na nic neukazuje.\n\nPotřebuje jedno z těchto práv: campaigns.write."}},"/v1/campaigns/{campaign}":{"get":{"operationId":"campaigns.show","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaň úspěšně načtena","payload":{"id":58,"tenantId":412,"tenantSequence":6,"tenantName":"Cyklo Novák s.r.o.","userId":88,"timezone":"Europe/Prague","name":"Jarní servis 2027","description":"Pozvi zákazníky na jarní servis kol.","origin":"manual","mode":"burst","audienceWarmth":"warm","autonomyLevel":"l1_approval","goal":"leads","goalMetricType":"leads","goalMetricTarget":"40.00","goalMetricLabel":null,"askRatio":null,"effectiveAskRatio":0.3,"contentMix":{"give":3,"softAsk":2,"ask":1},"brief":"Jaro začíná, kola potřebují servis.","aiPlan":null,"aiPlanGenerationStage":null,"aiPlanFailureMessage":null,"aiPlanStepOutputs":[],"brandVoiceId":null,"approvalWindowHours":24,"approvalTimeoutAction":"skip","generationBudgetCredits":500,"generationSpentCredits":120,"similarityCheckEnabled":true,"similarityThreshold":"0.850","similarityAction":"require_approval","similarityWindowDays":30,"status":"active","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","deletedAt":null,"startAt":"2027-03-01T07:00:00Z","endsOn":"2027-04-30","startedAt":"2027-03-01T07:00:00Z","publishedAt":"2027-03-01T07:00:00Z","endedAt":null,"brandVoice":null,"sources":[{"id":120,"tenantId":412,"campaignId":58,"sourceType":"brief","name":"Zadání","brief":null,"seedAngles":[],"angleType":null,"nicheTopic":null,"feedUrl":null,"pollingIntervalMinutes":null,"topicId":null,"topicFeedId":null,"topicPickMode":null,"topicPickWindowSize":null,"lastPolledAt":null,"lastItemHash":null,"keywords":[],"urls":[],"documents":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}],"generationSlots":[{"id":301,"tenantId":412,"campaignId":58,"destination":"facebook_post","recurrenceRule":"FREQ=WEEKLY;BYDAY=TU","oneOffAt":null,"startOffsetDays":0,"sourceSelectionStrategy":"newest","itemsPerGeneration":1,"active":true,"angle":"educational","buyerStage":"consideration","preferredFormat":"single_post","lastGeneratedAt":null,"nextScheduledAt":null,"sources":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","remainingBlueprints":0,"usedBlueprints":0,"depletionRatio":0,"exhaustedAt":null,"estimatedDryAt":null,"publishingOffAngle":false,"blueprintConsumptionMode":"mix"}],"alerts":[],"destinationsCount":1,"destinations":[],"ctas":[],"leadForms":[],"linkedTrackingEvents":[],"publication":null,"languageId":2,"language":null,"conversionActions":[],"goalTargets":{"operator":"and","targets":[],"groups":[]}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.read"]}],"summary":"Ukaž jednu kampaň","description":"Vrátí kampaň s podklady, sloty, místy zveřejnění, výzvami k akci, formuláři, sledovanými událostmi a cílem.\n\nPotřebuje jedno z těchto práv: campaigns.read."},"put":{"operationId":"campaigns.update","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kampaně, nejvýš 255 znaků."},"description":{"type":["string","null"],"description":"Krátká poznámka o kampani pro tvůj tým."},"mode":{"$ref":"#/components/schemas/CampaignMode","description":"burst běží mezi dvěma daty a potřebuje endsOn. evergreen běží bez konce. nurture provází lidi v čase."},"autonomyLevel":{"$ref":"#/components/schemas/CampaignAutonomyLevel","description":"Kolik Fusio udělá samo: l0_manual nic, l1_approval připraví obsah, který schválíš, l2_auto_publish zveřejňuje bez tebe, l3_autopilot řídí celou kampaň."},"goal":{"$ref":"#/components/schemas/CampaignGoal","description":"K čemu kampaň je: awareness, traffic, leads, sales, retention nebo custom."},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}],"description":"Hlavní číslo, které sleduješ, třeba leads nebo revenue."},"goalMetricTarget":{"type":["number","null"],"description":"Kolik z toho čísla chceš dosáhnout."},"goalMetricLabel":{"type":["string","null"],"maxLength":255,"description":"Tvůj vlastní název čísla, nejvýš 255 znaků."},"askRatio":{"type":["number","null"],"minimum":0,"maximum":0.4,"description":"Jak velká část obsahu vyzývá lidi k akci, od 0 do 0.4. Když ho vynecháš, použije se výchozí poměr."},"brief":{"type":["string","null"],"description":"O čem kampaň je, tvými slovy. Fusio z toho píše obsah."},"brandVoiceId":{"type":["integer","null"],"description":"Číslo hlasu značky, kterým obsah mluví."},"approvalWindowHours":{"type":["integer","null"],"minimum":1,"maximum":72,"description":"Kolik hodin máš na schválení nového obsahu, 1 až 72."},"approvalTimeoutAction":{"anyOf":[{"$ref":"#/components/schemas/CampaignApprovalTimeoutAction"},{"type":"null"}],"description":"Co se stane, když nikdo neschválí včas: skip obsah zahodí, publish ho zveřejní."},"generationBudgetCredits":{"type":["integer","null"],"minimum":0,"description":"Kolik kreditů smí Fusio nejvýš utratit za psaní obsahu, 0 nebo víc."},"similarityCheckEnabled":{"type":["boolean","null"],"description":"true, když se má hlídat, aby nový obsah nebyl moc podobný staršímu."},"similarityThreshold":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Jak moc podobný smí obsah být, od 0 do 1. Vyšší číslo dovolí podobnější obsah."},"similarityAction":{"anyOf":[{"$ref":"#/components/schemas/CampaignSimilarityAction"},{"type":"null"}],"description":"Co dělat s moc podobným obsahem: skip ho zahodí, require_approval se tě zeptá."},"similarityWindowDays":{"type":["integer","null"],"minimum":1,"description":"Kolik dní zpátky se porovnává, 1 nebo víc."},"timezone":{"type":"string","maxLength":64,"description":"Časové pásmo kampaně, třeba Europe/Prague."},"startAt":{"type":"string","description":"Kdy kampaň začne: datum a čas s časovým pásmem. Změnit ho jde, jen dokud je kampaň draft nebo approved."},"endsOn":{"type":["string","null"],"format":"date","description":"Poslední den ve tvaru YYYY-MM-DD. Nesmí být před začátkem."},"status":{"anyOf":[{"$ref":"#/components/schemas/CampaignStatus"},{"type":"null"}],"description":"Nový stav. approved, scheduled, active a completed potřebují campaigns.execute; když to jde, použij raději activate."},"destinations":{"type":"array","items":{"$ref":"#/components/schemas/CampaignDestination"},"description":"Kam kampaň zveřejňuje, třeba blog_article nebo linkedin_post. Seznam nahradí ten starý."},"conversionActions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo jedné z tvých konverzních akcí."},"countsTowardGoal":{"type":"boolean","description":"true, když se tahle akce počítá do cíle."}},"required":["id","countsTowardGoal"]},"uniqueItems":true,"description":"Konverzní akce, které kampaň sleduje, nejvýš 20. Seznam nahradí ten starý."},"goalTargets":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and: musí se splnit každý cíl. or: stačí jeden."},"targets":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí cíle, od 0."},"metric":{"$ref":"#/components/schemas/CampaignGoalTargetMetric","description":"Co se počítá, třeba reach, visits nebo money. conversion_action počítá jednu konverzní akci."},"conversionActionId":{"type":["integer","null"],"description":"Číslo konverzní akce. Jen a vždy s metric conversion_action."},"operator":{"$ref":"#/components/schemas/CampaignGoalTargetOperator","description":"gte: aspoň tolik. lte: nejvýš tolik."},"value":{"type":"number","maximum":1000000000000000000,"description":"Číslo, kterého se má dosáhnout, 0 nebo víc."}},"required":["position","metric","operator","value"]},"description":"Cíle na nejvyšší úrovni."},"groups":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí skupiny, od 0."},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and nebo or, pro cíle v téhle skupině."},"targets":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí cíle, od 0."},"metric":{"$ref":"#/components/schemas/CampaignGoalTargetMetric","description":"Co se počítá, třeba reach, visits nebo money. conversion_action počítá jednu konverzní akci."},"conversionActionId":{"type":["integer","null"],"description":"Číslo konverzní akce. Jen a vždy s metric conversion_action."},"operator":{"$ref":"#/components/schemas/CampaignGoalTargetOperator","description":"gte: aspoň tolik. lte: nejvýš tolik."},"value":{"type":"number","maximum":1000000000000000000,"description":"Číslo, kterého se má dosáhnout, 0 nebo víc."}},"required":["position","metric","operator","value"]},"description":"Cíle skupiny, aspoň jeden."}},"required":["position","operator","targets"]},"description":"Skupiny cílů. Skupina nemůže mít další skupiny."}},"description":"Čísla, která znamenají, že kampaň splnila cíl. Nejvýš 20 cílů celkem."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"x-fusio-conditional-scopes":["campaigns.execute"],"x-fusio-opt-in-scopes":["campaigns.execute"],"summary":"Změň kampaň","description":"Změní jen pole, která pošleš.\n\nZměna, která kampani dovolí jednat bez člověka, potřebuje `campaigns.execute`: stav approved, scheduled, active nebo completed, `approvalTimeoutAction` publish, `autonomyLevel` l2_auto_publish nebo l3_autopilot nebo nové místo zveřejnění u kampaně, která už běží.\n\n> [!WARNING]\n> Po takové změně může Fusio zveřejňovat obsah, aniž by se tě ptalo.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nChyby: 403 `insufficient_scope` bez `campaigns.execute`, 422, když je pole špatně, když pošleš `startAt` a kampaň už není draft ani approved, nebo když pošleš `brief`, zatímco Fusio ještě dělá plán AI.\n\nPotřebuje jedno z těchto práv: campaigns.write. Některé hodnoty potřebují ještě: campaigns.execute. Tato práva musíš zaškrtnout schválně: campaigns.execute."},"delete":{"operationId":"campaigns.destroy","tags":["campaigns"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["campaigns.write"]}],"summary":"Smaž kampaň","description":"Přesune kampaň do koše.\n\nKlíč potřebuje i oprávnění k zápisu pro každý druh obsahu v kampani: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. Bez něj dostaneš 403.\n\nPotřebuje jedno z těchto práv: campaigns.write."}},"/v1/competitors/grid":{"get":{"operationId":"competitors.grid","tags":["competitors"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[websiteUrl]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část webové adresy."},{"name":"filter[competitorType]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh soupeře. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[analyzedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy proběhla kontrola. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","competitorType","websiteUrl","analyzedAt","createdAt","-name","-competitorType","-websiteUrl","-analyzedAt","-createdAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexTenantCompetitorData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš konkurenty v tabulce","description":"Vrátí tvoje konkurenty po stránkách, připravené pro tabulku. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/competitors":{"post":{"operationId":"competitors.store","tags":["competitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název konkurenta, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Vynech ho pro hlavní produkt."},"websiteUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa konkurenta, nejvýš 255 znaků."},"logoUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa jeho loga, nejvýš 255 znaků."},"competitorType":{"anyOf":[{"$ref":"#/components/schemas/TenantCompetitorType"},{"type":"null"}],"description":"direct (prodává to samé stejným lidem), secondary, indirect (řeší stejný problém jinak) nebo aspirational (firma, ke které vzhlížíš)."},"tagline":{"type":["string","null"],"maxLength":5000,"description":"Jeho slogan. Nejvýš 5000 znaků."},"valueProposition":{"type":["string","null"],"maxLength":5000,"description":"Co slibuje zákazníkům. Nejvýš 5000 znaků."},"positioningAngle":{"type":["string","null"],"maxLength":5000,"description":"Jak chce, aby ho lidé viděli. Nejvýš 5000 znaků."},"targetAudienceSummary":{"type":["string","null"],"maxLength":5000,"description":"Komu prodává. Nejvýš 5000 znaků."},"hasFreeTrial":{"type":["boolean","null"],"description":"true, když nabízí zkoušku zdarma."},"freeTrialSummary":{"type":["string","null"],"maxLength":5000,"description":"Co dává jeho zkouška zdarma. Nejvýš 5000 znaků."},"theirAdvantageOverUs":{"type":["string","null"],"maxLength":5000,"description":"V čem je lepší než ty. Nejvýš 5000 znaků."},"ourAdvantageOverThem":{"type":["string","null"],"maxLength":5000,"description":"V čem jsi lepší ty. Nejvýš 5000 znaků."},"opportunities":{"type":["string","null"],"maxLength":5000,"description":"Příležitosti, které ti nechává. Nejvýš 5000 znaků."},"threats":{"type":["string","null"],"maxLength":5000,"description":"Rizika, která pro tebe přináší. Nejvýš 5000 znaků."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Vynech ho, když to píšeš sám."},"industriesServed":{"type":["array","null"],"items":{"type":"string"},"maxItems":10,"uniqueItems":true,"description":"Kódy oborů (CZ-NACE) firem, kterým prodává, třeba 47, nejvýš 10, každý jednou."},"strengths":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho silné stránky, nejvýš 50. Každá položka nejvýš 255 znaků."},"weaknesses":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho slabé stránky, nejvýš 50. Každá položka nejvýš 255 znaků."},"messagingThemes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: témata, o kterých mluví, nejvýš 50. Každá položka nejvýš 255 znaků."},"notableDifferentiators":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: věci, kterými se liší, nejvýš 50. Každá položka nejvýš 255 znaků."},"caseStudyThemes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: témata jeho příběhů zákazníků, nejvýš 50. Každá položka nejvýš 255 znaků."},"namedCustomers":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho známí zákazníci, nejvýš 50. Každá položka nejvýš 255 znaků."}},"required":["name"]},"example":{"name":"Kola Horák","websiteUrl":"https://www.example.cz","competitorType":"direct","tagline":"Kola pro celou rodinu","valueProposition":"Velký výběr dětských kol a půjčovna.","theirAdvantageOverUs":"Větší prodejna a půjčovna kol.","ourAdvantageOverThem":"Rychlejší servis a odvoz kola zdarma.","strengths":["Velký výběr","Půjčovna"],"weaknesses":["Dlouhé čekání na servis"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCompetitorData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Konkurent úspěšně vytvořen","payload":{"id":77,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Kola Horák","websiteUrl":"https://www.example.cz","logoUrl":null,"competitorType":"direct","tagline":"Kola pro celou rodinu","valueProposition":"Velký výběr dětských kol a půjčovna.","positioningAngle":null,"targetAudienceSummary":null,"freeTrialSummary":null,"contentStrategySignals":null,"theirAdvantageOverUs":"Větší prodejna a půjčovna kol.","ourAdvantageOverThem":"Rychlejší servis a odvoz kola zdarma.","opportunities":null,"threats":null,"hasFreeTrial":false,"estimatedDomainAuthority":null,"messagingThemes":[],"coreCapabilities":null,"notableDifferentiators":[],"integrations":null,"pricingTiers":null,"namedCustomers":[],"industriesServed":[],"caseStudyThemes":[],"strengths":["Velký výběr","Půjčovna"],"weaknesses":["Dlouhé čekání na servis"],"rawSources":[],"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř konkurenta","description":"Zapíše konkurenta. Potřeba je jen název; vyplň, co víš.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/competitors/{competitor}":{"get":{"operationId":"competitors.show","tags":["competitors"],"parameters":[{"name":"competitor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo konkurenta."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCompetitorData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Konkurent úspěšně načten","payload":{"id":77,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Kola Horák","websiteUrl":"https://www.example.cz","logoUrl":null,"competitorType":"direct","tagline":"Kola pro celou rodinu","valueProposition":"Velký výběr dětských kol a půjčovna.","positioningAngle":null,"targetAudienceSummary":null,"freeTrialSummary":null,"contentStrategySignals":null,"theirAdvantageOverUs":"Větší prodejna a půjčovna kol.","ourAdvantageOverThem":"Rychlejší servis a odvoz kola zdarma.","opportunities":null,"threats":null,"hasFreeTrial":false,"estimatedDomainAuthority":null,"messagingThemes":[],"coreCapabilities":null,"notableDifferentiators":[],"integrations":null,"pricingTiers":null,"namedCustomers":[],"industriesServed":[],"caseStudyThemes":[],"strengths":["Velký výběr","Půjčovna"],"weaknesses":["Dlouhé čekání na servis"],"rawSources":[],"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž konkurenta","description":"Vrátí všechno, co víš o jednom konkurentovi.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"put":{"operationId":"competitors.update","tags":["competitors"],"parameters":[{"name":"competitor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo konkurenta."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název konkurenta, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Pro hlavní produkt pošli null. Když ho vynecháš, zůstane."},"websiteUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa konkurenta, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"logoUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa jeho loga, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"competitorType":{"anyOf":[{"$ref":"#/components/schemas/TenantCompetitorType"},{"type":"null"}],"description":"direct (prodává to samé stejným lidem), secondary, indirect (řeší stejný problém jinak) nebo aspirational (firma, ke které vzhlížíš). Když ho vynecháš, zůstane."},"tagline":{"type":["string","null"],"maxLength":5000,"description":"Jeho slogan. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"valueProposition":{"type":["string","null"],"maxLength":5000,"description":"Co slibuje zákazníkům. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"positioningAngle":{"type":["string","null"],"maxLength":5000,"description":"Jak chce, aby ho lidé viděli. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"targetAudienceSummary":{"type":["string","null"],"maxLength":5000,"description":"Komu prodává. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"hasFreeTrial":{"type":["boolean","null"],"description":"true, když nabízí zkoušku zdarma. Když ho vynecháš nebo pošleš null, zůstane."},"freeTrialSummary":{"type":["string","null"],"maxLength":5000,"description":"Co dává jeho zkouška zdarma. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"theirAdvantageOverUs":{"type":["string","null"],"maxLength":5000,"description":"V čem je lepší než ty. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"ourAdvantageOverThem":{"type":["string","null"],"maxLength":5000,"description":"V čem jsi lepší ty. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"opportunities":{"type":["string","null"],"maxLength":5000,"description":"Příležitosti, které ti nechává. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"threats":{"type":["string","null"],"maxLength":5000,"description":"Rizika, která pro tebe přináší. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Pošli null, když to píšeš sám. Když ho vynecháš, zůstane."},"industriesServed":{"type":["array","null"],"items":{"type":"string"},"maxItems":10,"uniqueItems":true,"description":"Kódy oborů (CZ-NACE) firem, kterým prodává, třeba 47, nejvýš 10, každý jednou. Když ho vynecháš, zůstane."},"strengths":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho silné stránky, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"weaknesses":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho slabé stránky, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"messagingThemes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: témata, o kterých mluví, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"notableDifferentiators":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: věci, kterými se liší, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"caseStudyThemes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: témata jeho příběhů zákazníků, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"namedCustomers":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":50,"description":"Seznam: jeho známí zákazníci, nejvýš 50. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCompetitorData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň konkurenta","description":"Změní konkurenta. Název pošli vždycky. Ostatní pole, která vynecháš, zůstanou, jak jsou; null je smaže, kromě hasFreeTrial. Seznam, který pošleš, nahradí celý starý seznam.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"competitors.destroy","tags":["competitors"],"parameters":[{"name":"competitor","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo konkurenta."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber konkurenta","description":"Odebere konkurenta.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/contacts/options":{"get":{"operationId":"contacts.options","tags":["contacts"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá ve jméně, e-mailu, telefonu nebo názvu leadu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[availableForLead]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID zájemce: ukáže kontakty bez zájemce nebo s tímto zájemcem. Slovo none ukáže kontakty bez zájemce."},{"name":"filter[hasPhone]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže kontakty s telefonem."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionContactData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Vypiš kontakty pro výběr","description":"Vrátí kontakty jako krátké položky pro výběr, u každé e-mail, telefon a lead. Hodí se, když hledáš kontakt, než ho propojíš s leadem nebo obchodem.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/segments":{"get":{"operationId":"contacts.segments","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateSegmentData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Vypiš segmenty kontaktu","description":"Vrátí segmenty, ve kterých kontakt je.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/tags":{"get":{"operationId":"contacts.tags","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateTagData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Vypiš štítky kontaktu","description":"Vrátí štítky, které kontakt má.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/sync-segments":{"post":{"operationId":"contacts.sync-segments","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."}},"required":["segmentIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"summary":"Nastav segmenty kontaktu","description":"Dá kontakt přesně do těchhle segmentů. Prázdný seznam ho vyřadí ze všech segmentů. Odpověď nemá žádná data.\n\nPotřebuje jedno z těchto práv: contacts.write."}},"/v1/contacts/{contact}/sync-tags":{"post":{"operationId":"contacts.sync-tags","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."}},"required":["tagIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"summary":"Nastav štítky kontaktu","description":"Dá kontaktu přesně tyhle štítky. Prázdný seznam sundá všechny štítky. Odpověď nemá žádná data.\n\nPotřebuje jedno z těchto práv: contacts.write."}},"/v1/contacts/{contact}/custom-fields":{"get":{"operationId":"contacts.custom-fields","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateContactCustomFieldData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Vypiš vlastní pole kontaktu","description":"Vrátí hodnoty tvých vlastních polí u kontaktu, každou i s polem, ke kterému patří.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/sync-custom-fields":{"post":{"operationId":"contacts.sync-custom-fields","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contactCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."}},"required":["contactCustomFields"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"summary":"Nastav vlastní pole kontaktu","description":"Nastaví hodnoty tvých vlastních polí u kontaktu. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde. Odpověď nemá žádná data.\n\nVlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou kontaktů. Pak dostaneš 422 u `contactCustomFields`.\n\nPotřebuje jedno z těchto práv: contacts.write."}},"/v1/contacts/{contact}/analytics":{"get":{"operationId":"contacts.analytics","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ContactAnalyticsOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Analytika kontaktu úspěšně načtena","payload":{"stats":{"totalSent":6,"totalOpens":4,"totalClicks":2,"lastOpenAt":"2026-11-12T13:05:00Z","lastClickAt":"2026-11-12T13:06:00Z","engagementScore":62,"heatStatus":"warm","frequencyRatio":0.67,"respondedCampaigns":1,"totalCampaigns":2},"history":[{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:06:00Z","context":"button","url":"https://www.example.cz/servis","country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":"hlavni-tlacitko","clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"click","source":"email","sourceId":99231},{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:05:00Z","context":null,"url":null,"country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"open","source":"email","sourceId":55410},{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T07:00:00Z","context":null,"url":null,"country":null,"deviceType":null,"leadFormId":null,"leadFormName":null,"submissionId":null,"browser":null,"operatingSystem":null,"locale":null,"referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":"petr.svoboda@example.cz","deliveryStatus":"delivered","deliveredAt":"2026-11-12T07:00:04Z","bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"sent","source":"email","sourceId":30877}]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Ukaž, jak kontakt reaguje na e-maily","description":"Vrátí čísla a historii kontaktu: odeslané, otevřené a prokliknuté e-maily a návštěvy webu. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku kontaktů.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/analytics/history":{"get":{"operationId":"contacts.analytics.history","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."},{"name":"campaign_id","in":"query","schema":{"type":["integer","null"]},"description":"Tady se nepoužívá. Fusio zkontroluje, že kampaň je tvoje, a pak ukáže všechny kampaně."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Kde začíná další stránka. Vezmi ho z next_cursor předchozí stránky."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Kolik událostí má jedna stránka, od 1 do 100. Když ho vynecháš, je jich 20."},{"name":"type","in":"query","schema":{"type":["string","null"],"enum":["click","open","sent","web",null]},"description":"Ukaž jen jeden druh: click, open, sent nebo web."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Text, který se hledá v událostech, nejvýš 255 znaků."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ContactHistoryPageOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Historie kontaktu úspěšně načtena","payload":{"data":[{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:06:00Z","context":"button","url":"https://www.example.cz/servis","country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":"hlavni-tlacitko","clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"click","source":"email","sourceId":99231,"submission":null,"record":null,"cadenceStep":null,"session":null},{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:05:00Z","context":null,"url":null,"country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"open","source":"email","sourceId":55410,"submission":null,"record":null,"cadenceStep":null,"session":null},{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T07:00:00Z","context":null,"url":null,"country":null,"deviceType":null,"leadFormId":null,"leadFormName":null,"submissionId":null,"browser":null,"operatingSystem":null,"locale":null,"referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":"petr.svoboda@example.cz","deliveryStatus":"delivered","deliveredAt":"2026-11-12T07:00:04Z","bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"sent","source":"email","sourceId":30877,"submission":null,"record":null,"cadenceStep":null,"session":null}],"path":"https://api.example.cz/api/v1/contacts/7720/analytics/history","per_page":3,"next_cursor":"eyJkYXRlIjoiMjAyNi0xMS0xMiAwNzowMDowMCIsInNvdXJjZUlkIjozMDg3N30","next_page_url":"https://api.example.cz/api/v1/contacts/7720/analytics/history?per_page=3&cursor=eyJkYXRlIjoiMjAyNi0xMS0xMiAwNzowMDowMCIsInNvdXJjZUlkIjozMDg3N30","prev_cursor":null,"prev_page_url":null,"typeCounts":{"click":2,"open":4,"sent":6,"web":0,"booking":0,"deal":0,"note":0,"task":0,"inquiry":0,"email":0,"form":0,"ad":0}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Vypiš historii kontaktu po stránkách","description":"Vrátí události kontaktu po stránkách, nejnovější první. Pošli `next_cursor` zpátky jako `cursor` a dostaneš další stránku. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku kontaktů.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/analytics/timeseries":{"get":{"operationId":"contacts.analytics.timeseries","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."},{"name":"campaign_id","in":"query","schema":{"type":["integer","null"]},"description":"Tady se nepoužívá. Fusio zkontroluje, že kampaň je tvoje, a pak počítá všechny kampaně."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, třeba 2026-11-01. Když ho vynecháš, začne se před 30 dny."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, třeba 2026-11-30. Když ho vynecháš, je to dnešek."},{"name":"compare_from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Tady se nepoužívá. Když ho pošleš, pošli i compare_to."},{"name":"compare_to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Tady se nepoužívá. Když ho pošleš, pošli i compare_from."},{"name":"locale","in":"query","schema":{"type":["string","null"]},"description":"Tady se nepoužívá. Když ho pošleš, musí to být jazyk Fusia, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ContactTimeSeriesItemOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Časová řada kontaktu úspěšně načtena","payload":[{"date":"2026-10-06","sent":1,"opens":1,"clicks":0},{"date":"2026-10-20","sent":1,"opens":0,"clicks":0},{"date":"2026-11-12","sent":1,"opens":2,"clicks":1}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Spočítej e-maily kontaktu po dnech","description":"Vrátí jednu položku za každý den s odeslanými, otevřenými a prokliknutými e-maily kontaktu. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku kontaktů.\n\nPotřebuje jedno z těchto práv: contacts.read."}},"/v1/contacts/{contact}/campaigns":{"get":{"operationId":"contacts.campaigns","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsCampaignOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaně kontaktu úspěšně načteny","payload":[{"id":52,"name":"Podzimní kontrola kol","mode":"burst","sentAt":"2026-11-12T07:00:00Z"},{"id":47,"name":"Tipy pro firemní flotily","mode":"nurture","sentAt":"2026-10-06T07:00:00Z"}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read","campaigns.read"]}],"summary":"Vypiš kampaně, které kontaktu poslaly e-mail","description":"Vrátí kampaně, které kontaktu poslaly e-mail, nejnovější první. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku kontaktů.\n\nPotřebuje jedno z těchto práv: contacts.read. Potřebuje taky: campaigns.read."}},"/v1/contacts/{contact}/emails":{"get":{"operationId":"contacts.emails","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."},{"name":"limit","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Kolik položek má každá část, od 1 do 100. Když ho vynecháš, je jich 20."},{"name":"sequencesCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Kde začíná další stránka sekvencí. Vezmi ho z nextCursor.sequences."},{"name":"scheduledEmailsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Kde začíná další stránka naplánovaných e-mailů. Vezmi ho z nextCursor.scheduledEmails."},{"name":"draftsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Kde začíná další stránka konceptů. Vezmi ho z nextCursor.drafts."},{"name":"conversationsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Kde začíná další stránka konverzací. Vezmi ho z nextCursor.conversations."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/ContactEmailsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read","emails.read"]}],"summary":"Vypiš osobní e-maily kontaktu","description":"Vrátí osobní e-maily kontaktu ve čtyřech částech: sekvence, naplánované e-maily, koncepty a konverzace. Každá část má svoje stránky. Když chceš víc z jedné části, pošli její hodnotu z `nextCursor` zpátky jako odpovídající cursor.\n\nPotřebuje jedno z těchto práv: contacts.read. Potřebuje taky: emails.read."}},"/v1/contacts":{"post":{"operationId":"contacts.store","tags":["contacts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContactType","description":"company pro pracovní kontakt firmy, personal pro soukromou osobu."},"email":{"type":["string","null"],"format":"email","maxLength":255,"description":"E-mail, nejvýš 255 znaků. Potřebuješ e-mail nebo telefon."},"firstName":{"type":["string","null"],"maxLength":255,"description":"Křestní jméno, nejvýš 255 znaků."},"lastName":{"type":["string","null"],"maxLength":255,"description":"Příjmení, nejvýš 255 znaků."},"name":{"type":["string","null"],"maxLength":255,"description":"Jméno k zobrazení, když ho nedělíš na křestní jméno a příjmení, nejvýš 255 znaků."},"phone":{"type":["string","null"],"pattern":"^(?:\\+|00)?[0-9][0-9 ().-]*$","maxLength":20,"description":"Telefonní číslo, třeba +420 601 234 567. Číslo bez předvolby se bere jako české. Nejvýš 20 znaků. Potřebuješ e-mail nebo telefon."},"position":{"type":["string","null"],"maxLength":255,"description":"Pracovní pozice člověka, třeba Majitel, nejvýš 255 znaků."},"preferredContactChannel":{"anyOf":[{"$ref":"#/components/schemas/PreferredContactChannel"},{"type":"null"}],"description":"Jak chce být člověk kontaktován: email, phone nebo whatsapp."},"lastActivityAt":{"type":["string","null"],"description":"Kdy jsi byl s člověkem naposledy v kontaktu, ve tvaru data a času s časovým pásmem, třeba 2026-11-03T09:30:00+01:00."},"emailVerifiedAt":{"type":["string","null"],"description":"Kdy se ověřilo, že e-mail opravdu existuje, ve tvaru data a času s časovým pásmem, třeba 2026-11-03T09:30:00+01:00."},"userId":{"type":"integer","description":"Nemusíš ho posílat. Fusio sem vždy dá člověka, za kterého klíč jedná."},"leadId":{"type":"integer","description":"Číslo leadu, pro který člověk pracuje. Pošli leadId nebo lead, ne obojí."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"contactCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."},"isGloballyUnsubscribed":{"type":"boolean","description":"true zastaví všechny e-maily tomuhle člověku."},"channelEmailEnabled":{"type":"boolean","description":"false vypne e-maily tomuhle člověku."},"channelSmsEnabled":{"type":"boolean","description":"false vypne SMS tomuhle člověku."},"emailConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas s e-maily: subscribed, unsubscribed nebo not_specified."},"smsConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas se SMS: subscribed, unsubscribed nebo not_specified."},"callConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas s telefonáty: subscribed, unsubscribed nebo not_specified."},"lead":{"type":"object","properties":{"billingAddressSameAsLegal":{"type":"boolean","description":"true znamená, že faktury jdou na hlavní adresu. false potřebuje billingAddress. Když ho vynecháš, zůstane true."},"billingAddress":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Jméno na fakturách, když to není jméno leadu."},"street":{"type":"string","maxLength":255,"description":"Ulice a číslo domu pro faktury."},"city":{"type":"string","maxLength":255,"description":"Město pro faktury."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ pro faktury, nejvýš 20 znaků."},"countryIso":{"type":"string","minLength":2,"maxLength":2,"description":"Země pro faktury jako dvě písmena, třeba CZ."}},"required":["street","city","countryIso"],"description":"Adresa pro faktury. Fusio ji čte jen tehdy, když je billingAddressSameAsLegal false; pak jsou potřeba street, city a countryIso."},"name":{"type":["string","null"],"maxLength":255,"description":"Název firmy nebo jméno člověka, nejvýš 255 znaků."},"registrationNumber":{"type":["string","null"],"maxLength":50,"description":"IČO firmy, nejvýš 50 znaků. Nejdřív se zeptej leads.check-duplicate, ať nezaložíš stejnou firmu dvakrát."},"vatNumber":{"type":["string","null"],"maxLength":50,"description":"DIČ, třeba CZ12345678, nejvýš 50 znaků."},"street":{"type":["string","null"],"maxLength":255,"description":"Ulice a číslo domu."},"city":{"type":["string","null"],"maxLength":255,"description":"Město."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ, nejvýš 20 znaků."},"countryIso":{"type":["string","null"],"minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba CZ."},"stage":{"$ref":"#/components/schemas/LeadStage","description":"Kde nový lead je: cold, warm, qualified, client nebo lost. Musíš ho poslat."},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}],"description":"Proč je lead ztracený, třeba not_interested, no_budget nebo duplicate. other potřebuje lostReasonNote."},"lostReasonNote":{"type":["string","null"],"maxLength":1000,"description":"Tvoje vlastní slova, proč je lead ztracený, nejvýš 1000 znaků. Potřeba, když je lostReason other."},"personType":{"anyOf":[{"$ref":"#/components/schemas/LeadPersonType"},{"type":"null"}],"description":"legal pro firmu, physical pro člověka."},"source":{"type":["string","null"],"enum":["web","cold_call","referral","campaign","event","partner","import","social_discovery",null],"description":"Odkud lead přišel: web, cold_call, referral, campaign, event, partner, social_discovery nebo import. Zdroj, který nastavilo samo Fusio, třeba lead_form, se změnit nedá."},"website":{"type":["string","null"],"format":"uri","pattern":"^https?:\\/\\/(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?::[0-9]{1,5})?$","maxLength":255,"description":"Web. Fusio si nechá jen začátek, třeba https://example.cz, pokud preserveWebsitePath není true. Bez http Fusio doplní https://."},"preserveWebsitePath":{"type":"boolean","description":"true nechá celou webovou adresu i s cestou za doménou."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, do kterých nový lead patří, nejvýš 500. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, které nový lead dostane, nejvýš 500. Čísla, která nejsou z tvé firmy, se přeskočí."},"leadCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí pro nový lead. Pole, které vynecháš, zůstane prázdné."}},"required":["stage"],"description":"Nový lead, který se pro člověka založí, když firma ve Fusiu ještě není. Pošli leadId nebo lead, ne obojí."}},"required":["type"]},"example":{"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","phone":"+420 601 234 567","position":"Jednatel","preferredContactChannel":"email","leadId":3051,"segmentIds":[21],"tagIds":[71]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateContactData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kontakt úspěšně vytvořen","payload":{"id":"7720","userId":88,"tenantId":412,"segments":[{"id":21,"tenantId":412,"userId":88,"name":"Pekárny","slug":"pekarny","description":"Pekárny a cukrárny v Brně a okolí."}],"tags":[{"id":71,"tenantId":412,"userId":88,"name":"Firemní flotila","slug":"firemni-flotila","color":"#2b6cb0","notes":null,"assignmentSource":"api"}],"contactCustomFields":[],"communicationPreference":null,"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":0,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","name":null,"phone":"+420601234567","position":"Jednatel","preferredContactChannel":"email","lastActivityAt":null,"emailVerifiedAt":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"x-fusio-conditional-scopes":["leads.write","emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Přidej kontakt","description":"Přidá člověka a propojí ho s leadem. Pošli `leadId` pro firmu, kterou už máš, nebo `lead`, a založí se i nový lead. Poslat `lead` vyžaduje `leads.write`.\n\nFusio nezastaví druhý kontakt se stejným e-mailem. Nejdřív se zeptej `leads.check-duplicate` s tím e-mailem: řekne ti, jestli už nějaký lead kontakt s tímhle e-mailem má.\n\n`segmentIds`, `tagIds` a `contactCustomFields` nahradí, co kontakt měl. Když seznam vynecháš, zůstane, jak je. Vlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou kontaktů; pak dostaneš 422 u `contactCustomFields`.\n\nKlíč smí souhlas jen zúžit: smí odhlásit a vypnout kanály, nikdy naopak. Změna opačným směrem vrátí 403 `route_outside_surface`.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji spustit nový lead, který založíš přes `lead`. Klíč pak potřebuje `emails.send`.\n\nChyby: 422 s `payload.metric` crm_records, když tvůj tarif nemá místo pro další záznamy. Kontakt s novým leadem se počítá jako 2 záznamy, s `leadId` jako 1.\n\nPotřebuje jedno z těchto práv: contacts.write. Některé hodnoty potřebují ještě: leads.write, emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/contacts/{contact}":{"get":{"operationId":"contacts.show","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateContactData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kontakt úspěšně načten","payload":{"id":"7720","userId":88,"tenantId":412,"segments":[{"id":21,"tenantId":412,"userId":88,"name":"Pekárny","slug":"pekarny","description":"Pekárny a cukrárny v Brně a okolí."}],"tags":[{"id":71,"tenantId":412,"userId":88,"name":"Firemní flotila","slug":"firemni-flotila","color":"#2b6cb0","notes":null,"assignmentSource":"api"}],"contactCustomFields":[{"id":1503,"contactId":7720,"customField":{"id":9,"userId":88,"tenantId":412,"name":"preferred_visit_day","label":"Den návštěvy","description":null,"type":"text","isRequired":false,"isActive":true,"isUniqueIdentifier":false,"options":null,"deletedAt":null},"value":"úterý"}],"communicationPreference":{"id":6610,"hashToken":"b7f3c2a9e4d14f0c9a1e5d77","prefersId":7720,"prefersType":"contact","isGloballyUnsubscribed":false,"unsubscriptionReason":null,"unsubscriptionReasonDescription":null,"languageId":2,"emailFormat":"html","channelEmailEnabled":true,"channelSmsEnabled":false,"emailConsentStatus":"subscribed","smsConsentStatus":"not_specified","callConsentStatus":"not_specified","consentUpdatedAt":"2026-11-03T08:30:00Z","consentIp":null,"consentUserAgent":null,"consentSource":"api","recipientName":"Petr Svoboda","recipientEmail":"petr.svoboda@example.cz","senderName":"Cyklo Novák s.r.o."},"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":0,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","name":null,"phone":"+420601234567","position":"Jednatel","preferredContactChannel":"email","lastActivityAt":"2026-11-12T13:05:00Z","emailVerifiedAt":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.read"]}],"summary":"Ukaž kontakt","description":"Vrátí kontakt s jeho leadem, segmenty, štítky, vlastními poli a souhlasem.\n\nPotřebuje jedno z těchto práv: contacts.read."},"put":{"operationId":"contacts.update","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContactType","description":"company pro pracovní kontakt firmy, personal pro soukromou osobu."},"email":{"type":["string","null"],"format":"email","maxLength":255,"description":"E-mail, nejvýš 255 znaků. Potřebuješ e-mail nebo telefon."},"firstName":{"type":["string","null"],"maxLength":255,"description":"Křestní jméno, nejvýš 255 znaků."},"lastName":{"type":["string","null"],"maxLength":255,"description":"Příjmení, nejvýš 255 znaků."},"name":{"type":["string","null"],"maxLength":255,"description":"Jméno k zobrazení, když ho nedělíš na křestní jméno a příjmení, nejvýš 255 znaků."},"phone":{"type":["string","null"],"pattern":"^(?:\\+|00)?[0-9][0-9 ().-]*$","maxLength":20,"description":"Telefonní číslo, třeba +420 601 234 567. Číslo bez předvolby se bere jako české. Nejvýš 20 znaků. Potřebuješ e-mail nebo telefon."},"position":{"type":["string","null"],"maxLength":255,"description":"Pracovní pozice člověka, třeba Majitel, nejvýš 255 znaků."},"preferredContactChannel":{"anyOf":[{"$ref":"#/components/schemas/PreferredContactChannel"},{"type":"null"}],"description":"Jak chce být člověk kontaktován: email, phone nebo whatsapp."},"lastActivityAt":{"type":["string","null"],"description":"Kdy jsi byl s člověkem naposledy v kontaktu, ve tvaru data a času s časovým pásmem, třeba 2026-11-03T09:30:00+01:00."},"emailVerifiedAt":{"type":["string","null"],"description":"Kdy se ověřilo, že e-mail opravdu existuje, ve tvaru data a času s časovým pásmem, třeba 2026-11-03T09:30:00+01:00."},"userId":{"type":"integer","description":"Nemusíš ho posílat. Fusio sem vždy dá člověka, za kterého klíč jedná."},"leadId":{"type":"integer","description":"Číslo leadu, ke kterému se člověk přesune. Když ho vynecháš, lead zůstane. Pošli leadId nebo lead, ne obojí."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"contactCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."},"isGloballyUnsubscribed":{"type":"boolean","description":"true zastaví všechny e-maily tomuhle člověku."},"channelEmailEnabled":{"type":"boolean","description":"false vypne e-maily tomuhle člověku."},"channelSmsEnabled":{"type":"boolean","description":"false vypne SMS tomuhle člověku."},"emailConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas s e-maily: subscribed, unsubscribed nebo not_specified."},"smsConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas se SMS: subscribed, unsubscribed nebo not_specified."},"callConsentStatus":{"anyOf":[{"$ref":"#/components/schemas/ConsentStatus"},{"type":"null"}],"description":"Souhlas s telefonáty: subscribed, unsubscribed nebo not_specified."},"id":{"type":"integer","description":"Znovu číslo kontaktu. Pošli stejné číslo jako v adrese."},"lead":{"type":"object","properties":{"billingAddressSameAsLegal":{"type":"boolean","description":"true znamená, že faktury jdou na hlavní adresu. false potřebuje billingAddress. Když ho vynecháš, zůstane true."},"billingAddress":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Jméno na fakturách, když to není jméno leadu."},"street":{"type":"string","maxLength":255,"description":"Ulice a číslo domu pro faktury."},"city":{"type":"string","maxLength":255,"description":"Město pro faktury."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ pro faktury, nejvýš 20 znaků."},"countryIso":{"type":"string","minLength":2,"maxLength":2,"description":"Země pro faktury jako dvě písmena, třeba CZ."}},"required":["street","city","countryIso"],"description":"Adresa pro faktury. Fusio ji čte jen tehdy, když je billingAddressSameAsLegal false; pak jsou potřeba street, city a countryIso."},"name":{"type":["string","null"],"maxLength":255,"description":"Název firmy nebo jméno člověka, nejvýš 255 znaků."},"registrationNumber":{"type":["string","null"],"maxLength":50,"description":"IČO firmy, nejvýš 50 znaků. Nejdřív se zeptej leads.check-duplicate, ať nezaložíš stejnou firmu dvakrát."},"vatNumber":{"type":["string","null"],"maxLength":50,"description":"DIČ, třeba CZ12345678, nejvýš 50 znaků."},"street":{"type":["string","null"],"maxLength":255,"description":"Ulice a číslo domu."},"city":{"type":["string","null"],"maxLength":255,"description":"Město."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ, nejvýš 20 znaků."},"countryIso":{"type":["string","null"],"minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba CZ."},"stage":{"$ref":"#/components/schemas/LeadStage","description":"Kde nový lead je: cold, warm, qualified, client nebo lost. Musíš ho poslat, když posíláš lead."},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}],"description":"Proč je lead ztracený, třeba not_interested, no_budget nebo duplicate. other potřebuje lostReasonNote."},"lostReasonNote":{"type":["string","null"],"maxLength":1000,"description":"Tvoje vlastní slova, proč je lead ztracený, nejvýš 1000 znaků. Potřeba, když je lostReason other."},"personType":{"anyOf":[{"$ref":"#/components/schemas/LeadPersonType"},{"type":"null"}],"description":"legal pro firmu, physical pro člověka."},"source":{"type":["string","null"],"enum":["web","cold_call","referral","campaign","event","partner","import","social_discovery",null],"description":"Odkud lead přišel: web, cold_call, referral, campaign, event, partner, social_discovery nebo import. Zdroj, který nastavilo samo Fusio, třeba lead_form, se změnit nedá."},"website":{"type":["string","null"],"format":"uri","pattern":"^https?:\\/\\/(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?::[0-9]{1,5})?$","maxLength":255,"description":"Web. Fusio si nechá jen začátek, třeba https://example.cz, pokud preserveWebsitePath není true. Bez http Fusio doplní https://."},"preserveWebsitePath":{"type":"boolean","description":"true nechá celou webovou adresu i s cestou za doménou."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, do kterých nový lead patří, nejvýš 500. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, které nový lead dostane, nejvýš 500. Čísla, která nejsou z tvé firmy, se přeskočí."},"leadCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí pro nový lead. Pole, které vynecháš, zůstane prázdné."}},"required":["stage"],"description":"Nový lead, který se založí a člověk se k němu přesune. Pošli leadId nebo lead, ne obojí."}},"required":["type","id"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateContactData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"x-fusio-conditional-scopes":["leads.write","emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Změň kontakt","description":"Změní kontakt a vrátí ho. Vždycky pošli `id`, `type` a e-mail nebo telefon. Ostatní pole, která vynecháš, si nechají hodnotu.\n\nPošli `leadId` a člověk se přesune k jinému leadu, nebo `lead`, a založí se nový lead a člověk se k němu přesune. Poslat `lead` vyžaduje `leads.write`. Kontakt patří jen k jednomu leadu.\n\n`segmentIds`, `tagIds` a `contactCustomFields` nahradí, co kontakt měl. Když seznam vynecháš, zůstane, jak je. Vlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou kontaktů; pak dostaneš 422 u `contactCustomFields`.\n\nKlíč smí souhlas jen zúžit: smí odhlásit a vypnout kanály, nikdy naopak. Změna opačným směrem vrátí 403 `route_outside_surface`.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji spustit nový lead, který založíš přes `lead`. Klíč pak potřebuje `emails.send`.\n\nChyby: 422 u `contactCustomFields`, když je jedinečná hodnota už zabraná, a 422 s `payload.metric` crm_records, když pošleš `lead` a tvůj tarif nemá místo pro další záznamy. Nový lead se počítá jako 1 záznam.\n\nPotřebuje jedno z těchto práv: contacts.write. Některé hodnoty potřebují ještě: leads.write, emails.send. Tato práva musíš zaškrtnout schválně: emails.send."},"delete":{"operationId":"contacts.destroy","tags":["contacts"],"parameters":[{"name":"contact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["contacts.write"]}],"summary":"Smaž kontakt","description":"Smaže kontakt a odebere ho z jeho leadu. Když to byl hlavní kontakt, stane se hlavním nejstarší další kontakt leadu. Odpověď nemá žádná data.\n\n> [!CAUTION]\n> API kontakt vrátit neumí. Fusio ho nejmíň 30 dní drží skrytý a pak ho smaže natrvalo.\n\nPotřebuje jedno z těchto práv: contacts.write."}},"/v1/customers/grid":{"get":{"operationId":"customers.grid","tags":["customers"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[personaTitle]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část pracovní pozice typického zákazníka."},{"name":"filter[employeeBand]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kolik lidí firma má. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[analyzedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy proběhla kontrola. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","personaTitle","employeeBand","analyzedAt","createdAt","-name","-personaTitle","-employeeBand","-analyzedAt","-createdAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexTenantCustomerData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš profily zákazníků v tabulce","description":"Vrátí tvoje profily zákazníků po stránkách, připravené pro tabulku. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/customers":{"post":{"operationId":"customers.store","tags":["customers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název profilu zákazníka, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Vynech ho pro hlavní produkt."},"personaTitle":{"type":["string","null"],"maxLength":255,"description":"Pracovní pozice člověka, třeba Marketingový manažer. Nejvýš 255 znaků."},"segmentSummary":{"type":["string","null"],"maxLength":5000,"description":"Kdo tihle zákazníci jsou, pár větami. Nejvýš 5000 znaků."},"titleRange":{"type":["string","null"],"maxLength":255,"description":"Jiné pozice, které můžou mít. Nejvýš 255 znaků."},"reportsTo":{"type":["string","null"],"maxLength":255,"description":"Kdo je jejich šéf. Nejvýš 255 znaků."},"teamSizeManaged":{"type":["string","null"],"maxLength":255,"description":"Jak velký tým vedou. Nejvýš 255 znaků."},"primaryJobToBeDone":{"type":["string","null"],"maxLength":5000,"description":"Hlavní věc, kterou chtějí mít hotovou. Nejvýš 5000 znaků."},"confidenceLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantCustomerConfidenceLevel"},{"type":"null"}],"description":"Jak moc si jsi profilem jistý: high, medium nebo low."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Vynech ho, když to píšeš sám."},"adsTargetingProfile":{"type":["object","null"],"properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1."},"canonical":{"type":"object","properties":{"locations":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: místa, nejvýš 50. Každá položka nejvýš 500 znaků."},"languages":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: jazyky, nejvýš 50. Každá položka nejvýš 500 znaků."},"ageRanges":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: věkové skupiny, nejvýš 50. Každá položka nejvýš 500 znaků."},"genders":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: pohlaví, nejvýš 50. Každá položka nejvýš 500 znaků."},"interests":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: zájmy, nejvýš 50. Každá položka nejvýš 500 znaků."},"behaviors":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: chování, nejvýš 50. Každá položka nejvýš 500 znaků."},"jobTitles":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: pracovní pozice, nejvýš 50. Každá položka nejvýš 500 znaků."},"seniorities":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: úrovně pozic, nejvýš 50. Každá položka nejvýš 500 znaků."},"industries":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: obory, nejvýš 50. Každá položka nejvýš 500 znaků."},"companySizes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: velikosti firem, nejvýš 50. Každá položka nejvýš 500 znaků."},"purchaseSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: znamení, že chtějí koupit, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, která hledají, nejvýš 50. Každá položka nejvýš 500 znaků."},"exclusions":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: lidé, které vynechat, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Na koho cílit, stejné pro všechny platformy."},"googleAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro Google Ads."},"metaAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro Meta (Facebook a Instagram)."},"linkedInAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro LinkedIn."},"tikTokAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro TikTok."}},"description":"Komu ukazovat reklamy, obecně a pro každou reklamní platformu. null ho smaže."},"topPains":{"type":["array","null"],"items":{"type":"object","properties":{"pain":{"type":"string","maxLength":255,"description":"Problém, nejvýš 255 znaků."},"verbatimQuote":{"type":["string","null"],"maxLength":500,"description":"Co o něm zákazník řekl, slovo od slova, nejvýš 500 znaků."}},"required":["pain"]},"maxItems":10,"description":"Jejich největší problémy, nejvýš 10."},"naceCodes":{"type":["array","null"],"items":{"type":"string"},"maxItems":6,"uniqueItems":true,"description":"Kódy oboru (CZ-NACE) jejich firem, třeba 47910, nejvýš 6, každý jednou."},"employeeBand":{"anyOf":[{"$ref":"#/components/schemas/EmployeeBand"},{"type":"null"}],"description":"Kolik lidí jejich firmy mají: micro, small, medium, large nebo enterprise."},"legalForms":{"type":["array","null"],"items":{"type":"string","enum":["101","112","121","111","113","205"]},"uniqueItems":true,"description":"Právní formy jejich firem jako české kódy: 101 (živnostník), 111 (v.o.s.), 112 (s.r.o.), 113 (k.s.), 121 (a.s.) nebo 205 (družstvo)."},"eshopPlatforms":{"type":["array","null"],"items":{"type":"string","enum":["shoptet","shopify","woocommerce","prestashop","upgates","fastcentrik","other"]},"uniqueItems":true,"description":"Platformy e-shopů, které používají: shoptet, shopify, woocommerce, prestashop, upgates, fastcentrik nebo other."},"companyAgeBands":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CompanyAgeBand"},"uniqueItems":true,"description":"Jak staré jsou jejich firmy. Vyber z new (do 2 let), young (2 až 5 let), established (5 až 10 let) nebo mature (přes 10 let)."},"municipalityLevel":{"anyOf":[{"$ref":"#/components/schemas/MunicipalityLevel"},{"type":"null"}]},"municipalityCode":{"type":["integer","null"]},"triggerEvents":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: události, kvůli kterým začnou hledat, nejvýš 30. Každá položka nejvýš 255 znaků."},"desiredOutcomes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: výsledky, které chtějí, nejvýš 30. Každá položka nejvýš 255 znaků."},"successMetrics":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: čísla, podle kterých posuzují úspěch, nejvýš 30. Každá položka nejvýš 255 znaků."},"objections":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: pochybnosti, které mají před nákupem, nejvýš 30. Každá položka nejvýš 255 znaků."},"fears":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: věci, kterých se bojí, nejvýš 30. Každá položka nejvýš 255 znaků."},"alternativesConsidered":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: jiné možnosti, o kterých přemýšlejí, nejvýš 30. Každá položka nejvýš 255 znaků."},"keyVocabulary":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: slova, která používají, nejvýš 30. Každá položka nejvýš 255 znaků."},"functionalJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: úkoly, které chtějí mít hotové, nejvýš 30. Každá položka nejvýš 255 znaků."},"emotionalJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: pocity, které chtějí mít, nejvýš 30. Každá položka nejvýš 255 znaků."},"socialJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: jak chtějí, aby je viděli ostatní, nejvýš 30. Každá položka nejvýš 255 znaků."},"channels":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: místa, kde je zastihneš, nejvýš 30. Každá položka nejvýš 255 znaků."},"contentConsumed":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: věci, které čtou, sledují nebo poslouchají, nejvýš 30. Každá položka nejvýš 255 znaků."},"trustedCommunities":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: skupiny, kterým věří, nejvýš 30. Každá položka nejvýš 255 znaků."}},"required":["name"]},"example":{"name":"Víkendový cyklista","personaTitle":"Rodič, který jezdí o víkendech","segmentSummary":"Lidé 30–50 let z Brna, jezdí s rodinou na výlety.","primaryJobToBeDone":"Mít kolo připravené na víkend bez starostí.","confidenceLevel":"medium","topPains":[{"pain":"Servis trvá týden a víkend je pryč.","verbatimQuote":"Kolo jsem dal do servisu a v sobotu jsem nejel."}],"desiredOutcomes":["Kolo hotové do pátku"],"objections":["Servis je drahý"],"channels":["Facebook","Instagram"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCustomerData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Zákazník úspěšně vytvořen","payload":{"id":58,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Víkendový cyklista","personaTitle":"Rodič, který jezdí o víkendech","segmentSummary":"Lidé 30–50 let z Brna, jezdí s rodinou na výlety.","titleRange":null,"reportsTo":null,"teamSizeManaged":null,"primaryJobToBeDone":"Mít kolo připravené na víkend bez starostí.","confidenceLevel":"medium","triggerEvents":[],"topPains":[{"pain":"Servis trvá týden a víkend je pryč.","verbatimQuote":"Kolo jsem dal do servisu a v sobotu jsem nejel."}],"desiredOutcomes":["Kolo hotové do pátku"],"successMetrics":[],"objections":["Servis je drahý"],"fears":[],"alternativesConsidered":[],"keyVocabulary":[],"functionalJobs":[],"emotionalJobs":[],"socialJobs":[],"channels":["Facebook","Instagram"],"contentConsumed":[],"trustedCommunities":[],"sampleQuotes":null,"adsTargetingProfile":null,"naceCodes":[],"employeeBand":null,"legalForms":[],"eshopPlatforms":[],"companyAgeBands":[],"municipality":null,"targetingClassifiedAt":null,"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř profil zákazníka","description":"Vytvoří profil jednoho druhu zákazníka. Potřeba je jen název; vyplň, co víš.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/customers/{customer}":{"get":{"operationId":"customers.show","tags":["customers"],"parameters":[{"name":"customer","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo profilu zákazníka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCustomerData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Zákazník úspěšně načten","payload":{"id":58,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Víkendový cyklista","personaTitle":"Rodič, který jezdí o víkendech","segmentSummary":"Lidé 30–50 let z Brna, jezdí s rodinou na výlety.","titleRange":null,"reportsTo":null,"teamSizeManaged":null,"primaryJobToBeDone":"Mít kolo připravené na víkend bez starostí.","confidenceLevel":"medium","triggerEvents":[],"topPains":[{"pain":"Servis trvá týden a víkend je pryč.","verbatimQuote":"Kolo jsem dal do servisu a v sobotu jsem nejel."}],"desiredOutcomes":["Kolo hotové do pátku"],"successMetrics":[],"objections":["Servis je drahý"],"fears":[],"alternativesConsidered":[],"keyVocabulary":[],"functionalJobs":[],"emotionalJobs":[],"socialJobs":[],"channels":["Facebook","Instagram"],"contentConsumed":[],"trustedCommunities":[],"sampleQuotes":null,"adsTargetingProfile":null,"naceCodes":[],"employeeBand":null,"legalForms":[],"eshopPlatforms":[],"companyAgeBands":[],"municipality":null,"targetingClassifiedAt":null,"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž profil zákazníka","description":"Vrátí jeden profil zákazníka.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"put":{"operationId":"customers.update","tags":["customers"],"parameters":[{"name":"customer","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo profilu zákazníka."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název profilu zákazníka, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Pro hlavní produkt pošli null. Když ho vynecháš, zůstane."},"personaTitle":{"type":["string","null"],"maxLength":255,"description":"Pracovní pozice člověka, třeba Marketingový manažer. Nejvýš 255 znaků. Když ho vynecháš, zůstane."},"segmentSummary":{"type":["string","null"],"maxLength":5000,"description":"Kdo tihle zákazníci jsou, pár větami. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"titleRange":{"type":["string","null"],"maxLength":255,"description":"Jiné pozice, které můžou mít. Nejvýš 255 znaků. Když ho vynecháš, zůstane."},"reportsTo":{"type":["string","null"],"maxLength":255,"description":"Kdo je jejich šéf. Nejvýš 255 znaků. Když ho vynecháš, zůstane."},"teamSizeManaged":{"type":["string","null"],"maxLength":255,"description":"Jak velký tým vedou. Nejvýš 255 znaků. Když ho vynecháš, zůstane."},"primaryJobToBeDone":{"type":["string","null"],"maxLength":5000,"description":"Hlavní věc, kterou chtějí mít hotovou. Nejvýš 5000 znaků. Když ho vynecháš, zůstane."},"confidenceLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantCustomerConfidenceLevel"},{"type":"null"}],"description":"Jak moc si jsi profilem jistý: high, medium nebo low. Když ho vynecháš, zůstane."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Pošli null, když to píšeš sám. Když ho vynecháš, zůstane."},"adsTargetingProfile":{"type":["object","null"],"properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1."},"canonical":{"type":"object","properties":{"locations":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: místa, nejvýš 50. Každá položka nejvýš 500 znaků."},"languages":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: jazyky, nejvýš 50. Každá položka nejvýš 500 znaků."},"ageRanges":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: věkové skupiny, nejvýš 50. Každá položka nejvýš 500 znaků."},"genders":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: pohlaví, nejvýš 50. Každá položka nejvýš 500 znaků."},"interests":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: zájmy, nejvýš 50. Každá položka nejvýš 500 znaků."},"behaviors":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: chování, nejvýš 50. Každá položka nejvýš 500 znaků."},"jobTitles":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: pracovní pozice, nejvýš 50. Každá položka nejvýš 500 znaků."},"seniorities":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: úrovně pozic, nejvýš 50. Každá položka nejvýš 500 znaků."},"industries":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: obory, nejvýš 50. Každá položka nejvýš 500 znaků."},"companySizes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: velikosti firem, nejvýš 50. Každá položka nejvýš 500 znaků."},"purchaseSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: znamení, že chtějí koupit, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, která hledají, nejvýš 50. Každá položka nejvýš 500 znaků."},"exclusions":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: lidé, které vynechat, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Na koho cílit, stejné pro všechny platformy."},"googleAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na Google Ads, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro Google Ads."},"metaAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na Meta (Facebook a Instagram), nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro Meta (Facebook a Instagram)."},"linkedInAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na LinkedIn, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro LinkedIn."},"tikTokAds":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, na které cílit na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"excludedSignals":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: signály, které vynechat na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"searchThemes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: témata, na která cílit na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."},"notes":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":50,"description":"Seznam: poznámky na TikTok, nejvýš 50. Každá položka nejvýš 500 znaků."}},"description":"Tipy na cílení pro TikTok."}},"description":"Komu ukazovat reklamy, obecně a pro každou reklamní platformu. Profil, který pošleš, nahradí celý starý. null ho smaže. Když ho vynecháš, zůstane."},"topPains":{"type":["array","null"],"items":{"type":"object","properties":{"pain":{"type":"string","maxLength":255,"description":"Problém, nejvýš 255 znaků."},"verbatimQuote":{"type":["string","null"],"maxLength":500,"description":"Co o něm zákazník řekl, slovo od slova, nejvýš 500 znaků."}},"required":["pain"]},"maxItems":10,"description":"Jejich největší problémy, nejvýš 10. Když ho vynecháš, zůstane."},"naceCodes":{"type":["array","null"],"items":{"type":"string"},"maxItems":6,"uniqueItems":true,"description":"Kódy oboru (CZ-NACE) jejich firem, třeba 47910, nejvýš 6, každý jednou. Když ho vynecháš, zůstane."},"employeeBand":{"anyOf":[{"$ref":"#/components/schemas/EmployeeBand"},{"type":"null"}],"description":"Kolik lidí jejich firmy mají: micro, small, medium, large nebo enterprise. Když ho vynecháš, zůstane."},"legalForms":{"type":["array","null"],"items":{"type":"string","enum":["101","112","121","111","113","205"]},"uniqueItems":true,"description":"Právní formy jejich firem jako české kódy: 101 (živnostník), 111 (v.o.s.), 112 (s.r.o.), 113 (k.s.), 121 (a.s.) nebo 205 (družstvo). Když ho vynecháš, zůstane."},"eshopPlatforms":{"type":["array","null"],"items":{"type":"string","enum":["shoptet","shopify","woocommerce","prestashop","upgates","fastcentrik","other"]},"uniqueItems":true,"description":"Platformy e-shopů, které používají: shoptet, shopify, woocommerce, prestashop, upgates, fastcentrik nebo other. Když ho vynecháš, zůstane."},"companyAgeBands":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CompanyAgeBand"},"uniqueItems":true,"description":"Jak staré jsou jejich firmy. Vyber z new (do 2 let), young (2 až 5 let), established (5 až 10 let) nebo mature (přes 10 let). Když ho vynecháš, zůstane."},"municipalityLevel":{"anyOf":[{"$ref":"#/components/schemas/MunicipalityLevel"},{"type":"null"}]},"municipalityCode":{"type":["integer","null"]},"triggerEvents":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: události, kvůli kterým začnou hledat, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"desiredOutcomes":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: výsledky, které chtějí, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"successMetrics":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: čísla, podle kterých posuzují úspěch, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"objections":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: pochybnosti, které mají před nákupem, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"fears":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: věci, kterých se bojí, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"alternativesConsidered":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: jiné možnosti, o kterých přemýšlejí, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"keyVocabulary":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: slova, která používají, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"functionalJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: úkoly, které chtějí mít hotové, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"emotionalJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: pocity, které chtějí mít, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"socialJobs":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: jak chtějí, aby je viděli ostatní, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"channels":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: místa, kde je zastihneš, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"contentConsumed":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: věci, které čtou, sledují nebo poslouchají, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"trustedCommunities":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":30,"description":"Seznam: skupiny, kterým věří, nejvýš 30. Každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantCustomerData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň profil zákazníka","description":"Změní profil zákazníka. Název pošli vždycky. Ostatní pole, která vynecháš, zůstanou, jak jsou; null je smaže. Seznam, který pošleš, nahradí celý starý seznam.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"customers.destroy","tags":["customers"],"parameters":[{"name":"customer","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo profilu zákazníka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber profil zákazníka","description":"Odebere profil zákazníka.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/deal-products/grid":{"get":{"operationId":"deal-products.grid","tags":["deal-products"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[sku]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část kódu výrobku."},{"name":"filter[unit]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu jednotky, třeba hodina nebo kus."},{"name":"filter[billingInterval]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak často se platí. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[unitPrice]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Cena za jednotku. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[defaultQuantity]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Běžné množství. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[defaultDiscountPercent]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Běžná sleva v procentech. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[vatRate]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Sazba daně v procentech. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[isActive]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže zapnuté řádky. 0 ukáže ostatní."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","sku","unit","unitPrice","vatRate","billingInterval","defaultQuantity","defaultDiscountPercent","isActive","dealsCount","createdAt","-name","-sku","-unit","-unitPrice","-vatRate","-billingInterval","-defaultQuantity","-defaultDiscountPercent","-isActive","-dealsCount","-createdAt"],"default":"name"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexDealProductData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš produkty v tabulce","description":"Vrátí tvoje produkty po stránkách, připravené pro tabulku, i s tím, kolik obchodů každý používá. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deal-products/options":{"get":{"operationId":"deal-products.options","tags":["deal-products"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu nebo tvém kódu (sku). Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[isActive]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže zapnuté řádky. 0 ukáže ostatní."},{"name":"filter[billingInterval]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak často se platí. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionDealProductData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš produkty pro výběr","description":"Vrátí produkty jako krátké položky pro výběr, u každé cenu, jednotku a DPH. Hodí se, když přidáváš položky do obchodu.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deal-products/{dealProduct}/deals":{"get":{"operationId":"deal-products.deals","tags":["deal-products"],"parameters":[{"name":"dealProduct","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo produktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/DealProductDealOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš obchody, které používají produkt","description":"Vrátí nejvýš 50 nejnovějších obchodů, které mají produkt jako položku. Vidíš jen obchody, které smíš vidět.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deal-products":{"post":{"operationId":"deal-products.store","tags":["deal-products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval","description":"Jak často klient platí: one_time, monthly nebo yearly. Když ho vynecháš, je to one_time."},"defaultQuantity":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Množství, které dostane nová položka, víc než 0. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy. Když ho vynecháš, je to 1."},"defaultDiscountPercent":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","minLength":0,"maxLength":100,"description":"Sleva, kterou dostane nová položka. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ji vynecháš, je to 0."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název produktu, nejvýš 255 znaků."},"sku":{"type":["string","null"],"maxLength":255,"description":"Tvůj vlastní kód produktu, nejvýš 255 znaků. Žádný jiný produkt nesmí mít stejný. Když žádný nemáš, pošli null."},"description":{"type":["string","null"],"maxLength":10000,"description":"Delší text o produktu, nejvýš 10000 znaků. Když žádný nemáš, pošli null."},"unit":{"type":"string","minLength":1,"maxLength":64,"description":"Jednotka, třeba ks nebo hodina, nejvýš 64 znaků."},"unitPrice":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Cena jedné jednotky. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy."},"currency":{"type":"string","description":"Měna jako tři písmena, třeba CZK."},"vatRate":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"DPH. Procento jako text, třeba 21 nebo 12.5, od 0 do 100."},"isActive":{"type":"boolean","description":"false skryje produkt, když lidé vybírají produkty do obchodu."},"contractTemplates":{"type":"array","items":{"type":"object","properties":{"documentTemplateId":{"type":"integer"},"scope":{"$ref":"#/components/schemas/DealProductContractScope"}},"required":["documentTemplateId","scope"]},"maxItems":10,"uniqueItems":true}},"required":["name","sku","description","unit","unitPrice","currency","vatRate","isActive"]},"example":{"name":"Roční servis kola","sku":"SRV-ROK","description":"Prohlídka, seřízení brzd a řazení, mazání řetězu.","unit":"ks","unitPrice":"2490","currency":"CZK","vatRate":"21","isActive":true,"billingInterval":"yearly","defaultQuantity":"1","defaultDiscountPercent":"0"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealProductData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Produkt ceníku byl úspěšně vytvořen.","payload":{"id":140,"tenantId":412,"name":"Roční servis kola","sku":"SRV-ROK","description":"Prohlídka, seřízení brzd a řazení, mazání řetězu.","unit":"ks","unitPrice":"2490.000000","currency":"CZK","vatRate":"21.00","isActive":true,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","billingInterval":"yearly","defaultQuantity":"1.000000","defaultDiscountPercent":"0.00"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"summary":"Přidej produkt","description":"Přidá produkt a vrátí ho. Vždycky pošli `sku` a `description`, třeba jako null.\n\nPotřebuje jedno z těchto práv: deals.write."}},"/v1/deal-products/{dealProduct}":{"get":{"operationId":"deal-products.show","tags":["deal-products"],"parameters":[{"name":"dealProduct","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo produktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealProductData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Produkt ceníku byl úspěšně načten.","payload":{"id":140,"tenantId":412,"name":"Roční servis kola","sku":"SRV-ROK","description":"Prohlídka, seřízení brzd a řazení, mazání řetězu.","unit":"ks","unitPrice":"2490.000000","currency":"CZK","vatRate":"21.00","isActive":true,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","billingInterval":"yearly","defaultQuantity":"1.000000","defaultDiscountPercent":"0.00","dealsCount":4,"activeBillingPlansCount":3}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Ukaž produkt","description":"Vrátí produkt i s tím, kolik obchodů a plánů plateb ho používá.\n\nPotřebuje jedno z těchto práv: deals.read."},"put":{"operationId":"deal-products.update","tags":["deal-products"],"parameters":[{"name":"dealProduct","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo produktu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval","description":"Jak často klient platí: one_time, monthly nebo yearly. Když ho vynecháš, zůstane."},"defaultQuantity":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Množství, které dostane nová položka, víc než 0. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy. Když ho vynecháš, zůstane."},"defaultDiscountPercent":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","minLength":0,"maxLength":100,"description":"Sleva, kterou dostane nová položka. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ji vynecháš, zůstane."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název produktu, nejvýš 255 znaků."},"sku":{"type":["string","null"],"maxLength":255,"description":"Tvůj vlastní kód produktu, nejvýš 255 znaků. Žádný jiný produkt nesmí mít stejný. Když žádný nemáš, pošli null."},"description":{"type":["string","null"],"maxLength":10000,"description":"Delší text o produktu, nejvýš 10000 znaků. Když žádný nemáš, pošli null."},"unit":{"type":"string","minLength":1,"maxLength":64,"description":"Jednotka, třeba ks nebo hodina, nejvýš 64 znaků."},"unitPrice":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Cena jedné jednotky. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy."},"currency":{"type":"string","description":"Měna jako tři písmena, třeba CZK."},"vatRate":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"DPH. Procento jako text, třeba 21 nebo 12.5, od 0 do 100."},"isActive":{"type":"boolean","description":"false skryje produkt, když lidé vybírají produkty do obchodu."},"contractTemplates":{"type":"array","items":{"type":"object","properties":{"documentTemplateId":{"type":"integer"},"scope":{"$ref":"#/components/schemas/DealProductContractScope"}},"required":["documentTemplateId","scope"]},"maxItems":10,"uniqueItems":true}},"required":["name","sku","description","unit","unitPrice","currency","vatRate","isActive"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealProductData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"summary":"Změň produkt","description":"Změní produkt a vrátí ho. Pošli všechna povinná pole, i `sku` a `description`, jako u nového produktu.\n\nObchody, které už produkt mají jako položku, si nechají svoje ceny.\n\nPotřebuje jedno z těchto práv: deals.write."},"delete":{"operationId":"deal-products.destroy","tags":["deal-products"],"parameters":[{"name":"dealProduct","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo produktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"summary":"Smaž produkt","description":"Smaže produkt. Odpověď nemá žádná data. Dostaneš 422 u `dealProduct`, když produkt používá nějaký obchod; místo toho nastav `isActive` na false.\n\nPotřebuje jedno z těchto práv: deals.write."}},"/v1/deals/{deal}/stage":{"put":{"operationId":"deals.stage.update","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"$ref":"#/components/schemas/DealStage","description":"Nová fáze: discovery, qualification, proposal, negotiation, won nebo lost."},"winProbability":{"type":"integer","minimum":0,"maximum":100,"description":"Šance na výhru v procentech, od 0 do 100. Jen pro otevřenou fázi. Když ji vynecháš, zůstane, nebo dostaneš šanci nové fáze."},"lostReason":{"$ref":"#/components/schemas/DealLostReason","description":"Proč je obchod prohraný: budget, timing, competitor, no_decision, poor_fit nebo other. Potřeba pro lost; u jiných fází není dovolený."},"lostReasonNote":{"type":["string","null"],"maxLength":1000,"description":"Tvoje vlastní slova proč, nejvýš 1000 znaků. Potřeba, když je lostReason other. Jen pro lost."}},"required":["stage"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["emails.send","deals.execute"],"x-fusio-opt-in-scopes":["emails.send","deals.execute"],"summary":"Přesuň obchod do jiné fáze","description":"Přesune obchod do nové fáze a vrátí ho. Každá fáze má svou šanci: discovery 20, qualification 35, proposal 50, negotiation 80.\n\nAby šel obchod vyhrát (`won`), potřebuje skutečnou měnu, aspoň jednu položku s částkou nad 0, právě jeden hlavní kontakt a všechny potřebné dokumenty podepsané. Jinak dostaneš 422 u `currency`, `lineItems`, `contacts` nebo `documents`. Vyhraný obchod udělá ze svého leadu klienta a u klíče vyžaduje `deals.execute`.\n\n> [!WARNING]\n> Výhra obchodu může spustit sekvence e-mailů tvé firmy. Klíč pak potřebuje i `emails.send`.\n\nChyby: 422 u `deal`, když je obchod už vyhraný nebo prohraný. Vyhraný nebo prohraný obchod je uzavřený. Když ho chceš měnit, nejdřív ho znovu otevři přes `deals.reopen`.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: emails.send, deals.execute. Tato práva musíš zaškrtnout schválně: emails.send, deals.execute."}},"/v1/deals/{deal}/reopen":{"post":{"operationId":"deals.reopen","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","enum":["discovery","qualification","proposal","negotiation"],"description":"Otevřená fáze, do které se obchod vrátí: discovery, qualification, proposal nebo negotiation."},"winProbability":{"type":"integer","minimum":0,"maximum":100,"description":"Šance na výhru v procentech, od 0 do 100. Když ji vynecháš, použije se šance fáze."}},"required":["stage"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["emails.send","deals.execute"],"x-fusio-opt-in-scopes":["emails.send","deals.execute"],"summary":"Znovu otevři vyhraný nebo prohraný obchod","description":"Znovu otevře vyhraný nebo prohraný obchod a vrátí ho. Datum uzavření a důvod prohry se smažou.\n\nKdyž znovu otevřeš vyhraný obchod a jeho lead nemá jiný vyhraný obchod, lead se vrátí z klienta na qualified. Znovuotevření vyhraného obchodu vyžaduje u klíče `deals.execute`.\n\n> [!WARNING]\n> Změna fáze leadu může spustit sekvence e-mailů tvé firmy. Klíč pak potřebuje i `emails.send`.\n\nChyby: 422 u `deal`, když je obchod pořád otevřený.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: emails.send, deals.execute. Tato práva musíš zaškrtnout schválně: emails.send, deals.execute."}},"/v1/deals/{deal}/line-items":{"put":{"operationId":"deals.line-items.replace","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":["integer","null"],"description":"Číslo jednoho z tvých produktů. Jen propojí položku s produktem; Fusio nic nezkopíruje, takže všechny hodnoty pošli sám."},"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval","description":"Jak často klient platí: one_time, monthly nebo yearly. Když ho vynecháš, je to one_time."},"giftPeriods":{"type":["integer","null"],"minimum":1,"maximum":120,"description":"Kolik fakturačních cyklů je položka zdarma, od 1 do 120. Jen u balíčku nebo pravidelného produktu z katalogu Fusio, nejvýš u 20 produktů. Když ho vynecháš, položka je bez dárku."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název položky, nejvýš 255 znaků."},"description":{"type":["string","null"],"maxLength":10000,"description":"Delší text, nejvýš 10000 znaků."},"quantity":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Kolik, víc než 0. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy."},"unit":{"type":"string","minLength":1,"maxLength":64,"description":"Jednotka, třeba ks nebo hodina, nejvýš 64 znaků."},"unitPrice":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Cena jedné jednotky, s DPH nebo bez, jak říká priceInputMode obchodu. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy."},"listUnitPrice":{"type":["string","null"],"pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$"},"discountPercent":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"Sleva. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ji vynecháš, je to 0."},"vatRate":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"DPH. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ho vynecháš, použije se defaultVatRate obchodu."}},"required":["name","quantity","unit","unitPrice"]},"maxItems":100,"description":"Všechny položky obchodu, nejvýš 100. Seznam nahradí položky, které měl. Prázdný seznam odebere všechny."}},"required":["items"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["deals.execute"],"x-fusio-opt-in-scopes":["deals.execute"],"summary":"Nastav položky obchodu","description":"Nahradí všechny položky obchodu a vrátí obchod s novými součty. Součty Fusio spočítá samo, takže neposílej `net`, `tax`, `gross` ani `sortOrder`. Položky zůstanou v pořadí seznamu.\n\nChyby: 422 u `deal`, když je obchod vyhraný nebo prohraný. U vyhraného obchodu dostane klíč bez `deals.execute` místo toho 403.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: deals.execute. Tato práva musíš zaškrtnout schválně: deals.execute."}},"/v1/deals/{deal}/contacts":{"put":{"operationId":"deals.contacts.replace","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"type":"array","items":{"type":"object","properties":{"leadContactId":{"type":"integer","description":"Číslo propojení leadu obchodu a kontaktu, z lead-contacts.index. Každé jen jednou."},"roles":{"type":"array","items":{"$ref":"#/components/schemas/DealContactRole"},"minItems":1,"description":"Co člověk v obchodě dělá, aspoň jedna role: primary, decision_maker, billing, technical, legal nebo other. Jen jeden kontakt obchodu smí být primary."}},"required":["leadContactId","roles"]},"maxItems":50,"uniqueItems":true,"description":"Všechny kontakty obchodu, nejvýš 50. Seznam nahradí kontakty, které měl. Prázdný seznam odebere všechny."}},"required":["contacts"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["deals.execute"],"x-fusio-opt-in-scopes":["deals.execute"],"summary":"Nastav kontakty obchodu","description":"Nahradí všechny kontakty obchodu a vrátí obchod. Použít můžeš jen kontakty leadu obchodu; jinak dostaneš 422 u toho `leadContactId`.\n\nAby šel obchod později vyhrát, musí mít právě jeden kontakt roli `primary`.\n\nChyby: 422 u `deal`, když je obchod vyhraný nebo prohraný. U vyhraného obchodu dostane klíč bez `deals.execute` místo toho 403.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: deals.execute. Tato práva musíš zaškrtnout schválně: deals.execute."}},"/v1/deals/overview":{"get":{"operationId":"deals.overview","tags":["deals"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[owner]","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/DealOwnerScope"},{"type":"null"}]},"description":"all pro všechny obchody, které smíš vidět, mine jen pro tvoje."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Ukaž čísla tvých obchodů","description":"Vrátí čísla tvých obchodů za období: co je otevřené, vyhrané a prohrané a co můžeš vyhrát. Peníze jsou vždy po měnách. Pošli `compare=true` a dostaneš i období těsně předtím.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deals/grid":{"get":{"operationId":"deals.grid","tags":["deals"],"parameters":[{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[stale]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže obchody, kde se dlouho nic nestalo. 0 ukáže ostatní."},{"name":"filter[owner]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"mine ukáže jen tvoje obchody. all ukáže všechny obchody."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[lead]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID jednoho zájemce."},{"name":"filter[stage]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok, ve kterém to je. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","stage","expectedCloseDate","winProbability","createdAt","updatedAt","-name","-stage","-expectedCloseDate","-winProbability","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridDealData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš obchody v tabulce","description":"Vrátí obchody po stránkách, připravené pro tabulku. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deals/options":{"get":{"operationId":"deals.options","tags":["deals"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[lead]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID jednoho zájemce."},{"name":"filter[stage]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok, ve kterém to je. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionDealData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš obchody pro výběr","description":"Vrátí obchody jako krátké položky pro výběr.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deals/board/summary":{"get":{"operationId":"deals.board.summary","tags":["deals"],"parameters":[{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[stale]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže obchody, kde se dlouho nic nestalo. 0 ukáže ostatní."},{"name":"filter[owner]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"mine ukáže jen tvoje obchody. all ukáže všechny obchody."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[lead]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID jednoho zájemce."},{"name":"filter[stage]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok, ve kterém to je. Jedna nebo víc hodnot, oddělených čárkou."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Spočítej obchody na nástěnce","description":"Vrátí, kolik obchodů je v každém sloupci (fázi) nástěnky. Použij stejný `filter` jako pro sloupce.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deals/board/{status}":{"get":{"operationId":"deals.board.column","tags":["deals"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["discovery","qualification","proposal","negotiation","won","lost"]},"description":"Sloupec: discovery, qualification, proposal, negotiation, won nebo lost."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[stale]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže obchody, kde se dlouho nic nestalo. 0 ukáže ostatní."},{"name":"filter[owner]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"mine ukáže jen tvoje obchody. all ukáže všechny obchody."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[lead]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID jednoho zájemce."},{"name":"filter[stage]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok, ve kterém to je. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridDealData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Vypiš obchody jednoho sloupce nástěnky","description":"Vrátí obchody jedné fáze po stránkách. Pošli `nextCursor` zpátky jako `cursor` a načteš další.\n\nPotřebuje jedno z těchto práv: deals.read."}},"/v1/deals":{"post":{"operationId":"deals.store","tags":["deals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název obchodu, nejvýš 255 znaků."},"estimatedValue":{"type":["string","null"],"pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Kolik obchod může mít hodnotu, než přidáš položky. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy. null ji smaže."},"currency":{"type":"string","description":"Měna jako tři písmena, třeba CZK nebo EUR. Když ji u nového obchodu vynecháš, vezme se z nastavení faktur."},"priceInputMode":{"$ref":"#/components/schemas/PriceInputMode","description":"net, když píšeš ceny bez DPH, gross, když s DPH. Nový obchod má net."},"defaultVatRate":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"DPH pro nové položky. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ho u nového obchodu vynecháš, vezme se z nastavení faktur."},"expectedCloseDate":{"type":["string","null"],"format":"date","description":"Den, kdy čekáš uzavření obchodu, třeba 2026-12-15. null ho smaže."},"closingMode":{"$ref":"#/components/schemas/DealClosingMode"},"closingRequiresPayment":{"type":"boolean"},"closingBankAccountId":{"type":["integer","null"]},"leadId":{"type":"integer","description":"Číslo leadu, kterému prodáváš. Lead nesmí být ztracený."},"stage":{"type":"string","enum":["discovery","qualification","proposal","negotiation"],"description":"Fáze, ve které obchod začne: discovery, qualification, proposal nebo negotiation. Když ji vynecháš, je to discovery."},"winProbability":{"type":"integer","minimum":0,"maximum":100,"description":"Šance na výhru v procentech, od 0 do 100. Když ji vynecháš, použije se šance fáze."},"inquiryId":{"type":"integer","description":"Číslo poptávky stejného leadu, ze které obchod vzniká. Nesmí být zamítnutá ani už mít obchod."}},"required":["name","leadId"]},"example":{"name":"Servis firemních kol 2027","leadId":3051,"stage":"proposal","estimatedValue":"30000","currency":"CZK","priceInputMode":"net","defaultVatRate":"21","expectedCloseDate":"2026-12-15","winProbability":50}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Obchod úspěšně vytvořen.","payload":{"id":615,"leadId":3051,"userId":88,"tenantId":412,"name":"Servis firemních kol 2027","stage":"proposal","estimatedValue":"30000.00","winProbability":50,"currency":"CZK","priceInputMode":"net","defaultVatRate":"21.00","totals":{"net":"0.00","tax":"0.00","gross":"0.00"},"value":"30000.00","lineItems":[],"contacts":[],"documents":[],"requiredDocuments":[],"expectedCloseDate":"2026-12-15","closedAt":null,"lostReason":null,"lostReasonNote":null,"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"qualified","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":1,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"tasks":[],"notes":[],"createdAt":"2026-11-12T13:05:00Z","updatedAt":"2026-11-12T13:05:00Z","activityCount":null,"documentsCount":0,"documentKinds":[],"billingDetailsComplete":true,"hasSubscriptionOrder":false,"closing":{"mode":"confirm","effectiveMode":"sign","isSignForced":true,"requiresPayment":true,"bankAccountId":null,"paymentAccount":{"id":3,"label":"Hlavní účet","accountNumber":"2801234567","bankCode":"2010","iban":null,"swift":null,"currency":"CZK","isDefault":true,"isFromFakturoid":false,"paymentPairing":null},"paymentIban":"CZ1120100000002801234567","isReady":false,"missingCount":1,"checks":[{"key":"items","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"contact","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"document","isOk":false,"issues":["missing_fields"],"documentId":41,"title":"Smlouva o správě webu","isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"account","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null}],"recipient":{"leadContactId":12,"name":"Jan Novák","email":"jan@pekarna-novak.cz","phone":"+420 602 123 456"},"clientLink":null,"hasFakturoid":false},"userName":"Tomáš Malý","invoicesCount":0}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Přidej obchod","description":"Přidá obchod pro lead a vrátí ho. Každá fáze má svou šanci: discovery 20, qualification 35, proposal 50, negotiation 80. Položky přidáš přes `deals.line-items.replace` a kontakty přes `deals.contacts.replace`.\n\nLead ve fázi cold nebo warm se změní na qualified.\n\n> [!WARNING]\n> Změna fáze leadu může spustit sekvence e-mailů tvé firmy. Klíč pak potřebuje i `emails.send`.\n\nChyby: 422 s `payload.metric` crm_records, když tvůj tarif nemá místo pro další záznamy. Obchod se počítá jako 1 záznam.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/deals/{deal}":{"get":{"operationId":"deals.show","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Obchod úspěšně načten.","payload":{"id":615,"leadId":3051,"userId":88,"tenantId":412,"name":"Servis firemních kol 2027","stage":"proposal","estimatedValue":"30000.00","winProbability":50,"currency":"CZK","priceInputMode":"net","defaultVatRate":"21.00","totals":{"net":"26892.00","tax":"5647.32","gross":"32539.32"},"value":"32539.32","lineItems":[{"id":2201,"sortOrder":0,"name":"Roční servis kola","description":"Prohlídka, seřízení brzd a řazení, mazání řetězu.","quantity":"12.000000","unit":"ks","unitPrice":"2490.000000","discountPercent":"10.00","vatRate":"21.00","net":"26892.00","tax":"5647.32","gross":"32539.32","productId":140,"billingInterval":"yearly","giftPeriods":null,"listUnitPrice":null}],"contacts":[{"leadContactId":9120,"roles":["primary","decision_maker"],"leadContact":{"id":9120,"leadId":3051,"contactId":7720,"isPrimary":true,"contactName":"Petr Svoboda","contactEmail":"petr.svoboda@example.cz","contactType":"company"}}],"documents":[],"requiredDocuments":[],"expectedCloseDate":"2026-12-15","closedAt":null,"lostReason":null,"lostReasonNote":null,"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"qualified","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":1,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"tasks":[],"notes":[{"id":4418,"tenantId":412,"userId":88,"user":{"id":88,"firstName":"Jana","lastName":"Nováková"},"noteableType":"deal","noteableId":615,"body":"Poslala jsem nabídku. Rozhodnou se do konce listopadu.","leadOutreachTouchId":null,"outreachTouch":null,"createdAt":"2026-11-12T13:05:00Z","updatedAt":"2026-11-12T13:05:00Z","pinnedAt":null}],"createdAt":"2026-11-12T13:05:00Z","updatedAt":"2026-11-14T10:20:00Z","activityCount":6,"documentsCount":0,"documentKinds":[],"billingDetailsComplete":true,"hasSubscriptionOrder":false,"closing":{"mode":"confirm","effectiveMode":"sign","isSignForced":true,"requiresPayment":true,"bankAccountId":null,"paymentAccount":{"id":3,"label":"Hlavní účet","accountNumber":"2801234567","bankCode":"2010","iban":null,"swift":null,"currency":"CZK","isDefault":true,"isFromFakturoid":false,"paymentPairing":null},"paymentIban":"CZ1120100000002801234567","isReady":false,"missingCount":1,"checks":[{"key":"items","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"contact","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"document","isOk":false,"issues":["missing_fields"],"documentId":41,"title":"Smlouva o správě webu","isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null},{"key":"account","isOk":true,"issues":[],"documentId":null,"title":null,"isSigned":false,"missingFields":[],"templateId":null,"productName":null,"contractScope":null}],"recipient":{"leadContactId":12,"name":"Jan Novák","email":"jan@pekarna-novak.cz","phone":"+420 602 123 456"},"clientLink":null,"hasFakturoid":false},"userName":"Tomáš Malý","invoicesCount":0}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.read"]}],"summary":"Ukaž obchod","description":"Vrátí obchod s jeho položkami, součty, kontakty, dokumenty, úkoly a poznámkami. Peníze jsou text, třeba 12500.00, aby se neztratily haléře.\n\nPotřebuje jedno z těchto práv: deals.read."},"put":{"operationId":"deals.update","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název obchodu, nejvýš 255 znaků. Musíš ho poslat."},"estimatedValue":{"type":["string","null"],"pattern":"^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$","description":"Kolik obchod může mít hodnotu, než přidáš položky. Číslo jako text, třeba 12500.50, s nejvýš 6 desetinnými místy. null ji smaže."},"currency":{"type":"string","description":"Měna jako tři písmena, třeba CZK nebo EUR. Když ji vynecháš, zůstane."},"priceInputMode":{"$ref":"#/components/schemas/PriceInputMode","description":"net, když píšeš ceny bez DPH, gross, když s DPH. Když ho vynecháš, zůstane."},"defaultVatRate":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,2})(?:\\.\\d{1,2})?$","description":"DPH pro nové položky. Procento jako text, třeba 21 nebo 12.5, od 0 do 100. Když ho vynecháš, zůstane."},"expectedCloseDate":{"type":["string","null"],"format":"date","description":"Den, kdy čekáš uzavření obchodu, třeba 2026-12-15. null ho smaže."},"closingMode":{"$ref":"#/components/schemas/DealClosingMode"},"closingRequiresPayment":{"type":"boolean"},"closingBankAccountId":{"type":["integer","null"]}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DealOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["deals.execute"],"x-fusio-opt-in-scopes":["deals.execute"],"summary":"Změň obchod","description":"Změní obchod a vrátí ho. Pole, která vynecháš, si nechají hodnotu, ale `name` je potřeba vždycky.\n\nFázi změníš přes `deals.stage.update`; lead obchodu se změnit nedá.\n\nChyby: 422 u `deal`, když je obchod vyhraný nebo prohraný. U vyhraného obchodu dostane klíč bez `deals.execute` místo toho 403. Vyhraný nebo prohraný obchod je uzavřený. Když ho chceš měnit, nejdřív ho znovu otevři přes `deals.reopen`.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: deals.execute. Tato práva musíš zaškrtnout schválně: deals.execute."},"delete":{"operationId":"deals.destroy","tags":["deals"],"parameters":[{"name":"deal","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo obchodu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["deals.execute"],"x-fusio-opt-in-scopes":["deals.execute"],"summary":"Smaž obchod","description":"Smaže otevřený obchod. Odpověď nemá žádná data.\n\nDostaneš 422, když je obchod vyhraný nebo prohraný, nebo dokud některý jeho dokument čeká na podpisy. U vyhraného obchodu dostane klíč bez `deals.execute` místo toho 403.\n\n> [!CAUTION]\n> API obchod vrátit neumí.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: deals.execute. Tato práva musíš zaškrtnout schválně: deals.execute."}},"/v1/emails/grid":{"get":{"operationId":"emails.grid","tags":["emails"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"sort","in":"query","schema":{"type":"string","enum":["tenantSequence","name","subject","state","publishedAt","createdAt","updatedAt","-tenantSequence","-name","-subject","-state","-publishedAt","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexEmailData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.read"]}],"summary":"Vypiš e-maily v tabulce","description":"Vrátí jednu stránku e-mailů podle filtrů a řazení.\n\nPotřebuje jedno z těchto práv: emails.read."}},"/v1/emails/options":{"get":{"operationId":"emails.options","tags":["emails"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionEmailData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.read"]}],"summary":"Vypiš e-maily pro výběr","description":"Vrátí krátké položky s číslem a názvem každého e-mailu.\n\nPotřebuje jedno z těchto práv: emails.read."}},"/v1/emails/board/summary":{"get":{"operationId":"emails.board.summary","tags":["emails"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.read"]}],"summary":"Spočítej e-maily v každém stavu","description":"Vrátí, kolik e-mailů je v každém sloupci nástěnky.\n\nPotřebuje jedno z těchto práv: emails.read."}},"/v1/emails/board/{status}":{"get":{"operationId":"emails.board.column","tags":["emails"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"]},"description":"Sloupec: drafted, approved, rejected, scheduled, published nebo failed."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexEmailData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.read"]}],"summary":"Vypiš e-maily jednoho sloupce nástěnky","description":"Vrátí e-maily v jednom stavu, stránku po stránce. Pošli `nextCursor` zpátky jako `cursor` a dostaneš další stránku.\n\nPotřebuje jedno z těchto práv: emails.read."}},"/v1/emails/bulk-state":{"patch":{"operationId":"emails.bulk-set-state","tags":["emails"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emailIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":100,"description":"Čísla e-mailů, nejvýš 100."},"state":{"$ref":"#/components/schemas/EmailState","description":"Nový stav pro všechny. Každý stav kromě drafted a rejected potřebuje emails.send."}},"required":["emailIds","state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Přesuň víc e-mailů do jednoho stavu","description":"Posune každý e-mail stejně jako změna stavu jednoho e-mailu. Platí všechno, nebo nic: když jeden e-mail posunout nejde, protože je zamčený nebo ten krok není povolený, neposune se žádný a dostaneš 422. Když některý z e-mailů patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/emails/{email}/state":{"patch":{"operationId":"emails.set-state","tags":["emails"],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo e-mailu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/EmailState","description":"Nový stav. Každý stav kromě drafted a rejected potřebuje emails.send."}},"required":["state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Přesuň e-mail do jiného stavu","description":"Povolené kroky: z drafted na approved nebo rejected, z approved na rejected a z rejected na approved. Na jiné kroky dostaneš 422. Naplánovaný nebo odeslaný e-mail je zamčený a dostaneš taky 422; změň ho přes publikace.\n\n`approved` potřebuje `emails.send`. Když e-mail patří do kampaně, klíč potřebuje i `campaigns.write`.\n\n> [!WARNING]\n> Schválený e-mail se může odeslat sám, když ho používá běžící sekvence.\n\nPotřebuje jedno z těchto práv: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/emails/{email}/fields":{"patch":{"operationId":"emails.update-fields","tags":["emails"],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo e-mailu."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název e-mailu, nejvýš 255 znaků."},"subject":{"type":"string","maxLength":255,"description":"Předmět, nejvýš 255 znaků."},"preheaderText":{"type":["string","null"],"maxLength":255,"description":"Krátký text za předmětem, nejvýš 255 znaků."},"signatureSource":{"type":"string","enum":["organization","user"],"description":"organization použije podpis tvé firmy, user podpis vlastníka."},"sendFromTenantDomainEmailId":{"type":["integer","null"],"description":"Adresa, ze které e-mail přijde, jedna z adres tvé domény."},"replyToTenantDomainEmailId":{"type":["integer","null"],"description":"Adresa, na kterou přijdou odpovědi."},"configuration":{"type":"array","items":{},"description":"Bloky e-mailu z editoru e-mailů. Fusio z nich sestaví HTML. Obrázky smí používat jen soubory, které tvoje firma vidí."},"conditions":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and: lead musí splnit každé pravidlo. or: stačí jedno pravidlo."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"description":"Pravidla na nejvyšší úrovni."},"groups":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí skupiny, od 0."},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and nebo or, pro pravidla v téhle skupině."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"minItems":1,"description":"Pravidla skupiny, aspoň jedno."}},"required":["position","operator","conditions"]},"description":"Skupiny pravidel. Skupina nemůže mít další skupiny."}},"description":"Kdo e-mail dostane: pravidla o leadech. Aspoň 1 a nejvýš 20 pravidel celkem."},"contactScope":{"$ref":"#/components/schemas/EmailRecipientContactScope","description":"primary pošle hlavnímu kontaktu každého leadu, all všem kontaktům."},"contactOverrides":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":"integer","description":"Číslo kontaktu."},"isExcluded":{"type":"boolean","description":"true kontakt vynechá, false ho přidá."}},"required":["contactId","isExcluded"]},"maxItems":500,"uniqueItems":true,"description":"Kontakty, které ručně přidáš nebo vynecháš, nejvýš 500."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Změň pár polí e-mailu","description":"Změní jen pole, která pošleš. Stav se nezmění. Tady jde změnit jen e-mail ve stavu drafted; jinak dostaneš 422.\n\nZměna e-mailu, který běžící sekvence posílá sama, potřebuje `emails.send`. Když e-mail patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/emails":{"post":{"operationId":"emails.store","tags":["emails"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":["string","null"],"enum":["standalone","campaign-broadcast","campaign-sequence",null],"description":"standalone (výchozí) ti dovolí vybrat odesílatele a lidi. campaign-broadcast a campaign-sequence to nechají na kampani; pak neposílej odesílatele, conditions ani contactScope."},"userId":{"type":"integer","description":"Člověk, kterému e-mail patří. Musí to být aktivní člen tvé firmy."},"emailTemplateId":{"type":["integer","null"],"description":"Vzhled, na kterém je e-mail postavený, tvůj nebo od Fusia. Pro žádný pošli null; nevynechávej ho."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém e-mail je."},"languageId":{"type":"integer","description":"Číslo jazyka e-mailu."},"name":{"type":"string","description":"Název e-mailu. Vidí ho jen tvůj tým."},"subject":{"type":"string","description":"Předmět, který lidé uvidí ve schránce."},"sendFromTenantDomainEmailId":{"type":"integer","description":"Adresa, ze které e-mail přijde, jedna z adres tvé domény. Když ji vynecháš, použije se výchozí odesílatel."},"replyToTenantDomainEmailId":{"type":"integer","description":"Adresa, na kterou přijdou odpovědi. Když ji vynecháš, použije se výchozí."},"preheaderText":{"type":["string","null"],"description":"Krátký text, který poštovní aplikace ukáže za předmětem."},"configuration":{"type":"array","items":{},"minItems":1,"description":"Bloky e-mailu z editoru e-mailů. Fusio z nich sestaví HTML. Obrázky smí používat jen soubory, které tvoje firma vidí."},"placeholders":{"type":["array","null"],"items":{},"description":"Zástupné texty, třeba křestní jméno, tak jak je uloží editor e-mailů."},"state":{"$ref":"#/components/schemas/EmailState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje emails.send."},"rejectReason":{"type":["string","null"],"description":"Proč byl e-mail zamítnutý."},"conditions":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and: lead musí splnit každé pravidlo. or: stačí jedno pravidlo."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"description":"Pravidla na nejvyšší úrovni."},"groups":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí skupiny, od 0."},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and nebo or, pro pravidla v téhle skupině."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"minItems":1,"description":"Pravidla skupiny, aspoň jedno."}},"required":["position","operator","conditions"]},"description":"Skupiny pravidel. Skupina nemůže mít další skupiny."}},"description":"Kdo e-mail dostane: pravidla o leadech. Aspoň 1 a nejvýš 20 pravidel celkem."},"contactScope":{"$ref":"#/components/schemas/EmailRecipientContactScope","description":"primary pošle hlavnímu kontaktu každého leadu, all všem kontaktům."},"contactOverrides":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":"integer","description":"Číslo kontaktu."},"isExcluded":{"type":"boolean","description":"true kontakt vynechá, false ho přidá."}},"required":["contactId","isExcluded"]},"maxItems":500,"uniqueItems":true,"description":"Kontakty, které ručně přidáš nebo vynecháš, nejvýš 500."},"campaignId":{"type":["integer","null"],"description":"Číslo kampaně, do které e-mail patří. Klíč pak potřebuje i campaigns.write."}},"required":["userId","emailTemplateId","languageId","name","subject","sendFromTenantDomainEmailId","replyToTenantDomainEmailId","configuration","state","conditions"]},"example":{"userId":88,"emailTemplateId":12,"languageId":2,"name":"Jarní servis kol","subject":"Připrav kolo na jaro","sendFromTenantDomainEmailId":4,"replyToTenantDomainEmailId":4,"preheaderText":"Objednej se na servis ještě tento měsíc.","configuration":[],"state":"drafted","conditions":{"operator":"and","conditions":[{"position":0,"property":"stage","operator":"in","values":["warm","client"]}],"groups":[]},"contactScope":"primary"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateEmailData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"E-mail úspěšně vytvořen","payload":{"id":731,"publication":null,"campaign":null,"userId":88,"tenantId":412,"tenantSequence":19,"emailTemplateId":12,"topicId":null,"languageId":2,"name":"Jarní servis kol","subject":"Připrav kolo na jaro","signatureSource":"organization","creatorHasSenderIdentity":true,"sendFromTenantDomainEmailId":4,"replyToTenantDomainEmailId":4,"fromEmail":"servis@example.cz","replyTo":"servis@example.cz","preheaderText":"Objednej se na servis ještě tento měsíc.","html":"<p>Ahoj, jaro je tady. Objednej se na servis.</p>","configuration":[],"placeholders":[],"unresolvedPlaceholders":[],"state":"drafted","conditions":null,"contactScope":"primary","contactOverrides":[],"rejectReason":null,"updatedAt":"2026-11-12T13:05:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null,"blueprint":null,"emailTemplate":null,"topic":null,"language":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Vytvoř e-mail","description":"Vytvoří e-mail a sestaví jeho HTML. Když pošleš `campaignId`, e-mail se přidá do té kampaně. Odpověď je nový e-mail ve stejném tvaru jako `emails.show`.\n\nStav jiný než `drafted` nebo `rejected` potřebuje `emails.send`.\n\n> [!WARNING]\n> Schválený e-mail se může odeslat sám, když ho používá běžící sekvence.\n\nChyby: 403 `insufficient_scope` bez `emails.send`, 403 s `campaignId` bez `campaigns.write`, 422, když je pole špatně.\n\nPotřebuje jedno z těchto práv: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/emails/{email}":{"get":{"operationId":"emails.show","tags":["emails"],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo e-mailu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateEmailData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"E-mail 731 úspěšně načten","payload":{"id":731,"publication":null,"campaign":null,"userId":88,"tenantId":412,"tenantSequence":19,"emailTemplateId":12,"topicId":null,"languageId":2,"name":"Jarní servis kol","subject":"Připrav kolo na jaro","signatureSource":"organization","creatorHasSenderIdentity":true,"sendFromTenantDomainEmailId":4,"replyToTenantDomainEmailId":4,"fromEmail":"servis@example.cz","replyTo":"servis@example.cz","preheaderText":"Objednej se na servis ještě tento měsíc.","html":"<p>Ahoj, jaro je tady. Objednej se na servis.</p>","configuration":[],"placeholders":[],"unresolvedPlaceholders":[],"state":"drafted","conditions":null,"contactScope":"primary","contactOverrides":[],"rejectReason":null,"updatedAt":"2026-11-12T13:05:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null,"blueprint":null,"emailTemplate":null,"topic":null,"language":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.read"]}],"summary":"Ukaž jeden e-mail","description":"Vrátí jeden e-mail s obsahem, odesílatelem a pravidly, kdo ho dostane.\n\nPotřebuje jedno z těchto práv: emails.read."},"put":{"operationId":"emails.update","tags":["emails"],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo e-mailu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":["string","null"],"enum":["standalone","campaign-broadcast","campaign-sequence",null],"description":"standalone (výchozí) ti dovolí vybrat odesílatele a lidi. campaign-broadcast a campaign-sequence to nechají na kampani; pak neposílej odesílatele, conditions ani contactScope."},"userId":{"type":"integer","description":"Člověk, kterému e-mail patří. Musí to být aktivní člen tvé firmy."},"emailTemplateId":{"type":["integer","null"],"description":"Vzhled, na kterém je e-mail postavený, tvůj nebo od Fusia. Pro žádný pošli null; nevynechávej ho."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém e-mail je."},"languageId":{"type":"integer","description":"Číslo jazyka e-mailu."},"name":{"type":"string","description":"Název e-mailu. Vidí ho jen tvůj tým."},"subject":{"type":"string","description":"Předmět, který lidé uvidí ve schránce."},"sendFromTenantDomainEmailId":{"type":"integer","description":"Adresa, ze které e-mail přijde, jedna z adres tvé domény. Když ji vynecháš, použije se výchozí odesílatel."},"replyToTenantDomainEmailId":{"type":"integer","description":"Adresa, na kterou přijdou odpovědi. Když ji vynecháš, použije se výchozí."},"preheaderText":{"type":["string","null"],"description":"Krátký text, který poštovní aplikace ukáže za předmětem."},"configuration":{"type":"array","items":{},"minItems":1,"description":"Bloky e-mailu z editoru e-mailů. Fusio z nich sestaví HTML. Obrázky smí používat jen soubory, které tvoje firma vidí."},"placeholders":{"type":["array","null"],"items":{},"description":"Zástupné texty, třeba křestní jméno, tak jak je uloží editor e-mailů."},"state":{"$ref":"#/components/schemas/EmailState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje emails.send."},"rejectReason":{"type":["string","null"],"description":"Proč byl e-mail zamítnutý."},"conditions":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and: lead musí splnit každé pravidlo. or: stačí jedno pravidlo."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"description":"Pravidla na nejvyšší úrovni."},"groups":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí skupiny, od 0."},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator","description":"and nebo or, pro pravidla v téhle skupině."},"conditions":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí pravidla, od 0."},"property":{"$ref":"#/components/schemas/ConditionProperty","description":"Na co se pravidlo dívá, třeba stage, tags nebo custom_field."},"customFieldId":{"type":["integer","null"],"description":"Číslo vlastního pole, když je property custom_field."},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"Jak porovnat, třeba equals, in nebo within_days."},"values":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"description":"Hodnoty k porovnání, nejvýš 50. Data piš jako YYYY-MM-DD."}},"required":["position","property","operator","values"]},"minItems":1,"description":"Pravidla skupiny, aspoň jedno."}},"required":["position","operator","conditions"]},"description":"Skupiny pravidel. Skupina nemůže mít další skupiny."}},"description":"Kdo e-mail dostane: pravidla o leadech. Aspoň 1 a nejvýš 20 pravidel celkem."},"contactScope":{"$ref":"#/components/schemas/EmailRecipientContactScope","description":"primary pošle hlavnímu kontaktu každého leadu, all všem kontaktům."},"contactOverrides":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":"integer","description":"Číslo kontaktu."},"isExcluded":{"type":"boolean","description":"true kontakt vynechá, false ho přidá."}},"required":["contactId","isExcluded"]},"maxItems":500,"uniqueItems":true,"description":"Kontakty, které ručně přidáš nebo vynecháš, nejvýš 500."},"id":{"type":"integer","description":"Číslo e-mailu. Musí být stejné jako v adrese."},"signatureSource":{"type":"string","enum":["organization","user"],"description":"organization použije podpis tvé firmy, user podpis vlastníka."}},"required":["userId","emailTemplateId","languageId","name","subject","sendFromTenantDomainEmailId","replyToTenantDomainEmailId","configuration","state","conditions","id"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Změň celý e-mail","description":"Nahradí e-mail. Pošli všechna pole, ne jen změněná.\n\nZměna e-mailu, který není `drafted` ani `rejected`, potřebuje `emails.send`, stejně jako přesun do takového stavu nebo změna e-mailu, který běžící sekvence posílá sama. Když naplánovaný e-mail vrátíš zpátky, jeho publikace se zruší. Když e-mail patří do kampaně, klíč potřebuje i `campaigns.write`.\n\n> [!WARNING]\n> Schválený e-mail se může odeslat sám, když ho používá běžící sekvence.\n\nPotřebuje jedno z těchto práv: emails.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."},"delete":{"operationId":"emails.destroy","tags":["emails"],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo e-mailu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["emails.write"]}],"summary":"Smaž e-mail","description":"Přesune e-mail do koše. Když e-mail patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nChyba: 422, když e-mail používá krok sekvence; nejdřív ho ze sekvence vyndej.\n\nPotřebuje jedno z těchto práv: emails.write."}},"/v1/files/grid":{"get":{"operationId":"files.grid","tags":["files"],"parameters":[{"name":"filter[original]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže jen nahrané soubory, ne jejich menší kopie. Tak je to bez zadání. Jiná hodnota ukáže obojí."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[mimeType]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Typ souboru, třeba image/png."},{"name":"filter[extension]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Konec názvu souboru, třeba pdf nebo png."},{"name":"filter[size]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Velikost souboru v bajtech. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[isAiGenerated]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže soubory, které udělala umělá inteligence. 0 ukáže ostatní."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","size","createdAt","-name","-size","-createdAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexFileData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.read"]}],"summary":"Vypiš soubory v tabulce","description":"Vrátí jednu stránku souborů podle filtrů a řazení. Klíč vidí jen veřejné soubory.\n\nPotřebuje jedno z těchto práv: files.read."}},"/v1/files/options":{"get":{"operationId":"files.options","tags":["files"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[original]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže jen nahrané soubory, ne jejich menší kopie. Tak je to bez zadání. Jiná hodnota ukáže obojí."},{"name":"filter[mimeType]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Typ souboru, třeba image/png."},{"name":"filter[extension]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Konec názvu souboru, třeba pdf nebo png."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionFileData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.read"]}],"summary":"Vypiš soubory pro výběr","description":"Vrátí krátké položky s číslem a názvem každého souboru. Hodí se pro výběr v seznamu. Klíč vidí jen veřejné soubory.\n\nPotřebuje jedno z těchto práv: files.read."}},"/v1/files/extensions":{"get":{"operationId":"files.extensions","tags":["files"],"parameters":[{"name":"sort","in":"query","schema":{"type":["string","null"],"maxLength":200},"description":"Nepoužije se: seznam je vždy seřazený od A do Z."},{"name":"filter[]","in":"query","schema":{"type":"array","items":{"type":["string","null"],"maxLength":500},"maxItems":20},"description":"Zúží soubory: filter[original] hledá v názvu souboru, filter[mimeType] vybere typ, třeba image/png. Jiné filtry se odmítnou."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/FileExtensionsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.read"]}],"summary":"Vypiš použité typy souborů","description":"Vrátí přípony, které tvoje soubory mají. Hodí se pro filtr podle typu. Klíč vidí jen typy veřejných souborů.\n\nPotřebuje jedno z těchto práv: files.read."}},"/v1/files/from-url":{"post":{"operationId":"files.store-from-url","tags":["files"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Webová adresa obrázku, http nebo https, nejvýš 2048 znaků."},"alt":{"type":["string","null"],"maxLength":255,"description":"Krátký text, který říká, co je na obrázku, nejvýš 255 znaků."}},"required":["url"]},"example":{"url":"https://www.example.cz/obrazky/kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Soubor úspěšně vytvořen.","payload":[{"id":5120,"name":"kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě","slug":"kolo-v-lese","extension":"jpg","mimeType":"image/jpeg","size":348211,"width":1600,"height":900,"ratio":1.78,"path":"tenants/412/files/kolo-v-lese.jpg","url":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","hash":"9f2c4e1a7b5d3c8e","isAiGenerated":false,"isImageEdited":false,"isCroppable":true,"createdAt":"2026-11-03T08:30:00Z","usageCount":0,"isInUse":false,"canDelete":true}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.write"]}],"summary":"Nahraj obrázek z webové adresy","description":"Fusio obrázek stáhne a uloží do tvé knihovny. Musí to být jpg, png, gif nebo webp a nejvýš 2 MB. Adresy v soukromých sítích se odmítnou.\n\nTahle adresa dovolí 20 požadavků za minutu.\n\nChyba: 422, když adresa není povolená, nejde přečíst nebo to není obrázek.\n\nPotřebuje jedno z těchto práv: files.write."}},"/v1/files/{file}/download":{"get":{"operationId":"files.download","tags":["files"],"parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo souboru."}],"responses":{"200":{"description":"","content":{"application/octet-stream":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.read"]}],"summary":"Stáhni soubor","description":"Vrátí samotný obsah souboru, s jeho vlastním typem, ne JSON.\n\nChyba: 404, když soubor neexistuje, je soukromý nebo nemá obsah.\n\nPotřebuje jedno z těchto práv: files.read."}},"/v1/files":{"post":{"operationId":"files.store","tags":["files"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["images"],"description":"Pro klíč vždy images."},"images":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string","format":"binary","contentMediaType":"application/octet-stream","description":"Obrázek: jpg, jpeg, png nebo gif, nejvýš 2 MB. SVG se odmítne."},"alt":{"type":["string","null"],"description":"Krátký text, který říká, co je na obrázku."}},"required":["file"]},"minItems":1,"description":"Obrázky k nahrání, aspoň jeden."}},"required":["action","images"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Soubor úspěšně vytvořen.","payload":[{"id":5120,"name":"kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě","slug":"kolo-v-lese","extension":"jpg","mimeType":"image/jpeg","size":348211,"width":1600,"height":900,"ratio":1.78,"path":"tenants/412/files/kolo-v-lese.jpg","url":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","hash":"9f2c4e1a7b5d3c8e","isAiGenerated":false,"isImageEdited":false,"isCroppable":true,"createdAt":"2026-11-03T08:30:00Z","usageCount":0,"isInUse":false,"canDelete":true}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.write"]}],"summary":"Nahraj obrázky","description":"Nahraje obrázky do tvé knihovny. Pošli požadavek jako multipart/form-data, s poli jako `images[0][file]` a `images[0][alt]`.\n\nKlíč smí poslat jen `action` images; jiná akce dá 403 `route_outside_surface`.\n\nChyby: 403, 422, když je obrázek moc velký nebo nemá povolený typ.\n\nPotřebuje jedno z těchto práv: files.write."}},"/v1/files/{file}":{"get":{"operationId":"files.show","tags":["files"],"parameters":[{"name":"file","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo souboru."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/FileDetailData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Soubor úspěšně načten.","payload":{"file":{"id":5120,"name":"kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě","slug":"kolo-v-lese","extension":"jpg","mimeType":"image/jpeg","size":348211,"width":1600,"height":900,"ratio":1.78,"path":"tenants/412/files/kolo-v-lese.jpg","url":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","hash":"9f2c4e1a7b5d3c8e","isAiGenerated":false,"isImageEdited":false,"isCroppable":true,"createdAt":"2026-11-03T08:30:00Z","usageCount":2,"isInUse":true,"canDelete":false},"usageCount":2,"isInUse":true,"canDelete":false,"canReplace":true,"usage":[{"fileId":5120,"entityType":"article","entityId":1284,"entityName":"Jak vybrat horské kolo","role":"banner"},{"fileId":5120,"entityType":"social_post","entityId":902,"entityName":"Tip na jarní servis","role":"attachment"}],"derivatives":[]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["files.read"]}],"summary":"Ukaž jeden soubor","description":"Vrátí soubor s podrobnostmi a s tím, kde se používá.\n\nChyba: 404, když soubor neexistuje nebo je soukromý.\n\nPotřebuje jedno z těchto práv: files.read."}},"/v1/google-ads-search-geo-targets":{"get":{"operationId":"google-ads-search-geo-targets.index","tags":["google-ads-search"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":100},"description":"Název místa, které se hledá, od 2 do 100 znaků."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/GoogleGeoTargetData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Najdi místa pro cílení","description":"Zeptá se Googlu na města, regiony a země, jejichž název sedí k tvému textu. Místa, která vybereš, dej do `targeting.geoTargets` nebo `targeting.excludedGeoTargets` kampaně. Když Google Ads není připojené, dostaneš 409.\n\nTahle adresa dovolí 60 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/google-ads-search-campaigns":{"get":{"operationId":"google-ads-search-campaigns.index","tags":["google-ads-search"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchTreeData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš vyhledávací kampaně Google Ads","description":"Vrátí naráz všechno o tvých vyhledávacích kampaních Google Ads: nastavení a rozpočet, všechny kampaně s reklamními sestavami, klíčovými slovy a reklamami, klíčová slova, která doporučuje tvůj SEO audit, a úlohu, která teď běží.\n\nTahle cesta nebere žádné filtry.\n\nPotřebuje jedno z těchto práv: ads.read."},"post":{"operationId":"google-ads-search-campaigns.store","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít. Když ho vynecháš, Fusio ho složí z druhu a míst."},"campaignKind":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignKind","description":"brand (lidé hledají tvoje jméno), non_brand (hledají to, co prodáváš) nebo competitor (hledají konkurenta)."},"competitorId":{"type":["integer","null"],"description":"Číslo konkurenta. Pošli ho jen, když je campaignKind competitor; pak ho poslat musíš."},"conversionGoalMode":{"$ref":"#/components/schemas/GoogleAdsSearchConversionGoalMode","description":"Co Google počítá jako úspěch: account (cíle tvého účtu Google Ads) nebo own (tvoje události ve Fusiu z ownTrackingEventIds)."},"ownTrackingEventIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla tvých událostí ve Fusiu, které se počítají jako úspěch, nejvýš 20, každé jednou. Když žádné, pošli prázdný seznam."},"budgetAllocationMode":{"$ref":"#/components/schemas/GoogleAdsSearchBudgetAllocationMode","description":"auto (Fusio rozdělí tvůj měsíční rozpočet na Google Search mezi kampaně) nebo manual (ty nastavíš monthlyBudgetAmount)."},"monthlyBudgetAmount":{"type":["number","null"],"minimum":0,"maximum":9999999999999.99,"description":"Kolik smí kampaň utratit za měsíc, třeba 15000.00, nejvýš se 2 desetinnými místy. Pošli ho jen, když je budgetAllocationMode manual; pak ho poslat musíš."},"biddingStrategy":{"$ref":"#/components/schemas/GoogleAdsSearchBiddingStrategy","description":"Jak Google přihazuje o kliknutí: manual_cpc (ty nastavíš nejvyšší cenu kliknutí), maximize_clicks, maximize_conversions nebo target_cpa."},"bidLimitAmount":{"type":["number","null"],"minimum":0.01,"maximum":100000,"description":"Kolik smí Google nejvýš zaplatit za jedno kliknutí, od 0.01 do 100000, nejvýš se 2 desetinnými místy. Když ho vynecháš, limit není."},"startsOn":{"type":["string","null"],"format":"date","description":"První den, kdy se reklamy smí ukazovat, ve tvaru YYYY-MM-DD, dnes nebo později. Když ho vynecháš, začnou hned."},"endsOn":{"type":["string","null"],"format":"date","description":"Poslední den, kdy se reklamy smí ukazovat, ve tvaru YYYY-MM-DD, dnes nebo později a ne dřív než startsOn. Když ho vynecháš, běží bez konce."},"adSchedule":{"$ref":"#/components/schemas/GoogleAdsSearchAdSchedule","description":"Kdy se reklamy ukazují: always nebo business_hours (jen v tvojí otevírací době)."},"targetsSearchPartners":{"type":"boolean","description":"true, když se reklamy mají ukazovat i na webech, které spolupracují s Google Search."},"trackingUrlTemplate":{"type":["string","null"],"maxLength":2048,"description":"Šablona sledování Google Ads pro odkazy, nejvýš 2048 znaků. Když žádnou nechceš, vynech ji."},"businessName":{"type":["string","null"],"maxLength":25,"description":"Název tvé firmy, který se ukazuje v reklamách, nejvýš 25 znaků."},"businessLogoFileId":{"type":["integer","null"],"description":"Číslo tvého čtvercového loga v Souborech. Když žádné, vynech ho."},"businessLandscapeLogoFileId":{"type":["integer","null"],"description":"Číslo tvého širokého loga v Souborech. Když žádné, vynech ho."},"callPhoneNumber":{"type":["string","null"],"description":"Telefonní číslo, na které můžou lidé z reklamy zavolat, v mezinárodním tvaru třeba +420 123 456 789, nebo české číslo."},"imageFileIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla obrázků v Souborech, které se ukazují s reklamami, nejvýš 20, každé jednou."},"targeting":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1, nebo ji vynech."},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope","description":"countries (celé země z countryCodes), global (celý svět) nebo locations (místa z geoTargets)."},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"maxItems":10,"uniqueItems":true,"description":"Země, každá jako dvě velká písmena, třeba CZ, nejvýš 10. Když země nevybíráš, pošli prázdný seznam."},"geoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazují, nejvýš 10. Najdeš je přes `google-ads-search-geo-targets.index`. Potřeba, když je scope locations, a jen tehdy."},"excludedGeoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazovat nesmí, nejvýš 10. Místo nesmí být v obou seznamech."},"locationMatching":{"type":"string","enum":["presence","presence_or_interest"],"description":"presence (lidé, kteří na místě jsou) nebo presence_or_interest (i lidé, kteří místo hledají). Když ho vynecháš, je to presence_or_interest."},"languageCode":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Jazyk lidí, jako 2 nebo 3 malá písmena, třeba cs."}},"required":["scope","countryCodes","languageCode"],"description":"Kde se reklamy ukazují a v jakém jazyce."},"adGroup":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název reklamní sestavy, nejvýš 255 znaků. Když ho vynecháš, použije se název kampaně."},"landingPageDecision":{"type":"string","enum":["homepage","existing_page","new_landing_page"],"description":"Kam reklama vede: homepage, existing_page (stránka, kterou máš) nebo new_landing_page (stránka, kterou ještě musíš udělat)."},"destinationUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam reklama vede, nejvýš 2048 znaků."},"mobileFinalUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Jiná adresa pro telefony, začíná https://, nejvýš 2048 znaků. Když ji vynecháš, použije se destinationUrl."},"landingPageBrief":{"type":["string","null"],"maxLength":4000,"description":"Co má nová vstupní stránka říkat, nejvýš 4000 znaků. Použij ho s new_landing_page."},"keywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":["string","null"],"maxLength":80,"description":"Klíčové slovo, nejvýš 80 znaků."},"matchType":{"type":"string","enum":["exact","phrase"],"description":"exact (jen přesně tohle hledání) nebo phrase (hledání, která tahle slova obsahují v tomhle pořadí)."}},"required":["matchType"]},"maxItems":200,"description":"Klíčová slova, která lidé hledají, nejvýš 200."},"negativeKeywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":["string","null"],"maxLength":80,"description":"Vylučující klíčové slovo, nejvýš 80 znaků."},"matchType":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMatchType","description":"exact, phrase nebo broad (každé hledání s těmi slovy, v jakémkoli pořadí)."}},"required":["matchType"]},"maxItems":200,"description":"Klíčová slova, u kterých se reklamy ukazovat nesmí, nejvýš 200."},"searchAd":{"type":["object","null"],"properties":{"headlines":{"type":"array","items":{"type":["string","null"],"maxLength":30},"maxItems":15,"description":"Nadpisy reklamy, nejvýš 15, každý nejvýš 30 znaků."},"descriptions":{"type":"array","items":{"type":["string","null"],"maxLength":90},"maxItems":4,"description":"Popisy reklamy, nejvýš 4, každý nejvýš 90 znaků."},"path1":{"type":["string","null"],"maxLength":15,"description":"První slovo cesty, která se v reklamě ukazuje za tvou doménou, nejvýš 15 znaků."},"path2":{"type":["string","null"],"maxLength":15,"description":"Druhé slovo té cesty, nejvýš 15 znaků."},"sitelinks":{"type":"array","items":{"type":"object","properties":{"text":{"type":["string","null"],"maxLength":25,"description":"Text odkazu, nejvýš 25 znaků."},"description1":{"type":["string","null"],"maxLength":35,"description":"První řádek pod odkazem, nejvýš 35 znaků."},"description2":{"type":["string","null"],"maxLength":35,"description":"Druhý řádek pod odkazem, nejvýš 35 znaků."},"finalUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam odkaz vede, nejvýš 2048 znaků."}}},"maxItems":6,"description":"Další odkazy pod reklamou, nejvýš 6."},"callouts":{"type":"array","items":{"type":["string","null"],"maxLength":25},"maxItems":10,"description":"Krátké doplňující texty pod reklamou, nejvýš 10, každý nejvýš 25 znaků."},"headlinePins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":3},"maxItems":15,"description":"Kde musí který nadpis stát: jedna položka za každý nadpis, ve stejném pořadí. 1, 2 nebo 3 ho připne na to místo; null nechá vybrat Google."},"descriptionPins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":2},"maxItems":4,"description":"Kde musí který popis stát: jedna položka za každý popis, ve stejném pořadí. 1 nebo 2 ho připne na to místo; null nechá vybrat Google."},"snippetHeader":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchSnippetHeader"},{"type":"null"}],"description":"Nadpis seznamu věcí, které nabízíš. Jeden z: brands, amenities, styles, types, destinations, services, courses, neighborhoods, shows, insurance_coverage, degree_programs, featured_hotels, models. null, když seznam nechceš."},"snippets":{"type":"array","items":{"type":"string","maxLength":25},"maxItems":10,"description":"Položky toho seznamu, nejvýš 10, každá nejvýš 25 znaků. Potřeba, když posíláš snippetHeader."}},"description":"Texty vyhledávací reklamy. Když je napíšeš později, vynech je."}},"required":["landingPageDecision","keywords","negativeKeywords"],"description":"Jediná reklamní sestava kampaně: její vstupní stránka, klíčová slova a reklama."}},"required":["campaignKind","conversionGoalMode","ownTrackingEventIds","budgetAllocationMode","biddingStrategy","adSchedule","targetsSearchPartners","targeting","adGroup"]},"example":{"name":"Servis kol Brno","campaignKind":"non_brand","conversionGoalMode":"account","ownTrackingEventIds":[],"budgetAllocationMode":"auto","biddingStrategy":"maximize_clicks","adSchedule":"always","targetsSearchPartners":false,"targeting":{"scope":"countries","countryCodes":["CZ"],"languageCode":"cs"},"adGroup":{"name":"Servis kol","landingPageDecision":"existing_page","destinationUrl":"https://www.example.cz/servis","keywords":[{"keyword":"servis kol brno","matchType":"phrase"},{"keyword":"oprava kola","matchType":"phrase"}],"negativeKeywords":[{"keyword":"zdarma","matchType":"broad"}]}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"id":96,"sourceSeoAuditId":null,"name":"Servis kol Brno","utmSlug":"servis-kol-brno","campaignKind":"non_brand","origin":"manual","status":"draft","isDetachedFromAccount":false,"adAccountId":31,"adAccountName":"Cyklo Novák","viability":"recommended","monthlyBudgetAmount":"6000.00","budgetCurrencyCode":"CZK","budgetAllocationMode":"auto","biddingStrategy":"maximize_clicks","bidLimitAmount":null,"startsOn":null,"endsOn":null,"adSchedule":"always","targetsSearchPartners":false,"trackingUrlTemplate":null,"businessName":null,"businessLogo":null,"businessLandscapeLogo":null,"callPhoneNumber":null,"images":[],"skippedOptionalAssets":[],"createOnlySettingsLocked":false,"targeting":{"schemaVersion":1,"scope":"countries","countryCodes":["CZ"],"languageCode":"cs","geoTargets":[],"excludedGeoTargets":[],"locationMatching":"presence"},"targetingResearchCurrent":true,"rationale":null,"googleFinalUrlSuffix":"utm_source=google&utm_medium=cpc&utm_campaign=servis-kol-brno","googleUrlSuffixState":"pending","googleUrlSuffixError":null,"usesOwnConversionGoals":false,"generationStage":null,"generationBrief":null,"generationError":null,"competitorId":null,"conversionGoalMode":"account","ownTrackingEventIds":[],"conversionGoalReason":null,"adScheduleReason":null,"isAiGenerated":false,"adGroups":[{"id":210,"googleAdsSearchCampaignId":96,"name":"Servis kol","description":null,"searchIntent":null,"status":"draft","priorityScore":null,"rationale":null,"researchQuality":null,"researchQualityReason":null,"researchDiagnostics":null,"landingPageDecision":"existing_page","destinationUrl":"https://www.example.cz/servis","mobileFinalUrl":null,"verifiedUrls":["https://www.example.cz/servis"],"searchAd":null,"searchAdGenerationStatus":"idle","searchAdGenerationError":null,"searchAdGeneratedAt":null,"landingPageFitScore":null,"landingPageReason":null,"landingPageBrief":null,"forecastImpressions":null,"forecastClicks":null,"forecastCost":null,"forecastAverageCpc":null,"forecastedAt":null,"sortOrder":0,"updatedAt":"2026-11-03T08:30:00Z","revision":"1","keywords":[],"excludedSearchAdTexts":{"headlines":[],"descriptions":[],"sitelinks":[],"callouts":[]}}],"latestDeployment":null,"approvalBlockers":["search_ad_missing"],"issue":null,"tenantSequence":12,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Vytvoř vyhledávací kampaň Google Ads","description":"Vytvoří koncept vyhledávací kampaně s jednou reklamní sestavou z toho, co pošleš, a odpoví 201. Do Google Ads zatím nic nejde.\n\nTexty reklamy můžeš nechat na později a napsat je přes `google-ads-search-ad-groups.search-ad.generate`. Když se rozpočet nevejde do tvého měsíčního rozpočtu na Google Search, dostaneš 422. Potom kampaň schval přes `google-ads-search-campaigns.approve`.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search/overview":{"get":{"operationId":"google-ads-search.overview","tags":["google-ads-search"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[campaignId]","in":"query","schema":{"type":["integer","null"]},"description":"Jen tahle tvoje kampaň. Když ho vynecháš, jsou to všechny."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž přehled vyhledávání Google Ads","description":"Vrátí, jak se tvým vyhledávacím kampaním dařilo za období: zobrazení, kliknutí a útratu z Google Ads a návštěvy, leady a klienty, které z nich vidělo Fusio.\n\nTahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/google-ads-search-campaigns/{campaign}":{"put":{"operationId":"google-ads-search-campaigns.update","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít. Když ho vynecháš, zůstane."},"campaignKind":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignKind","description":"brand, non_brand nebo competitor. Když ho vynecháš, zůstane."},"viability":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignViability","description":"Kolik lidí to hledá: recommended, limited nebo insufficient_demand. Když ho vynecháš, zůstane."},"monthlyBudgetAmount":{"type":"number","minimum":0,"maximum":9999999999999.99,"description":"Kolik smí kampaň utratit za měsíc, nejvýš se 2 desetinnými místy. Když ho pošleš, rozpočet se přepne na manual. Když ho vynecháš, zůstane."},"budgetAllocationMode":{"$ref":"#/components/schemas/GoogleAdsSearchBudgetAllocationMode","description":"auto (rozpočet rozdělí Fusio) nebo manual (ty). Když ho vynecháš, zůstane."},"rationale":{"type":["string","null"],"maxLength":65535,"description":"Proč kampaň existuje, nejvýš 65535 znaků. Když ho vynecháš, zůstane."},"sourceSeoAuditId":{"type":["integer","null"],"description":"Číslo SEO auditu, ze kterého kampaň vznikla, nebo null. Když ho vynecháš, zůstane."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň vyhledávací kampaň Google Ads","description":"Změní základní údaje konceptu kampaně a vrátí ho. Změna rozpočtu znovu rozdělí tvůj měsíční rozpočet mezi kampaně. Měnit jde jen koncept; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"google-ads-search-campaigns.destroy","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Odeber vyhledávací kampaň Google Ads","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nOdebere koncept kampaně i s reklamní sestavou a klíčovými slovy a znovu rozdělí tvůj měsíční rozpočet mezi ostatní kampaně. Odebrat jde jen koncept; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/draft":{"put":{"operationId":"google-ads-search-campaigns.draft.update","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít. Když ho vynecháš, Fusio ho složí z druhu a míst."},"campaignKind":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignKind","description":"brand (lidé hledají tvoje jméno), non_brand (hledají to, co prodáváš) nebo competitor (hledají konkurenta)."},"competitorId":{"type":["integer","null"],"description":"Číslo konkurenta. Pošli ho jen, když je campaignKind competitor; pak ho poslat musíš."},"conversionGoalMode":{"$ref":"#/components/schemas/GoogleAdsSearchConversionGoalMode","description":"Co Google počítá jako úspěch: account (cíle tvého účtu Google Ads) nebo own (tvoje události ve Fusiu z ownTrackingEventIds)."},"ownTrackingEventIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla tvých událostí ve Fusiu, které se počítají jako úspěch, nejvýš 20, každé jednou. Když žádné, pošli prázdný seznam."},"budgetAllocationMode":{"$ref":"#/components/schemas/GoogleAdsSearchBudgetAllocationMode","description":"auto (Fusio rozdělí tvůj měsíční rozpočet na Google Search mezi kampaně) nebo manual (ty nastavíš monthlyBudgetAmount)."},"monthlyBudgetAmount":{"type":["number","null"],"minimum":0,"maximum":9999999999999.99,"description":"Kolik smí kampaň utratit za měsíc, třeba 15000.00, nejvýš se 2 desetinnými místy. Pošli ho jen, když je budgetAllocationMode manual; pak ho poslat musíš."},"biddingStrategy":{"$ref":"#/components/schemas/GoogleAdsSearchBiddingStrategy","description":"Jak Google přihazuje o kliknutí: manual_cpc (ty nastavíš nejvyšší cenu kliknutí), maximize_clicks, maximize_conversions nebo target_cpa."},"bidLimitAmount":{"type":["number","null"],"minimum":0.01,"maximum":100000,"description":"Kolik smí Google nejvýš zaplatit za jedno kliknutí, od 0.01 do 100000, nejvýš se 2 desetinnými místy. Když ho vynecháš, limit není."},"startsOn":{"type":["string","null"],"format":"date","description":"První den, kdy se reklamy smí ukazovat, ve tvaru YYYY-MM-DD, dnes nebo později. Když ho vynecháš, začnou hned."},"endsOn":{"type":["string","null"],"format":"date","description":"Poslední den, kdy se reklamy smí ukazovat, ve tvaru YYYY-MM-DD, dnes nebo později a ne dřív než startsOn. Když ho vynecháš, běží bez konce."},"adSchedule":{"$ref":"#/components/schemas/GoogleAdsSearchAdSchedule","description":"Kdy se reklamy ukazují: always nebo business_hours (jen v tvojí otevírací době)."},"targetsSearchPartners":{"type":"boolean","description":"true, když se reklamy mají ukazovat i na webech, které spolupracují s Google Search."},"trackingUrlTemplate":{"type":["string","null"],"maxLength":2048,"description":"Šablona sledování Google Ads pro odkazy, nejvýš 2048 znaků. Když žádnou nechceš, vynech ji."},"businessName":{"type":["string","null"],"maxLength":25,"description":"Název tvé firmy, který se ukazuje v reklamách, nejvýš 25 znaků."},"businessLogoFileId":{"type":["integer","null"],"description":"Číslo tvého čtvercového loga v Souborech. Když žádné, vynech ho."},"businessLandscapeLogoFileId":{"type":["integer","null"],"description":"Číslo tvého širokého loga v Souborech. Když žádné, vynech ho."},"callPhoneNumber":{"type":["string","null"],"description":"Telefonní číslo, na které můžou lidé z reklamy zavolat, v mezinárodním tvaru třeba +420 123 456 789, nebo české číslo."},"imageFileIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla obrázků v Souborech, které se ukazují s reklamami, nejvýš 20, každé jednou."},"targeting":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1, nebo ji vynech."},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope","description":"countries (celé země z countryCodes), global (celý svět) nebo locations (místa z geoTargets)."},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"maxItems":10,"uniqueItems":true,"description":"Země, každá jako dvě velká písmena, třeba CZ, nejvýš 10. Když země nevybíráš, pošli prázdný seznam."},"geoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazují, nejvýš 10. Najdeš je přes `google-ads-search-geo-targets.index`. Potřeba, když je scope locations, a jen tehdy."},"excludedGeoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazovat nesmí, nejvýš 10. Místo nesmí být v obou seznamech."},"locationMatching":{"type":"string","enum":["presence","presence_or_interest"],"description":"presence (lidé, kteří na místě jsou) nebo presence_or_interest (i lidé, kteří místo hledají). Když ho vynecháš, je to presence_or_interest."},"languageCode":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Jazyk lidí, jako 2 nebo 3 malá písmena, třeba cs."}},"required":["scope","countryCodes","languageCode"],"description":"Kde se reklamy ukazují a v jakém jazyce."},"adGroup":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název reklamní sestavy, nejvýš 255 znaků. Když ho vynecháš, použije se název kampaně."},"landingPageDecision":{"type":"string","enum":["homepage","existing_page","new_landing_page"],"description":"Kam reklama vede: homepage, existing_page (stránka, kterou máš) nebo new_landing_page (stránka, kterou ještě musíš udělat)."},"destinationUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam reklama vede, nejvýš 2048 znaků."},"mobileFinalUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Jiná adresa pro telefony, začíná https://, nejvýš 2048 znaků. Když ji vynecháš, použije se destinationUrl."},"landingPageBrief":{"type":["string","null"],"maxLength":4000,"description":"Co má nová vstupní stránka říkat, nejvýš 4000 znaků. Použij ho s new_landing_page."},"keywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":["string","null"],"maxLength":80,"description":"Klíčové slovo, nejvýš 80 znaků."},"matchType":{"type":"string","enum":["exact","phrase"],"description":"exact (jen přesně tohle hledání) nebo phrase (hledání, která tahle slova obsahují v tomhle pořadí)."}},"required":["matchType"]},"maxItems":200,"description":"Klíčová slova, která lidé hledají, nejvýš 200."},"negativeKeywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":["string","null"],"maxLength":80,"description":"Vylučující klíčové slovo, nejvýš 80 znaků."},"matchType":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMatchType","description":"exact, phrase nebo broad (každé hledání s těmi slovy, v jakémkoli pořadí)."}},"required":["matchType"]},"maxItems":200,"description":"Klíčová slova, u kterých se reklamy ukazovat nesmí, nejvýš 200."},"searchAd":{"type":["object","null"],"properties":{"headlines":{"type":"array","items":{"type":["string","null"],"maxLength":30},"maxItems":15,"description":"Nadpisy reklamy, nejvýš 15, každý nejvýš 30 znaků."},"descriptions":{"type":"array","items":{"type":["string","null"],"maxLength":90},"maxItems":4,"description":"Popisy reklamy, nejvýš 4, každý nejvýš 90 znaků."},"path1":{"type":["string","null"],"maxLength":15,"description":"První slovo cesty, která se v reklamě ukazuje za tvou doménou, nejvýš 15 znaků."},"path2":{"type":["string","null"],"maxLength":15,"description":"Druhé slovo té cesty, nejvýš 15 znaků."},"sitelinks":{"type":"array","items":{"type":"object","properties":{"text":{"type":["string","null"],"maxLength":25,"description":"Text odkazu, nejvýš 25 znaků."},"description1":{"type":["string","null"],"maxLength":35,"description":"První řádek pod odkazem, nejvýš 35 znaků."},"description2":{"type":["string","null"],"maxLength":35,"description":"Druhý řádek pod odkazem, nejvýš 35 znaků."},"finalUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam odkaz vede, nejvýš 2048 znaků."}}},"maxItems":6,"description":"Další odkazy pod reklamou, nejvýš 6."},"callouts":{"type":"array","items":{"type":["string","null"],"maxLength":25},"maxItems":10,"description":"Krátké doplňující texty pod reklamou, nejvýš 10, každý nejvýš 25 znaků."},"headlinePins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":3},"maxItems":15,"description":"Kde musí který nadpis stát: jedna položka za každý nadpis, ve stejném pořadí. 1, 2 nebo 3 ho připne na to místo; null nechá vybrat Google."},"descriptionPins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":2},"maxItems":4,"description":"Kde musí který popis stát: jedna položka za každý popis, ve stejném pořadí. 1 nebo 2 ho připne na to místo; null nechá vybrat Google."},"snippetHeader":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchSnippetHeader"},{"type":"null"}],"description":"Nadpis seznamu věcí, které nabízíš. Jeden z: brands, amenities, styles, types, destinations, services, courses, neighborhoods, shows, insurance_coverage, degree_programs, featured_hotels, models. null, když seznam nechceš."},"snippets":{"type":"array","items":{"type":"string","maxLength":25},"maxItems":10,"description":"Položky toho seznamu, nejvýš 10, každá nejvýš 25 znaků. Potřeba, když posíláš snippetHeader."}},"description":"Texty vyhledávací reklamy. Když je napíšeš později, vynech je."}},"required":["landingPageDecision","keywords","negativeKeywords"],"description":"Jediná reklamní sestava kampaně: její vstupní stránka, klíčová slova a reklama."}},"required":["campaignKind","conversionGoalMode","ownTrackingEventIds","budgetAllocationMode","biddingStrategy","adSchedule","targetsSearchPartners","targeting","adGroup"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google"],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Ulož celý koncept kampaně","description":"> [!WARNING]\n> Když vybereš vlastní události ve Fusiu, které už posílají výsledky do Google Ads, tohle je začne posílat znovu. Pak klíč potřebuje `ads.execute.google`.\n\nUloží celý plán kampaně naráz, stejná pole jako `google-ads-search-campaigns.store`, a vrátí ho.\n\nDostaneš 409, dokud AI kampaň ještě staví nebo píše její reklamu, a když má kampaň víc než jednu reklamní sestavu. Některá nastavení jdou do Google Ads jen při vzniku kampaně; potom jejich změna dostane 422.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-campaigns/{campaign}/targeting":{"put":{"operationId":"google-ads-search-campaigns.targeting.update","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targeting":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1."},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope","description":"countries (celé země z countryCodes), global (celý svět) nebo locations (místa z geoTargets)."},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"maxItems":10,"uniqueItems":true,"description":"Země, každá jako dvě velká písmena, třeba CZ, nejvýš 10. Když země nevybíráš, pošli prázdný seznam."},"geoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazují, nejvýš 10. Najdeš je přes `google-ads-search-geo-targets.index`. Potřeba, když je scope locations, a jen tehdy."},"excludedGeoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazovat nesmí, nejvýš 10. Místo nesmí být v obou seznamech."},"locationMatching":{"type":"string","enum":["presence","presence_or_interest"],"description":"presence (lidé, kteří na místě jsou) nebo presence_or_interest (i lidé, kteří místo hledají). Když ho vynecháš, je to presence_or_interest."},"languageCode":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Jazyk lidí, jako 2 nebo 3 malá písmena, třeba cs."}},"required":["schemaVersion","scope","countryCodes","languageCode"],"description":"Kde se reklamy ukazují a v jakém jazyce."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["targeting"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchOperationData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Změň, kde se kampaň ukazuje","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nUloží nová místa a jazyk konceptu kampaně a spustí úlohu na pozadí. V ní AI znovu prozkoumá klíčová slova pro nová místa. Odpověď je 202 s úlohou; sleduj ji přes `google-ads-search-operations.show`.\n\nDostaneš 409, když musíš Google Ads připojit znovu nebo už běží jiná úloha, a 422, když Google Ads není úplně připojené nebo kampaň teď místa měnit nemůže.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/assets":{"put":{"operationId":"google-ads-search-campaigns.assets.update","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"businessName":{"type":["string","null"],"maxLength":25,"description":"Název tvé firmy, který se ukazuje v reklamách, nejvýš 25 znaků. null ho odebere."},"businessLogoFileId":{"type":["integer","null"],"description":"Číslo tvého čtvercového loga v Souborech. null ho odebere."},"businessLandscapeLogoFileId":{"type":["integer","null"],"description":"Číslo tvého širokého loga v Souborech. null ho odebere."},"callPhoneNumber":{"type":["string","null"],"description":"Telefonní číslo, na které můžou lidé z reklamy zavolat, v mezinárodním tvaru nebo jako české číslo. null ho odebere."},"imageFileIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla obrázků v Souborech, které se ukazují s reklamami, nejvýš 20, každé jednou. Seznam nahradí ten starý; když žádné, pošli prázdný seznam."},"expectedUpdatedAt":{"type":"string","maxLength":64,"description":"`updatedAt` kampaně, které jsi předtím načetl. Když kampaň mezitím někdo změnil, nic se neuloží a dostaneš 409."}},"required":["imageFileIds","expectedUpdatedAt"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google"],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Změň doplňky kampaně","description":"> [!WARNING]\n> U kampaně, která není koncept, tohle mění živou kampaň v Google Ads. Pak klíč potřebuje `ads.execute.google`.\n\nUloží název firmy, loga, telefonní číslo a obrázky, které se ukazují s reklamami, a vrátí kampaň.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-campaigns/{campaign}/approve":{"post":{"operationId":"google-ads-search-campaigns.approve","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Schval vyhledávací kampaň Google Ads","description":"> [!WARNING]\n> Tohle připraví kampaň k odeslání do Google Ads. Na to klíč potřebuje `ads.execute.google`.\n\nSchválí koncept kampaně a vrátí ho. Potom ji pošli přes `google-ads-search-campaigns.google-ads.deploy`.\n\nKdyž se musí nejdřív něco opravit, dostaneš 422 se seznamem v `payload.blockers`. Schválit jde jen koncept; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."},"delete":{"operationId":"google-ads-search-campaigns.unapprove","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Vrať kampaň do konceptu","description":"Vrátí schválenou kampaň zpátky do konceptu, abys ji mohl měnit, a vrátí ji. Vrátit jde jen schválenou kampaň; jinak dostaneš 403. Když kampaň v Google Ads běží, nejdřív ji pozastav; jinak dostaneš 422. 422 dostaneš i ve chvíli, kdy se do Google Ads právě odesílá jiná změna; chvíli počkej a zkus to znovu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/google-ads/preflight":{"get":{"operationId":"google-ads-search-campaigns.google-ads.preflight","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsDeploymentPreflightData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zkontroluj kampaň před odesláním","description":"Řekne ti, jestli kampaň může jít do Google Ads teď, co tomu brání a kolik by utratila za den. Nic se neposílá. Vezmi odtud `planRevision` a pošli ho do `google-ads-search-campaigns.google-ads.deploy`.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/google-ads/deploy":{"post":{"operationId":"google-ads-search-campaigns.google-ads.deploy","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planRevision":{"type":"string","pattern":"^[a-f0-9]{64}$","minLength":64,"maxLength":64,"description":"`planRevision` z `google-ads-search-campaigns.google-ads.preflight`: 64 malých písmen a číslic. Když se plán mezitím změnil, dostaneš 422."},"idempotencyKey":{"type":"string","format":"uuid","description":"UUID, které si pro tohle odeslání vytvoříš. Když to zkoušíš znovu, pošli stejné, aby kampaň nevznikla dvakrát."}},"required":["planRevision","idempotencyKey"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Pošli kampaň do Google Ads","description":"> [!WARNING]\n> Tohle vytvoří kampaň v tvém účtu Google Ads. Na to klíč potřebuje `ads.execute.google`.\n\nPošle schválenou kampaň do Google Ads a vrátí nasazení. Kampaň dorazí pozastavená, takže se nic neutratí, dokud ji nespustíš přes `ad-deployments.google-ads.status`.\n\nStejný `idempotencyKey` vrátí stejné nasazení. Stejný klíč s jiným plánem dostane 409. Dostaneš 422, když kampaň není připravená, a 409, když musíš Google Ads připojit znovu. Kampaň, která těsně před odesláním přestane být schválená, dostane 422 u `deployment`.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-campaigns/{campaign}/conversion-goal-mode":{"put":{"operationId":"google-ads-search-campaigns.conversion-goal-mode.update","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/GoogleAdsSearchConversionGoalMode","description":"account (cíle tvého účtu Google Ads) nebo own (tvoje vlastní události ve Fusiu)."}},"required":["mode"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignConversionGoalModeData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google"],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Vyber, co se počítá jako úspěch","description":"> [!WARNING]\n> U kampaně, která není koncept, tohle mění živou kampaň v Google Ads. Pak klíč potřebuje `ads.execute.google`.\n\nNastaví, které výsledky Google u kampaně počítá jako úspěch.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-campaigns/reforecast":{"post":{"operationId":"google-ads-search-campaigns.reforecast","tags":["google-ads-search"],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchOperationData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Odhadni všechny kampaně znovu","description":"Spustí úlohu na pozadí, která se znovu zeptá Googlu, kolik zobrazení, kliknutí a nákladů můžou tvoje kampaně mít. Odpověď je 202 s úlohou; sleduj ji přes `google-ads-search-operations.show`.\n\nDostaneš 422, když Google Ads zatím odhadovat nemůže, třeba když jeho účet na to není nastavený, a 409, když musíš Google Ads připojit znovu nebo už běží jiná úloha.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-campaigns/brief-picks":{"post":{"operationId":"google-ads-search-campaigns.brief-picks","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignKind":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignKind","description":"brand, non_brand nebo competitor."},"brief":{"type":"string","minLength":20,"maxLength":4000,"description":"O čem má kampaň být, od 20 do 4000 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["campaignKind","brief"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchBriefPicksOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI vybrat stránku a cíl","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPřečte tvoje zadání a pomocí AI vybere nejlepší vstupní stránku z tvého webu a co se má počítat jako úspěch. Nic se neuloží; výběr použij, když voláš `google-ads-search-campaigns.generate`.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-campaigns/generate":{"post":{"operationId":"google-ads-search-campaigns.generate","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignKind":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignKind","description":"brand, non_brand nebo competitor."},"competitorId":{"type":["integer","null"],"description":"Číslo konkurenta. Pošli ho jen, když je campaignKind competitor; pak ho poslat musíš."},"brief":{"type":"string","minLength":20,"maxLength":4000,"description":"O čem má kampaň být, od 20 do 4000 znaků."},"landingPageUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam mají reklamy vést, nejvýš 2048 znaků. Když ji vynecháš, vybere ji AI."},"conversionGoalMode":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchConversionGoalMode"},{"type":"null"}],"description":"account nebo own. Když ho vynecháš, vybere AI."},"ownTrackingEventIds":{"type":"array","items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla tvých událostí ve Fusiu, které se počítají jako úspěch, nejvýš 20, každé jednou. Potřeba, když je conversionGoalMode own."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["campaignKind","brief"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdCampaignGenerationOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI postavit kampaň","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nVytvoří koncept kampaně a nechá ho AI postavit na pozadí: prozkoumá klíčová slova, vybere vstupní stránku, nastaví rozpočet a napíše reklamu. Odpověď je 202 s kampaní a úlohou; úlohu sleduj přes `google-ads-search-operations.show`.\n\nDostaneš 422, když ještě nemáš měsíční rozpočet na Google Search nebo Google Ads není úplně připojené, a 409, když musíš Google Ads připojit znovu nebo už běží jiná úloha.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/generate/retry":{"post":{"operationId":"google-ads-search-campaigns.generate.retry","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdCampaignGenerationOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI zkusit selhanou kampaň znovu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nSpustí stavbu kampaně pomocí AI znovu poté, co selhala. Odpověď je 202 s kampaní a novou úlohou. Když stavba neselhala, když musíš Google Ads připojit znovu nebo když už běží jiná úloha, dostaneš 409. 422 dostaneš ze stejných důvodů jako u `google-ads-search-campaigns.generate`.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-campaigns/bulk-delete":{"post":{"operationId":"google-ads-search-campaigns.bulk-delete","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Čísla kampaní k odebrání, od 1 do 100, každé jednou."}},"required":["campaignIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Odeber víc kampaní naráz","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nOdebere koncepty kampaní i s reklamními sestavami a klíčovými slovy. Všechny musí být koncepty; když jeden není, nic se neodebere a dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-campaigns/{campaign}/duplicate":{"post":{"operationId":"google-ads-search-campaigns.duplicate","tags":["google-ads-search"],"parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kopie, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít."}},"required":["name"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zkopíruj vyhledávací kampaň Google Ads","description":"Vytvoří koncept, kopii kampaně i s reklamními sestavami, klíčovými slovy a reklamami, a odpoví 201 s kopií. Do Google Ads nic nejde.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-landing-pages":{"get":{"operationId":"google-ads-search-landing-pages.index","tags":["google-ads-search"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchLandingPageOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš stránky, kam smí reklamy vést","description":"Vrátí stránky tvého webu, kam smí reklamy vést. Pochází z tvé ověřené domény a analýzy webu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/google-ads-search-landing-pages/check":{"post":{"operationId":"google-ads-search-landing-pages.check","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"description":"Adresa stránky, nejvýš 2048 znaků."}},"required":["url"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchLandingPageCheckOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zkontroluj vstupní stránku","description":"Otevře stránku a řekne ti, jestli tam smí reklama vést. Stránka musí být na tvém webu a musí fungovat.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-keyword-metrics":{"post":{"operationId":"google-ads-search-keyword-metrics.store","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"integer","description":"Číslo kampaně, pro kterou klíčová slova jsou."},"keywords":{"type":"array","items":{"type":"string","maxLength":80},"minItems":1,"maxItems":50,"description":"Klíčová slova, od 1 do 50, každé nejvýš 80 znaků."},"targeting":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1, nebo ji vynech."},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope","description":"countries (celé země z countryCodes), global (celý svět) nebo locations (místa z geoTargets)."},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"maxItems":10,"uniqueItems":true,"description":"Země, každá jako dvě velká písmena, třeba CZ, nejvýš 10. Když země nevybíráš, pošli prázdný seznam."},"geoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazují, nejvýš 10. Najdeš je přes `google-ads-search-geo-targets.index`. Potřeba, když je scope locations, a jen tehdy."},"excludedGeoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazovat nesmí, nejvýš 10. Místo nesmí být v obou seznamech."},"locationMatching":{"type":"string","enum":["presence","presence_or_interest"],"description":"presence (lidé, kteří na místě jsou) nebo presence_or_interest (i lidé, kteří místo hledají). Když ho vynecháš, je to presence_or_interest."},"languageCode":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Jazyk lidí, jako 2 nebo 3 malá písmena, třeba cs."}},"required":["scope","countryCodes","languageCode"],"description":"Kde se reklamy ukazují a v jakém jazyce."}},"required":["campaignId","keywords","targeting"]},"example":{"campaignId":96,"keywords":["servis kol brno","oprava kola"],"targeting":{"scope":"countries","countryCodes":["CZ"],"languageCode":"cs"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMetricOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":[{"keyword":"servis kol brno","avgMonthlySearches":390,"cpcLow":4.2,"cpcHigh":11.8,"competition":38},{"keyword":"oprava kola","avgMonthlySearches":1300,"cpcLow":3.1,"cpcHigh":9.4,"competition":45}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Ukaž čísla hledání pro klíčová slova","description":"Zeptá se Googlu, kolik lidí hledá tahle klíčová slova v místech, která pošleš, a kolik stojí kliknutí. Nic se neuloží. Když Google Ads není připojené, dostaneš 409 nebo 422.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-forecast-previews":{"post":{"operationId":"google-ads-search-forecast-previews.store","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"integer","description":"Číslo kampaně, pro kterou odhad je."},"monthlyBudgetAmount":{"type":"number","minimum":0,"maximum":9999999999999.99,"description":"Měsíční rozpočet, který se zkouší, nejvýš se 2 desetinnými místy."},"biddingStrategy":{"$ref":"#/components/schemas/GoogleAdsSearchBiddingStrategy","description":"manual_cpc, maximize_clicks, maximize_conversions nebo target_cpa."},"bidLimitAmount":{"type":["number","null"],"minimum":0.01,"maximum":100000,"description":"Kolik smí Google nejvýš zaplatit za jedno kliknutí, od 0.01 do 100000. Když ho vynecháš, limit není."},"startsOn":{"type":["string","null"],"format":"date","description":"První den ve tvaru YYYY-MM-DD, dnes nebo později. Když ho vynecháš, je to dnešek."},"keywords":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string","maxLength":80,"description":"Klíčové slovo, nejvýš 80 znaků."},"matchType":{"type":"string","enum":["exact","phrase"],"description":"exact nebo phrase."}},"required":["keyword","matchType"]},"maxItems":200,"description":"Klíčová slova, která se zkouší, nejvýš 200."},"targeting":{"type":"object","properties":{"schemaVersion":{"type":"integer","enum":["1"],"description":"Verze tohohle tvaru. Pošli 1, nebo ji vynech."},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope","description":"countries (celé země z countryCodes), global (celý svět) nebo locations (místa z geoTargets)."},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"maxItems":10,"uniqueItems":true,"description":"Země, každá jako dvě velká písmena, třeba CZ, nejvýš 10. Když země nevybíráš, pošli prázdný seznam."},"geoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazují, nejvýš 10. Najdeš je přes `google-ads-search-geo-targets.index`. Potřeba, když je scope locations, a jen tehdy."},"excludedGeoTargets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"Číslo místa u Googlu, jako text třeba \"1003854\". Každé místo jednou."},"name":{"type":"string","maxLength":300,"description":"Název místa, nejvýš 300 znaků."},"countryCode":{"type":"string","pattern":"^[A-Z]{2}$","description":"Země místa, jako dvě velká písmena, třeba CZ."},"targetType":{"type":"string","maxLength":50,"description":"Jaký druh místa to je, třeba City nebo Region, nejvýš 50 znaků."}},"required":["id","name","countryCode","targetType"]},"maxItems":10,"uniqueItems":true,"description":"Místa, kde se reklamy ukazovat nesmí, nejvýš 10. Místo nesmí být v obou seznamech."},"locationMatching":{"type":"string","enum":["presence","presence_or_interest"],"description":"presence (lidé, kteří na místě jsou) nebo presence_or_interest (i lidé, kteří místo hledají). Když ho vynecháš, je to presence_or_interest."},"languageCode":{"type":"string","pattern":"^[a-z]{2,3}$","description":"Jazyk lidí, jako 2 nebo 3 malá písmena, třeba cs."}},"required":["scope","countryCodes","languageCode"],"description":"Kde se reklamy ukazují a v jakém jazyce."}},"required":["campaignId","monthlyBudgetAmount","biddingStrategy","keywords","targeting"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchForecastPreviewOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Ukaž náhled odhadu","description":"Zeptá se Googlu, co může rozpočet a klíčová slova přinést za měsíc: zobrazení, kliknutí a náklady. Nic se neuloží, takže si můžeš rozpočty vyzkoušet, než nějaký nastavíš.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-seo-keyword-sets":{"get":{"operationId":"google-ads-search-seo-keyword-sets.index","tags":["google-ads-search"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchSeoKeywordSetOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":[{"key":"finding-2-servis","name":"Servis kol v Brně","status":"now","keywords":["servis kol brno","oprava kola brno"],"matchType":"phrase","landingUrl":"https://www.example.cz/servis","landingState":"ready","findingPriority":2,"rationale":"Lidé to hledají a stránka servisu na to odpovídá, ale ve vyhledávání jsi až na druhé straně.","negativeKeywords":["zdarma","návod"]}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.read"]}],"summary":"Vypiš sady klíčových slov ze SEO","description":"Vrátí sady klíčových slov, které tvůj nejnovější SEO audit doporučuje pro Google Ads. Když audit nemáš, seznam je prázdný.\n\nPotřebuje jedno z těchto práv: seo.read."}},"/v1/google-ads-search-shared-negative-keywords":{"get":{"operationId":"google-ads-search-shared-negative-keywords.index","tags":["google-ads-search"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchSharedNegativeKeywordsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš společná vylučující slova","description":"Vrátí vylučující klíčová slova, která sdílí všechny tvoje vyhledávací kampaně. Pro tahle hledání se reklamy nikdy neukazují.\n\nPotřebuje jedno z těchto práv: ads.read."},"put":{"operationId":"google-ads-search-shared-negative-keywords.update","tags":["google-ads-search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","pattern":"^\\s*\\S+(?:\\s+\\S+){0,9}\\s*$","maxLength":80,"description":"Klíčové slovo: 1 až 10 slov, nejvýš 80 znaků, bez znaků jako , ! @ % ^ ( ) = { } ; ~ ` < > ? \\ |."},"matchType":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMatchType","description":"exact, phrase nebo broad."}},"required":["text","matchType"]},"maxItems":1000,"description":"Celý nový seznam, nejvýš 1000. Když chceš odebrat všechna, pošli prázdný seznam."}},"required":["keywords"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchSharedNegativeKeywordsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.google"]}],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Nahraď společná vylučující slova","description":"> [!WARNING]\n> Tohle mění i tvoje živé kampaně v Google Ads. Na to klíč potřebuje `ads.execute.google`.\n\nNahradí celý seznam vylučujících klíčových slov společných pro všechny tvoje vyhledávací kampaně a vrátí nový seznam.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-operations/{operation}":{"get":{"operationId":"google-ads-search-operations.show","tags":["google-ads-search"],"parameters":[{"name":"operation","in":"path","required":true,"schema":{"type":"string"},"description":"Kód úlohy, z `id` nebo `operationId` odpovědi, která ji spustila."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchOperationData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"id":"9d1c6c7e-4f0b-4a51-9a3e-2c1f0b7d5e21","type":"google_ads_search_manual_generation","status":"completed","outcomeCode":"created","outcomeMessage":null,"failureCode":null,"failureMessage":null,"startedAt":"2026-11-03T08:30:00Z","finishedAt":"2026-11-12T13:05:00Z","targeting":{"schemaVersion":1,"scope":"countries","countryCodes":["CZ"],"languageCode":"cs","geoTargets":[],"excludedGeoTargets":[],"locationMatching":"presence"},"adAccountId":31,"plannerCustomerId":"1234567890","budgetCurrencyCode":"CZK"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž úlohu vyhledávání Google Ads","description":"Vrátí, jak jde úloha na pozadí. Ptej se znovu, dokud `status` není completed nebo failed.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/google-ads-search-ad-groups/{adGroup}":{"put":{"operationId":"google-ads-search-ad-groups.update","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název reklamní sestavy, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"description":{"type":["string","null"],"description":"Poznámka k reklamní sestavě. Když ji vynecháš, zůstane."},"searchIntent":{"type":["string","null"],"maxLength":255,"description":"Co lidé chtějí, když hledají tahle klíčová slova, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"priorityScore":{"type":["number","null"],"minimum":0,"maximum":999.99,"description":"Jak je reklamní sestava důležitá, od 0 do 999.99. Když ho vynecháš, zůstane."},"rationale":{"type":["string","null"],"maxLength":65535,"description":"Proč je reklamní sestava v kampani, nejvýš 65535 znaků. Když ho vynecháš, zůstane."},"landingPageDecision":{"$ref":"#/components/schemas/GoogleAdsSearchLandingPageDecision","description":"homepage, existing_page, new_landing_page nebo insufficient_data. Když ho vynecháš, zůstane."},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Stránka, kam reklama vede, celá adresa o nejvýš 2048 znacích. Když ji vynecháš, zůstane."},"landingPageFitScore":{"type":["integer","null"],"minimum":0,"maximum":100,"description":"Jak dobře stránka sedí ke klíčovým slovům, od 0 do 100. Když ho vynecháš, zůstane."},"landingPageReason":{"type":["string","null"],"description":"Proč byla vybrána tahle stránka. Když ho vynecháš, zůstane."},"landingPageBrief":{"type":["string","null"],"description":"Co má nová vstupní stránka říkat. Když ho vynecháš, zůstane."},"sortOrder":{"type":"integer","minimum":0,"description":"Její místo v kampani, od 0. Když ho vynecháš, zůstane."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň reklamní sestavu","description":"Změní reklamní sestavu konceptu kampaně a vrátí ji i s klíčovými slovy a reklamou. Měnit jde jen koncept kampaně; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-ad-groups/{adGroup}/search-ad":{"put":{"operationId":"google-ads-search-ad-groups.search-ad.update","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destinationUrl":{"type":"string","maxLength":2048,"description":"Stránka tvého webu, kam reklama vede, nejvýš 2048 znaků."},"expectedRevision":{"type":"string","maxLength":64,"description":"`revision` reklamní sestavy, kterou jsi předtím načetl. Když ji mezitím někdo změnil, nic se neuloží a dostaneš 409."},"searchAd":{"type":"object","properties":{"headlines":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Nadpisy reklamy, od 10 do 15, každý nejvýš 30 znaků."},"descriptions":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Popisy reklamy, přesně 4, každý nejvýš 90 znaků."},"path1":{"type":"string","description":"První slovo cesty, která se v reklamě ukazuje za tvou doménou, nejvýš 15 znaků."},"path2":{"type":"string","description":"Druhé slovo té cesty, nejvýš 15 znaků."},"sitelinks":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"Text odkazu, nejvýš 25 znaků."},"description1":{"type":"string","description":"První řádek pod odkazem, nejvýš 35 znaků."},"description2":{"type":"string","description":"Druhý řádek pod odkazem, nejvýš 35 znaků."},"finalUrl":{"type":"string","maxLength":2048,"description":"Stránka tvého webu, kam odkaz vede, nejvýš 2048 znaků."}},"required":["text","description1","description2","finalUrl"]},"minItems":1,"description":"Další odkazy pod reklamou, od 4 do 6."},"callouts":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Krátké doplňující texty pod reklamou, od 4 do 10, každý nejvýš 25 znaků."},"headlinePins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":3},"minItems":0,"maxItems":0,"description":"Kde musí který nadpis stát: jedna položka za každý nadpis, ve stejném pořadí. 1, 2 nebo 3 ho připne na to místo; null nechá vybrat Google."},"descriptionPins":{"type":"array","items":{"type":["integer","null"],"minimum":1,"maximum":2},"minItems":0,"maxItems":0,"description":"Kde musí který popis stát: jedna položka za každý popis, ve stejném pořadí. 1 nebo 2 ho připne na to místo; null nechá vybrat Google."},"snippetHeader":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchSnippetHeader"},{"type":"null"}],"description":"Nadpis seznamu věcí, které nabízíš. Jeden z: brands, amenities, styles, types, destinations, services, courses, neighborhoods, shows, insurance_coverage, degree_programs, featured_hotels, models. null, když seznam nechceš."},"snippets":{"type":"array","items":{"type":"string","maxLength":25},"maxItems":10,"description":"Položky toho seznamu, nejvýš 10, každá nejvýš 25 znaků. Potřeba, když posíláš snippetHeader."}},"required":["headlines","descriptions","path1","path2","sitelinks","callouts","headlinePins","descriptionPins","snippetHeader","snippets"],"description":"Všechny texty reklamy. Pošli každé pole."},"excludedTexts":{"type":"object","properties":{"headlines":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":30,"description":"Nadpisy, které AI nesmí napsat, nejvýš 30, každý nejvýš 255 znaků."},"descriptions":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":30,"description":"Popisy, které AI nesmí napsat, nejvýš 30, každý nejvýš 255 znaků."},"sitelinks":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":255,"description":"Text odkazu, nejvýš 255 znaků."},"description1":{"type":["string","null"],"maxLength":255,"description":"První řádek pod odkazem, nejvýš 255 znaků, nebo null."},"description2":{"type":["string","null"],"maxLength":255,"description":"Druhý řádek pod odkazem, nejvýš 255 znaků, nebo null."},"finalUrl":{"type":"string","maxLength":2048,"description":"Stránka tvého webu, kam odkaz vede, nejvýš 2048 znaků."}},"required":["text","description1","description2","finalUrl"]},"maxItems":30,"description":"Odkazy, které AI nesmí napsat, nejvýš 30."},"callouts":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":30,"description":"Krátké texty, které AI nesmí napsat, nejvýš 30, každý nejvýš 255 znaků."}},"description":"Texty, které nechceš, aby AI napsala znovu. Když ho pošleš, pošli všechny čtyři seznamy."}},"required":["destinationUrl","expectedRevision","searchAd"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google"],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Ulož vyhledávací reklamu","description":"> [!WARNING]\n> U kampaně, která není koncept, tohle mění živou reklamu v Google Ads. Pak klíč potřebuje `ads.execute.google`.\n\nUloží všechny texty vyhledávací reklamy reklamní sestavy a vrátí reklamní sestavu.\n\nReklama musí být celá: 10 až 15 nadpisů, 4 popisy, 4 až 6 odkazů a 4 až 10 krátkých textů. Každý odkaz i destinationUrl musí být stránka tvého webu; viz `verifiedUrls` reklamní sestavy. Špatné texty dostanou 422 s polem, které je špatně.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-ad-groups/{adGroup}/search-ad/generate":{"post":{"operationId":"google-ads-search-ad-groups.search-ad.generate","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdSuggestionData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI napsat vyhledávací reklamu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nNapíše pomocí AI celou vyhledávací reklamu pro reklamní sestavu a vrátí ji. Nic se neuloží; ulož ji přes `google-ads-search-ad-groups.search-ad.update`.\n\nReklamní sestava potřebuje vstupní stránku; jinak dostaneš 422. Když AI tuhle reklamu už píše, dostaneš 409.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-ad-groups/{adGroup}/search-ad/suggestions":{"post":{"operationId":"google-ads-search-ad-groups.search-ad.suggestions","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/GoogleAdsSearchSuggestionField","description":"Co navrhnout: headlines, descriptions, sitelinks, callouts, snippets, name, keywords nebo negativeKeywords."},"existingTexts":{"type":"array","items":{"type":"string","maxLength":90},"maxItems":45,"description":"Texty, které už máš, aby AI napsala nové, nejvýš 45, každý nejvýš 90 znaků."},"instruction":{"type":["string","null"],"maxLength":500,"description":"Na co má AI myslet, nejvýš 500 znaků."},"snippetHeader":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchSnippetHeader"},{"type":"null"}],"description":"Pro snippets: nadpis seznamu. Jeden z: brands, amenities, styles, types, destinations, services, courses, neighborhoods, shows, insurance_coverage, degree_programs, featured_hotels, models."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["field"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdTextSuggestionsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI navrhnout texty reklamy","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPožádá AI o nové texty jednoho druhu pro reklamní sestavu, třeba víc nadpisů nebo klíčových slov. Nic se neuloží; texty, které se ti líbí, přidej do reklamy sám.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/google-ads-search-ad-groups/{adGroup}/search-ad/texts":{"post":{"operationId":"google-ads-search-ad-groups.search-ad.texts","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":["string","null"],"maxLength":1000,"description":"Co má reklama říkat, nejvýš 1000 znaků. Když ho vynecháš, AI použije to, co ví."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.google"],"x-fusio-opt-in-scopes":["ads.execute.google"],"summary":"Nech AI napsat a uložit texty reklamy","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\n> [!WARNING]\n> U kampaně, která není koncept, nové texty mění živou reklamu v Google Ads. Pak klíč potřebuje `ads.execute.google`.\n\nSpustí na pozadí psaní textů vyhledávací reklamy reklamní sestavy pomocí AI a uloží je tam. Vrátí reklamní sestavu; `searchAdGenerationStatus` ukazuje, jak psaní jde.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write. Některé hodnoty potřebují ještě: ads.execute.google. Tato práva musíš zaškrtnout schválně: ads.execute.google."}},"/v1/google-ads-search-ad-groups/{adGroup}/keywords":{"post":{"operationId":"google-ads-search-ad-groups.keywords.store","tags":["google-ads-search"],"parameters":[{"name":"adGroup","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamní sestavy. Najdeš ho v `adGroups` kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keyword":{"type":"string","maxLength":80,"description":"Klíčové slovo, nejvýš 80 znaků."},"matchType":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMatchType","description":"exact, phrase nebo broad. Pozitivní klíčové slovo smí být jen exact nebo phrase."},"keywordRole":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordRole","description":"positive (reklamy se pro něj ukazují) nebo negative (reklamy se pro něj nikdy neukazují)."},"tenantKeywordOpportunityId":{"type":["integer","null"],"description":"Číslo SEO příležitosti klíčového slova, ze které pochází. Ne u vylučujícího klíčového slova."}},"required":["keyword","matchType","keywordRole"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupKeywordData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Přidej klíčové slovo do reklamní sestavy","description":"Přidá klíčové slovo do reklamní sestavy konceptu kampaně a odpoví 201 s ním. Měnit jde jen koncept kampaně; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/google-ads-search-ad-group-keywords/{adGroupKeyword}":{"put":{"operationId":"google-ads-search-ad-group-keywords.update","tags":["google-ads-search"],"parameters":[{"name":"adGroupKeyword","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo klíčového slova. Najdeš ho v `keywords` reklamní sestavy."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tenantKeywordOpportunityId":{"type":["integer","null"],"description":"Číslo SEO příležitosti klíčového slova, ze které pochází, nebo null. Když ho vynecháš, zůstane."},"keyword":{"type":"string","maxLength":80,"description":"Nová slova klíčového slova, nejvýš 80 znaků. Když je vynecháš, zůstanou."},"keywordRole":{"$ref":"#/components/schemas/GoogleAdsSearchKeywordRole","description":"positive nebo negative. Klíčové slovo broad nemůže být pozitivní. Když ho vynecháš, zůstane."},"intent":{"type":["string","null"],"maxLength":255,"description":"Co lidé chtějí, když ho hledají, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"priorityScore":{"type":["number","null"],"minimum":0,"maximum":999.99,"description":"Jak je důležité, od 0 do 999.99. Když ho vynecháš, zůstane."},"rationale":{"type":["string","null"],"maxLength":65535,"description":"Proč je v reklamní sestavě, nejvýš 65535 znaků. Když ho vynecháš, zůstane."},"sortOrder":{"type":"integer","minimum":0,"description":"Jeho místo v seznamu, od 0. Když ho vynecháš, zůstane."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupKeywordData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň klíčové slovo","description":"Změní klíčové slovo konceptu kampaně a vrátí ho. Když chceš změnit samotná slova, pošli v těle `keyword` jako text o nejvýš 80 znacích, stejně jako když klíčové slovo přidáváš. Typ shody se změnit nedá; klíčové slovo odeber a přidej nové.\n\nV kampaních brand a competitor nemůže pozitivní klíčové slovo změnit slova ani roli; dostaneš 403. Měnit jde jen koncept kampaně; jinak dostaneš taky 403.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"google-ads-search-ad-group-keywords.destroy","tags":["google-ads-search"],"parameters":[{"name":"adGroupKeyword","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo klíčového slova. Najdeš ho v `keywords` reklamní sestavy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Odeber klíčové slovo","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nOdebere klíčové slovo z reklamní sestavy konceptu kampaně. V kampaních brand a competitor pozitivní klíčová slova odebrat nejde; dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/image-profiles":{"get":{"operationId":"image-profiles.index","tags":["image-profiles"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantImageProfileOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš presety stylu","description":"Vrátí všechny tvoje presety stylu.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"post":{"operationId":"image-profiles.store","tags":["image-profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název presetu, nejvýš 255 znaků."},"type":{"type":"string","enum":["generic","branded","personal","style_reference"],"description":"generic (jakékoli obrázky), branded (s tvou značkou), personal (s člověkem, potřebuje referenční obrázky) nebo style_reference (napodobí styl tvých ukázkových obrázků, potřebuje je)."},"style":{"type":["string","null"],"enum":["realistic","photographic","illustration","digital_art","3d_render","flat","minimalist","sketch","custom",null],"description":"Vzhled: realistic, photographic, illustration, digital_art, 3d_render, flat, minimalist, sketch nebo custom. Je potřeba, pokud typ není style_reference."},"styleAnalysis":{"type":["string","null"],"maxLength":4000,"description":"Popis stylu. AI ho napíše z tvých ukázek a ty ho můžeš změnit. Nejvýš 4000 znaků."},"styleCustomValue":{"type":["string","null"],"maxLength":500,"description":"Tvůj vlastní vzhled slovy. Je potřeba, když je style custom. Nejvýš 500 znaků."},"instructions":{"type":["string","null"],"maxLength":2000,"description":"Na co má AI vždycky myslet. Nejvýš 2000 znaků."},"isPrimary":{"type":"boolean","description":"true z něj udělá hlavní preset, který se použije, když žádný nevybereš."},"referenceFileIds":{"type":"array","items":{"type":"integer"},"maxItems":8,"description":"Čísla tvých souborů, které poslouží jako ukázky, nejvýš 8. U style_reference musí jít o obrázky."},"mascotIds":{"type":"array","items":{"type":"integer"},"maxItems":3,"uniqueItems":true,"description":"Čísla maskotů, které má AI s tímhle presetem kreslit, nejvýš 3."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat, když změna spustí práci AI."}},"required":["name","type"]},"example":{"name":"Fotky z dílny","type":"branded","style":"photographic","instructions":"Denní světlo, dílna s nářadím, kola v detailu. Žádné texty v obrázku.","isPrimary":true}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantImageProfileOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Preset stylu byl úspěšně vytvořen","payload":{"id":19,"tenantId":412,"name":"Fotky z dílny","type":"branded","style":"photographic","styleCustomValue":null,"instructions":"Denní světlo, dílna s nářadím, kola v detailu. Žádné texty v obrázku.","styleAnalysis":null,"styleAnalysisStatus":null,"styleAnalysisFailureReason":null,"styleAnalyzedAt":null,"styleAnalysisEditedAt":null,"styleAnalysisRequestedAt":null,"mascots":[],"detectedAvatar":null,"detectedAvatarDismissedAt":null,"isPrimary":true,"referenceImages":[],"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-conditional-scopes":["ai.generate"],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř preset stylu","description":"> [!WARNING]\n> Tohle může utratit AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nVytvoří preset stylu. Preset style_reference spustí na pozadí AI, která popíše styl tvých ukázek, a to utrácí kredity. Klíč k tomu potřebuje `ai.generate`.\n\nDostaneš 422, když preset style_reference nebo personal nemá ukázkové obrázky, když ukázka u style_reference není obrázek, když propojíš víc než 3 maskoty nebo maskota jiné firmy, nebo když je style custom bez styleCustomValue.\n\nPotřebuje jedno z těchto práv: intelligence.write. Některé hodnoty potřebují ještě: ai.generate. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/image-profiles/destination-preferences":{"get":{"operationId":"image-profiles.destination-preferences.index","tags":["image-profiles"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ImageDestinationPreferenceOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš presety pro každé místo","description":"Vrátí, který preset stylu používá každé místo, třeba články na blogu nebo příspěvky na Instagramu. Místo, které tu není, používá hlavní preset.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"put":{"operationId":"image-profiles.destination-preferences.update","tags":["image-profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"type":"array","items":{"type":"object","properties":{"destination":{"type":"string","enum":["blog_article","facebook_post","instagram_post","x_post","linkedin_post","email_broadcast","email_sequence"],"description":"Místo: blog_article, facebook_post, instagram_post, x_post, linkedin_post, email_broadcast nebo email_sequence. Každé místo nejvýš jednou."},"profileId":{"type":["integer","null"],"description":"Číslo presetu pro to místo."},"imageShape":{"anyOf":[{"$ref":"#/components/schemas/ImageShape"},{"type":"null"}]},"mascotPresence":{"anyOf":[{"$ref":"#/components/schemas/MascotPresence"},{"type":"null"}]},"mascotBackground":{"anyOf":[{"$ref":"#/components/schemas/MascotBackground"},{"type":"null"}]},"imageOverlay":{"anyOf":[{"$ref":"#/components/schemas/ImageOverlay"},{"type":"null"}]},"imageOverlayPresetId":{"type":["integer","null"]},"groups":{"type":"array","items":{"type":"object","properties":{"goal":{"$ref":"#/components/schemas/ImageOverlayGoal"},"mascotPresence":{"anyOf":[{"$ref":"#/components/schemas/MascotPresence"},{"type":"null"}]},"captionVoice":{"anyOf":[{"$ref":"#/components/schemas/CaptionVoice"},{"type":"null"}]},"mascotBackground":{"anyOf":[{"$ref":"#/components/schemas/MascotBackground"},{"type":"null"}]},"mascotPlace":{"type":["string","null"],"maxLength":120},"mascotFriend":{"type":["string","null"],"maxLength":120},"isMascotAlone":{"type":"boolean"},"imageOverlay":{"anyOf":[{"$ref":"#/components/schemas/ImageOverlay"},{"type":"null"}]},"imageOverlayPresetId":{"type":["integer","null"]},"instruction":{"type":["string","null"],"maxLength":300}},"required":["goal"]}}},"required":["destination","profileId"]},"uniqueItems":true,"description":"Seznam míst s jejich presetem. Nahradí celý starý seznam."}},"required":["preferences"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/ImageDestinationPreferenceOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Nastav presety pro každé místo","description":"Nastaví, který preset stylu používá každé místo. Seznam nahradí starý; místa, která vynecháš, použijí hlavní preset. Pošli prázdný seznam, když chceš všechno smazat.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/image-profiles/{imageProfile}":{"put":{"operationId":"image-profiles.update","tags":["image-profiles"],"parameters":[{"name":"imageProfile","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo presetu stylu obrázků."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název presetu, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"type":{"type":"string","enum":["generic","branded","personal","style_reference"],"description":"generic (jakékoli obrázky), branded (s tvou značkou), personal (s člověkem, potřebuje referenční obrázky) nebo style_reference (napodobí styl tvých ukázkových obrázků, potřebuje je). Když ho vynecháš, zůstane."},"style":{"type":["string","null"],"enum":["realistic","photographic","illustration","digital_art","3d_render","flat","minimalist","sketch","custom",null],"description":"Vzhled: realistic, photographic, illustration, digital_art, 3d_render, flat, minimalist, sketch nebo custom. Je potřeba, pokud typ není style_reference. Když ho vynecháš, zůstane."},"styleAnalysis":{"type":["string","null"],"maxLength":4000,"description":"Popis stylu. AI ho napíše z tvých ukázek a ty ho můžeš změnit. Nejvýš 4000 znaků. Když ho vynecháš, zůstane."},"styleCustomValue":{"type":["string","null"],"maxLength":500,"description":"Tvůj vlastní vzhled slovy. Je potřeba, když je style custom. Nejvýš 500 znaků."},"instructions":{"type":["string","null"],"maxLength":2000,"description":"Na co má AI vždycky myslet. Nejvýš 2000 znaků. Když ho vynecháš, zůstane."},"isPrimary":{"type":"boolean","description":"true z něj udělá hlavní preset, který se použije, když žádný nevybereš. Když ho vynecháš, zůstane."},"referenceFileIds":{"type":"array","items":{"type":"integer"},"maxItems":8,"description":"Čísla tvých souborů, které poslouží jako ukázky, nejvýš 8. U style_reference musí jít o obrázky. Když ho vynecháš, zůstane."},"mascotIds":{"type":"array","items":{"type":"integer"},"maxItems":3,"uniqueItems":true,"description":"Čísla maskotů, které má AI s tímhle presetem kreslit, nejvýš 3."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat, když změna spustí práci AI."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantImageProfileOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-conditional-scopes":["ai.generate"],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň preset stylu","description":"> [!WARNING]\n> Tohle může utratit AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nZmění preset stylu. Pošli jen to, co chceš změnit. Pole, které vynecháš, zůstane, jak je; null ho smaže.\n\nKdyž se z presetu stane style_reference nebo se změní jeho ukázkové obrázky, AI na pozadí znovu popíše styl, a to utrácí kredity. Klíč k tomu potřebuje `ai.generate`. Dostaneš 422, když preset style_reference nebo personal nemá ukázkové obrázky, když ukázka u style_reference není obrázek, když propojíš víc než 3 maskoty nebo maskota jiné firmy, nebo když je style custom bez styleCustomValue.\n\nPotřebuje jedno z těchto práv: intelligence.write. Některé hodnoty potřebují ještě: ai.generate. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"image-profiles.destroy","tags":["image-profiles"],"parameters":[{"name":"imageProfile","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo presetu stylu obrázků."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber preset stylu","description":"Odebere preset stylu. Místa, která ho používala, se vrátí k hlavnímu presetu. Když odebereš hlavní preset, hlavním se stane jiný.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/image-profiles/{imageProfile}/analyze-style":{"post":{"operationId":"image-profiles.analyze-style","tags":["image-profiles"],"parameters":[{"name":"imageProfile","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo presetu stylu obrázků."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantImageProfileOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Popiš styl znovu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí znovu popíše styl tvých ukázkových obrázků. Sleduj `styleAnalysisStatus` v odpovědi.\n\nFunguje jen u presetu style_reference s ukázkovými obrázky; jinak dostaneš 422. Když už popis běží, nic nového se nespustí.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/image-profiles/{imageProfile}/dismiss-detected-avatar":{"post":{"operationId":"image-profiles.dismiss-detected-avatar","tags":["image-profiles"],"parameters":[{"name":"imageProfile","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo presetu stylu obrázků."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantImageProfileOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Skryj tip na nalezeného maskota","description":"Skryje tip na člověka nebo maskota, kterého AI viděla v tvých ukázkách. Když žádný otevřený tip není, nic se nezmění.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/discovery-leads/claim":{"post":{"operationId":"discovery-leads.claim","tags":["leads"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":["integer","null"],"minimum":1,"maximum":20,"description":"Kolik leadů převzít, od 1 do 20. Když ho vynecháš, je to 20."},"source":{"anyOf":[{"$ref":"#/components/schemas/LeadDiscoverySource"},{"type":"null"}],"description":"Převezmi jen nové leady z tohoto zdroje: ares, eshopy_cz nebo browser. Když ho vynecháš, je to jakýkoli zdroj."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/DiscoveryLeadClaimItemData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Převezmi objevené leady k posouzení","description":"Dá ti objevené leady k posouzení, nejvýš 20 najednou. Nejdřív dostaneš své vlastní leady, které jsou stále v posouzení, nejstarší první. Zbytek doplní nové leady bez vlastníka, nejlépe sedící první. Každý lead, který převezmeš, se stane tvým, takže ho nedostane nikdo jiný. Když endpoint zavoláš znovu, uvidíš tytéž leady. Odpověď je 200 a seznam. Seznam je prázdný, když není co převzít.\n\nLead, který stále posuzuješ a 48 hodin se ho nedotkneš, se vrátí do fronty jako nový a ty ho ztratíš. Uložení zdroje výzkumu leadu, uložení jeho firemních údajů nebo odeslání tvého doporučení 48 hodin začne znovu.\n\nChyby: 403, když nesmíš posuzovat objevené leady, 422, když je `limit` nebo `source` špatně.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/discovery-leads":{"post":{"operationId":"discovery-leads.store","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Povinné. Název firmy, nejvýš 255 znaků."},"browserSource":{"$ref":"#/components/schemas/LeadDiscoveryBrowserSource","description":"Povinné. Kde jsi ji našel: instagram, facebook, linkedin, x, google_maps, firmy_cz nebo web."},"profileUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Povinné. Adresa profilu, kde jsi firmu našel, nejvýš 2048 znaků. Fusio podle ní pozná firmu, kterou už má."},"website":{"type":["string","null"],"format":"uri","pattern":"^https?:\\/\\/(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?::[0-9]{1,5})?$","maxLength":255,"description":"Nepovinné. Vlastní web firmy, nejvýš 255 znaků. Nesmí to být sociální síť, mapa ani katalog. Fusio si nechá jen začátek, třeba https://example.cz."},"city":{"type":["string","null"],"maxLength":255,"description":"Nepovinné. Město, nejvýš 255 znaků."},"businessEmail":{"type":["string","null"],"format":"email","maxLength":255,"description":"Nepovinné. E-mail firmy, nejvýš 255 znaků. Potřebuje contacts.write."},"businessPhone":{"type":["string","null"],"pattern":"^(?:\\+|00)?[0-9][0-9 ().-]*$","maxLength":20,"description":"Nepovinné. Telefon firmy, nejvýš 20 znaků. Potřebuje contacts.write."},"fitReason":{"type":"string","maxLength":1000,"description":"Povinné. Proč firma sedí, nejvýš 1000 znaků. Fusio to uloží do poznámky."},"foundOnProfile":{"type":"string","maxLength":5000,"description":"Povinné. Co jsi na profilu přečetl, nejvýš 5000 znaků. Fusio to uloží do poznámky."}},"required":["name","browserSource","profileUrl","fitReason","foundOnProfile"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BrowserDiscoveryLeadData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["contacts.write"],"summary":"Ulož firmu nalezenou v prohlížeči jako objevený lead","description":"Uloží firmu, kterou jsi našel v prohlížeči, jako lead, který čeká na posouzení. Lead není ve tvém CRM, dokud ho uživatel ve Fusio neschválí. Odpověď je 200.\n\nKdyž Fusio už má stejnou adresu profilu nebo stejný web, nic se neuloží a dostaneš 409 `discovery_lead_duplicate` s `existingLeadId`. Když ještě běží jiné ukládání tvé firmy, dostaneš 409 `discovery_lead_create_busy`. Chvíli počkej a zkus to znovu.\n\nChyby: 403 `insufficient_scope`, když pošleš `businessEmail` nebo `businessPhone` bez `contacts.write`, 422, když je pole špatně nebo je web sociální síť, mapa či katalog.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: contacts.write."}},"/v1/discovery-leads/{lead}/ares-lookup":{"post":{"operationId":"discovery-leads.ares-lookup","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ico":{"type":"string","pattern":"^\\d{8}$","description":"IČO, 8 číslic. Mezery se odstraní."}},"required":["ico"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DiscoveryAresLookupData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Ulož údaje z obchodního rejstříku k objevenému leadu","description":"Vyhledá firmu v ARES, veřejném obchodním rejstříku, a uloží její údaje k leadu. Uloží IČO, DIČ, když ho lead nemá, a firemní údaje. Pak Fusio znovu ohodnotí, jak lead sedí. Nestojí žádné kredity, ale počítá se jako jedno vyhledání firmy z tvého tarifu. Odpověď je 200.\n\nLead musí být ten, který jsi převzal endpointem claim a stále ho posuzuješ, jinak dostaneš 409 `discovery_lead_not_claimed`. Když už jiný lead tvé firmy má toto IČO, dostaneš 409 `duplicate_registration_number` s `existingLeadId`. Když ještě běží jiné ukládání stejného IČO, dostaneš 409 `discovery_ares_lookup_busy`; chvíli počkej a zkus to znovu. Když ARES IČO nezná, dostaneš 422 `ares_not_found`. Když ARES neodpovídá, dostaneš 503; zkus to později.\n\nChyby: 403, když nesmíš posuzovat objevené leady, 422, když `ico` nemá 8 číslic, 422 s `payload.metric` `company_lookups`, když ti v tarifu došla vyhledání firem. Tahle adresa snese 10 požadavků za minutu; víc vrátí 429.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/discovery-leads/{lead}/mark-ready":{"post":{"operationId":"discovery-leads.mark-ready","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recommendation":{"$ref":"#/components/schemas/LeadDiscoveryRecommendation","description":"Co radíš: approve nebo dismiss."},"reason":{"type":"string","minLength":10,"maxLength":1000,"description":"Proč to radíš, od 10 do 1000 znaků. Uživatel to čte."}},"required":["recommendation","reason"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/DiscoveryLeadReviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Doporuč, co s objeveným leadem udělat","description":"Dokončí tvé posouzení objeveného leadu. Fusio znovu ohodnotí, jak lead sedí, uloží tvou radu a důvod a přesune lead do `ready_for_approval`. Odpověď je 200.\n\nTohle jen doporučuje. Lead neschválí ani nezamítne. Rozhodne uživatel ve Fusio: schválí ho do CRM, nebo ho zamítne. Dokud lead čeká, můžeš endpoint zavolat znovu a radu změnit.\n\nLead musí být ten, který jsi převzal endpointem claim a stále ho posuzuješ, jinak dostaneš 409 `discovery_lead_not_claimed`.\n\nChyby: 403, když nesmíš posuzovat objevené leady, 422, když `recommendation` není approve ani dismiss nebo je `reason` příliš krátký či dlouhý.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/inbox-triages/queue":{"get":{"operationId":"inbox-triages.queue","tags":["leads"],"parameters":[{"name":"limit","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":20},"description":"Kolik vláken vrátit, od 1 do 20. Výchozí je 10."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/InboxTriageQueueData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","emails.read"]}],"summary":"Vypiš e-mailová vlákna, kde lead odpověděl a nikdo odpověď ještě netřídil","description":"Dostaneš e-mailová vlákna z tvé schránky a ze sdílených schránek, kde kontakt spojený s leadem odpověděl a ty jsi novou zprávu ještě netřídil. Počítá se jen posledních 30 dnů. Newslettery a automatická pošta se vynechají, stejně jako vlákna, která už mají odpověď čekající na schválení.\n\nPřečti si `thread`, rozhodni, co lead potřebuje, a pro každé vlákno zavolej `POST /inbox-triages`. Označené vlákno z tohoto seznamu zmizí, dokud kontakt znovu nenapíše. Kontakt může být spojený s víc leady; fronta je vypíše všechny v `leads` a ty při označení vlákna vybereš jeden pomocí `leadId`.\n\nKlíč potřebuje navíc `leads.read` a `emails.read`.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: emails.read."}},"/v1/inbox-triages":{"post":{"operationId":"inbox-triages.store","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"integer","minimum":1,"description":"E-mailové vlákno, které třídíš. Vezmi ho z fronty."},"leadId":{"type":"integer","minimum":1,"description":"Lead, ke kterému odpověď patří. Musí to být jeden z `leads` toho vlákna."},"inboundMessageId":{"type":"integer","minimum":1,"description":"Zpráva, na kterou odpovídáš, tedy `latestInboundMessageId` z fronty. Novější zpráva způsobí, že požadavek selže."},"replyGoal":{"type":["string","null"],"enum":["book_meeting","revive_conversation","followup_new_value","followup_proof","objection_response","breakup_email","meeting_recap","negotiation","upsell",null],"description":"Čeho má odpověď dosáhnout. Kterýkoli cíl kromě prvního oslovení. Pošli ho spolu s `replyBrief`."},"replyBrief":{"type":["string","null"],"minLength":10,"maxLength":1000,"description":"Jedna nebo dvě věty o tom, co má odpověď říct, od 10 do 1000 znaků. S `replyGoal` je povinné."},"messageFrameworkId":{"type":["integer","null"],"description":"Šablona zprávy tvé firmy, kterou má odpověď sledovat."},"recommendation":{"type":["object","null"],"properties":{"stage":{"type":"string","enum":["cold","warm","qualified","lost"],"description":"Navržený stav: cold, warm, qualified nebo lost."},"lostReason":{"type":["string","null"],"enum":["spam","test_submission","duplicate","wrong_contact","job_seeker","vendor_pitch","existing_customer","outside_target_segment","company_too_small","outside_service_area","service_not_offered","no_real_need","not_interested","no_response","no_budget","price_too_high","chose_competitor","already_has_supplier","bad_timing","no_decision_maker",null],"description":"Proč je lead ztracený. Jen se stavem lost. Důvod other není povolený."},"reason":{"type":"string","minLength":5,"maxLength":500,"description":"Proč to navrhuješ, od 5 do 500 znaků. Ten, kdo schvaluje, si to přečte."}},"description":"Návrh na změnu stavu leadu. O tom, jestli se použije, rozhoduje jen ten, kdo schvaluje."}},"required":["conversationId","leadId","inboundMessageId"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/InboxTriageData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write","emails.write"]}],"summary":"Označ e-mailové vlákno jako roztříděné, volitelně s cílem odpovědi a návrhem stavu","description":"Tohle označí vlákno jako roztříděné. Zmizí z fronty a vrátí se, až kontakt znovu napíše. Označení stejného vlákna znovu záznam změní. Dokud odpověď pro vlákno čeká na schválení, dostaneš 409 `inbox_reply_pending`.\n\nNávrh je jen rada. Čeká v balíčku ke schválení u leadu a tam rozhoduje člověk. Novější návrh pro stejný lead nahradí starší, který ještě čeká.\n\nKdyž po zprávě, kterou jsi třídil, přišla další, dostaneš 409 `inbox_triage_outdated`; načti frontu znovu. Odpověď napíšeš přes `POST /inbox-triages/{inboxTriage}/reply/generate`, nebo pošleš vlastní odpověď ke schválení.\n\nKlíč potřebuje navíc `leads.write` a `emails.write`.\n\nPotřebuje jedno z těchto práv: leads.write. Potřebuje taky: emails.write."}},"/v1/inbox-triages/{inboxTriage}/reply/generate":{"post":{"operationId":"inbox-triages.reply.generate","tags":["leads"],"parameters":[{"name":"inboxTriage","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/InboxReplyResultData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","leads.write","emails.write"]}],"summary":"Napiš pomocí AI odpověď na roztříděné e-mailové vlákno","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nFusio napíše odpověď na zprávu, kterou jsi třídil, podle cíle a zadání odpovědi, které jsi poslal do `POST /inbox-triages`. Odpověď je 201 s uloženou odpovědí. Je to e-mail ve stejném vlákně a čeká ve Fusiu na schválení; nic se neodešle, dokud ho někdo neschválí.\n\nTřídění, které už má odpověď čekající, vrátí 409 `inbox_reply_pending`; čekající odpověď změň v balíčku ke schválení. Když po třídění přišla nová zpráva, dostaneš 409 `inbox_triage_outdated`. Třídění bez cíle odpovědi vrátí 422 `inbox_triage_goal_missing`. Kredity se strhnou, jen když se odpověď uloží.\n\nKlíč potřebuje navíc `leads.write` a `emails.write`.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: leads.write, emails.write."}},"/v1/message-frameworks":{"get":{"operationId":"message-frameworks.index","tags":["leads"],"parameters":[{"name":"goal","in":"query","schema":{"type":["string","null"],"enum":["initial_outreach","book_meeting","revive_conversation","followup_new_value","followup_proof","objection_response","breakup_email","meeting_recap","negotiation","upsell",null]},"description":"Nech jen rámce použitelné pro tento cíl oslovení, třeba `initial_outreach`. Když chybí, všechny rámce."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MessageFrameworkOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš rámce zpráv","description":"Vrací rámce zpráv, se kterými tenant může psát oslovení: jeho vlastní i systémové. Rámec popisuje, jak se zpráva skládá, krok po kroku, s pravidly a příklady.\n\nKdyž zapisuješ lead do plánu přes `POST /leads/{lead}/cadence-enrollments`, pošli `id` rámce jako `messageFrameworkId`. Musí být použitelný pro `outreachAction` zápisu.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/lead-cadence-templates":{"get":{"operationId":"lead-cadence-templates.index","tags":["leads"],"parameters":[{"name":"purpose","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceTemplatePurpose"},{"type":"null"}]},"description":"Nech jen plány s tímto účelem. `outreach` je pro první kontakt, `follow_up` pro další kontakt. Když chybí, všechny účely."},{"name":"active","in":"query","schema":{"type":["boolean","null"]},"description":"'`1` jen pro aktivní plány, `0` jen pro neaktivní. Když chybí, oboje.'"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceTemplateData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš plány oslovení","description":"Vrací plány oslovení tenantu (kadence): plány kroků, jako jsou e-maily, zprávy na LinkedInu a hovory, které pro lead běží jeden po druhém.\n\nPro první kontakt s novými zájemci použij `purpose=outreach&active=1`. Přes `POST /leads/{lead}/cadence-enrollments` jde spustit jen aktivní plán.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/overview":{"get":{"operationId":"leads.overview","tags":["leads"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[platform]","in":"query","schema":{"type":["string","null"],"enum":["google","facebook","linkedin","none",null]},"description":"Počítej jen leady z jedné reklamní sítě: google, facebook nebo linkedin; none pro leady bez reklam."},{"name":"filter[source]","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/LeadSource"},{"type":"null"}]},"description":"Počítej jen leady z jednoho zdroje, třeba web, referral nebo lead_form."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž čísla tvých leadů","description":"Vrátí čísla tvých leadů za období: kolik jich je, odkud přišly a jak postupují z fáze do fáze. Pošli `compare=true` a dostaneš i období těsně předtím.\n\nTahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/prediction-visibility":{"get":{"operationId":"leads.prediction-visibility","tags":["leads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadPredictionVisibilityOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Zjisti, jestli jsou zapnuté předpovědi leadů","description":"Řekne ti, jestli Fusio ukazuje předpovědi, které leady se stanou klienty.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/grid":{"get":{"operationId":"leads.grid","tags":["leads"],"parameters":[{"name":"filter[search]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Slova, která hledáš ve jménech, e-mailech a dalších hlavních polích."},{"name":"filter[hasPendingChanges]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže zájemce se změnami, které čekají na souhlas."},{"name":"filter[researchProfile]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže zájemce s průzkumem. without ukáže ostatní."},{"name":"filter[outreachStatus]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak daleko je psaní zájemci. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."},{"name":"filter[googleAdsClickedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy zájemce klikl na reklamu Google. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do."},{"name":"filter[awaitingContact]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"1 ukáže zájemce, kterým ještě nikdo nenapsal. 0 ukáže ostatní."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[source]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Odkud zájemce přišel. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[fitGrade]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak moc se k tobě zájemce hodí. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[heatStatus]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak moc zájemce stojí o nákup. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["createdAt","predictedConversion","-createdAt","-predictedConversion"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí. Řazení podle predictedConversion jde, jen když je ta funkce zapnutá."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexLeadData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš leady v tabulce","description":"Vrátí leady po stránkách, připravené pro tabulku. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/options":{"get":{"operationId":"leads.options","tags":["leads"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu nebo IČO. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[fitGrade]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak moc se k tobě zájemce hodí. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[heatStatus]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak moc zájemce stojí o nákup. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionLeadData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš leady pro výběr","description":"Vrátí leady jako krátké položky pro výběr. Hodí se, když hledáš lead, než k němu propojíš kontakt nebo založíš obchod.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/check-duplicate":{"post":{"operationId":"leads.check-duplicate","tags":["leads"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"registrationNumber":{"type":["string","null"],"maxLength":50,"description":"IČO, které se hledá, nejvýš 50 znaků. Pošli ho, e-mail, nebo obojí."},"email":{"type":["string","null"],"format":"email","maxLength":255,"description":"E-mail, který se hledá mezi kontakty tvých leadů, nejvýš 255 znaků. Pošli ho, IČO, nebo obojí."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadDuplicateCheckOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kontrola duplicit dokončena.","payload":{"duplicate":{"id":3051,"name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","stage":"warm","createdAt":"2026-11-16T08:30:00Z"},"field":"registrationNumber"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Zjisti, jestli lead už existuje","description":"Nejdřív hledá lead se stejným IČO, potom lead s kontaktem, který má stejný e-mail. Zavolej to, než přidáš lead nebo kontakt.\n\nNic se neuloží. Když je `duplicate` null, lead je nový.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/segments":{"get":{"operationId":"leads.segments","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateSegmentData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš segmenty leadu","description":"Vrátí segmenty, ve kterých lead je.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/tags":{"get":{"operationId":"leads.tags","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateTagData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš štítky leadu","description":"Vrátí štítky, které lead má.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/custom-fields":{"get":{"operationId":"leads.custom-fields","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/UpdateLeadCustomFieldData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš vlastní pole leadu","description":"Vrátí hodnoty tvých vlastních polí u leadu, každou i s polem, ke kterému patří.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/assignments":{"get":{"operationId":"leads.assignments.index","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/EntityAssignmentOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš členy, kteří se starají o lead","description":"Vrátí členy tvého týmu, kteří se o lead starají.\n\nPotřebuje jedno z těchto práv: leads.read."},"post":{"operationId":"leads.assignments.store","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"Člen, který se přidá. Musí to být aktivní člen tvé firmy."}},"required":["userId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/EntityAssignmentOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Přidej k leadu člena","description":"Přidá člena, který se o lead stará, k těm, které už má. Fusio dá členovi vědět. Vrátí nové propojení.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/assignments/{user}":{"delete":{"operationId":"leads.assignments.destroy","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"user","in":"path","required":true,"schema":{"type":"string"},"description":"Číslo člena, který se odebere."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Odeber člena z leadu","description":"Odebere člena z leadu. Odpověď nemá žádná data. Dostaneš 422 u `userId`, když člen u tohohle leadu ještě má otevřenou kadenci.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/owner":{"put":{"operationId":"leads.owner.replace","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":["integer","null"],"description":"Člen, který se bude o lead starat sám. null odebere všechny členy."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"anyOf":[{"$ref":"#/components/schemas/EntityAssignmentOutputData"},{"type":"null"}]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Nastav jediného člena leadu","description":"Udělá z `userId` jediného člena leadu a ostatní odebere. Vrátí propojení, nebo null, když jsi poslal `userId: null`.\n\nDostaneš 422 u `userId`, když člen u tohohle leadu ještě má otevřenou kadenci.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/outreach-touches":{"get":{"operationId":"leads.outreach-touches.index","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadOutreachTouchOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš kontakty s leadem","description":"Vrátí každé oslovení leadu tvým týmem i každou odpověď leadu: telefonáty, e-maily a další kontakty, i s tím, jak dopadly.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/cadence-enrollments":{"get":{"operationId":"leads.cadence-enrollments.index","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceEnrollmentData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš kadence leadu","description":"Vrátí kadence, kterými lead prochází nebo prošel. Kadence je plán kroků, třeba telefonátů a e-mailů, podle kterého tvůj tým postupuje.\n\nPotřebuje jedno z těchto práv: leads.read."},"post":{"operationId":"leads.cadence-enrollments.store","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadCadenceTemplateId":{"type":"integer","description":"Aktivní plán, který se má spustit."},"leadAssigneeId":{"type":["integer","null"],"description":"Uživatel, který plán vede. Musí mít lead přiřazený. Když chybí, vede plán jediný vlastník leadu."},"outreachAction":{"anyOf":[{"$ref":"#/components/schemas/PrivateOutreachAction"},{"type":"null"}],"description":"Cíl oslovení, třeba `initial_outreach` pro první kontakt. Nepovinné."},"messageFrameworkId":{"type":["integer","null"],"description":"Rámec zpráv, podle kterého se píšou zprávy plánu. Musí být použitelný pro `outreachAction`, nebo pro `initial_outreach`, když chybí. Nepovinné."},"startAt":{"type":["string","null"],"description":"Kdy plán začíná, jako datum a čas podle ISO 8601 s časovou zónou. Když chybí, hned."}},"required":["leadCadenceTemplateId"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadCadenceEnrollmentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Zapiš lead do plánu oslovení","description":"Spustí pro lead plán: jeho kroky se stanou úkoly s termíny, počítanými od `startAt`. Lead může být najednou jen v jednom běžícím nebo pozastaveném plánu.\n\nBez `leadAssigneeId` vede plán vlastník leadu. Lead bez vlastníka, nebo s víc vlastníky, se odmítne; pak uživatele uveď. Leady a plán ukaž člověku, pro kterého pracuješ, ještě před zápisem, a zapisuj jeden lead na jedno volání.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/sync-segments":{"post":{"operationId":"leads.sync-segments","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."}},"required":["segmentIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Nastav segmenty leadu","description":"Dá lead přesně do těchhle segmentů. Prázdný seznam ho vyřadí ze všech segmentů. Odpověď nemá žádná data.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji tahle změna pro lead spustit. Klíč pak potřebuje `emails.send`.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/leads/{lead}/sync-tags":{"post":{"operationId":"leads.sync-tags","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."}},"required":["tagIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Nastav štítky leadu","description":"Dá leadu přesně tyhle štítky. Prázdný seznam sundá všechny štítky. Odpověď nemá žádná data.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji tahle změna pro lead spustit. Klíč pak potřebuje `emails.send`.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/leads/{lead}/sync-custom-fields":{"post":{"operationId":"leads.sync-custom-fields","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."}},"required":["leadCustomFields"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Nastav vlastní pole leadu","description":"Nastaví hodnoty tvých vlastních polí u leadu. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde. Odpověď nemá žádná data.\n\nVlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou leadů. Pak dostaneš 422 u `leadCustomFields`.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji tahle změna pro lead spustit. Klíč pak potřebuje `emails.send`.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/leads/{lead}/firmographics/enrich":{"post":{"operationId":"leads.firmographics.enrich","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadFirmographicEnrichmentEligibilityData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Doplň firemní údaje leadu","description":"> [!WARNING]\n> Tohle utrácí 1 AI kredit tvé firmy. Klíč musí poslat `maxCredits` a musí být alespoň 1. Menší číslo neprojde kontrolou, dostaneš 422 a nic se nestane.\n\nFusio na pozadí vyhledá firemní údaje leadu ve veřejných zdrojích. Odpověď je 202.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/emails":{"get":{"operationId":"leads.emails","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"limit","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Kolik sekvencí a naplánovaných e-mailů ukáže každý kontakt, od 1 do 100. Když ho vynecháš, je jich 20."},{"name":"sequencesCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Víc o jednom kontaktu přečteš přes contacts.emails."},{"name":"scheduledEmailsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Víc o jednom kontaktu přečteš přes contacts.emails."},{"name":"draftsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Víc o jednom kontaktu přečteš přes contacts.emails."},{"name":"conversationsCursor","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Víc o jednom kontaktu přečteš přes contacts.emails."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadEmailsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","emails.read"]}],"summary":"Vypiš osobní e-maily leadu","description":"Vrátí osobní e-maily všech kontaktů leadu v jedné odpovědi. Když chceš listovat e-maily jednoho kontaktu, použij `contacts.emails`.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: emails.read."}},"/v1/leads/{lead}/research-profile":{"post":{"operationId":"leads.research-profile.store","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/IndexLeadResearchProfileData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write","ai.generate"]}],"summary":"Vytvoř výzkumný profil leadu","description":"Výzkumný profil uchovává, co výzkum o leadu zjistil. Vytvoření zároveň na pozadí spustí výzkum leadu pomocí AI. Když chceš výzkum později spustit znovu, použij endpoint výzkumu. Odpověď je 201.\n\n> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPotřebuje jedno z těchto práv: leads.write. Potřebuje taky: ai.generate."}},"/v1/leads/{lead}/research-profile/prepare":{"post":{"operationId":"leads.research-profile.prepare","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Vlastní web firmy, nejvýš 2048 znaků. Nesmí to být sociální síť, mapa ani katalog. Fusio si nechá jen začátek, třeba https://example.cz."}},"required":["url"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/IndexLeadResearchProfileData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Vytvoř výzkumný profil leadu bez výzkumu","description":"Vytvoří výzkumný profil leadu, ale nespustí výzkum a neutratí kredity. Použij ho před uložením textu webu endpointem zdroje. Když lead ještě nemá web, dostane tenhle. Odpověď je 200.\n\nKdyž lead už má profil pro stejný web, dostaneš ten profil zpět a nic se nezmění. Když má profil pro jiný web, dostaneš 409.\n\nChyby: 403, když nesmíš lead měnit nebo není ve tvé firmě, 404, když lead neexistuje, 409, když je profil pro jiný web, 422, když je lead ztracený nebo je `url` špatně či je to sociální síť, mapa nebo katalog.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/research-profile/source":{"post":{"operationId":"leads.research-profile.source","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Adresa stránky, nejvýš 2048 znaků. Musí být na webu výzkumného profilu. www se ignoruje, jiné subdomény se odmítnou. Sociální síť, mapa ani katalog neprojdou."},"markdown":{"type":"string","minLength":1,"maxLength":50000,"description":"Text stránky v markdownu, od 1 do 50000 znaků."}},"required":["url","markdown"]},"minItems":1,"maxItems":20,"description":"Stránky, které jsi přečetl, od 1 do 20."}},"required":["pages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadResearchSourceSubmitData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Ulož text webu jako zdroj výzkumu leadu","description":"Uloží text webu, který jsi přečetl sám, jako zdroj výzkumu leadu. Nestojí žádné kredity. Krok, který čte web, se počítá jako hotový. Odpověď je 200. Odpověď vypíše hotové kroky a kroky, které ještě chybí.\n\nLead nejdřív potřebuje výzkumný profil: vytvoříš ho endpointem prepare. Každá stránka musí být na webu toho profilu, jinak dostaneš 422 `research_source_off_domain`. Když je výzkum už hotový, dostaneš 409 `research_already_complete` a nic se nezmění. Když ještě běží placený výzkum leadu, dostaneš 409; počkej, až skončí. Nové uložení zdroje nahradí dřívější stránky. Když je lead objevený lead, který posuzuješ, 48 hodin tím začne znovu.\n\nChyby: 403, když nesmíš lead měnit, 404, když lead nebo jeho profil chybí, 409, když je výzkum hotový, běží placený výzkum, je výzkumný profil propojen s jinou organizací nebo byl lead už povýšen, 422, když je stránka špatně, mimo web, nebo je lead ztracený.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/leads/{lead}/research-profile/research":{"post":{"operationId":"leads.research-profile.research","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","leads.write"]}],"summary":"Spusť výzkum leadu pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí prozkoumá lead. Odpověď je 202. Výsledek přečteš v dosijé.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: leads.write."}},"/v1/leads/{lead}/research-profile/dossier":{"get":{"operationId":"leads.research-profile.dossier","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadResearchProfileResearchDossierData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž výzkumné dosijé leadu","description":"Dosijé drží, co výzkum zjistil: produkty, zákazníky, konkurenty, strategie a hlas značky. Když výzkum ještě běží, zeptej se později.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads":{"post":{"operationId":"leads.store","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billingAddressSameAsLegal":{"type":"boolean","description":"true znamená, že faktury jdou na hlavní adresu. false potřebuje billingAddress. Když ho vynecháš, bude true."},"billingAddress":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Jméno na fakturách, když to není jméno leadu."},"street":{"type":"string","maxLength":255,"description":"Ulice a číslo domu pro faktury."},"city":{"type":"string","maxLength":255,"description":"Město pro faktury."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ pro faktury, nejvýš 20 znaků."},"countryIso":{"type":"string","minLength":2,"maxLength":2,"description":"Země pro faktury jako dvě písmena, třeba CZ."}},"required":["street","city","countryIso"],"description":"Adresa pro faktury. Fusio ji čte jen tehdy, když je billingAddressSameAsLegal false; pak jsou potřeba street, city a countryIso."},"name":{"type":["string","null"],"maxLength":255,"description":"Název firmy nebo jméno člověka, nejvýš 255 znaků."},"registrationNumber":{"type":["string","null"],"maxLength":50,"description":"IČO firmy, nejvýš 50 znaků. Nejdřív se zeptej leads.check-duplicate, ať nezaložíš stejnou firmu dvakrát."},"vatNumber":{"type":["string","null"],"maxLength":50,"description":"DIČ, třeba CZ12345678, nejvýš 50 znaků."},"street":{"type":["string","null"],"maxLength":255,"description":"Ulice a číslo domu."},"city":{"type":["string","null"],"maxLength":255,"description":"Město."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ, nejvýš 20 znaků."},"countryIso":{"type":["string","null"],"minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba CZ."},"stage":{"$ref":"#/components/schemas/LeadStage","description":"Kde lead je: cold, warm, qualified, client nebo lost. Musíš ho poslat."},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}],"description":"Proč je lead ztracený, třeba not_interested, no_budget nebo duplicate. other potřebuje lostReasonNote."},"lostReasonNote":{"type":["string","null"],"maxLength":1000,"description":"Tvoje vlastní slova, proč je lead ztracený, nejvýš 1000 znaků. Potřeba, když je lostReason other."},"personType":{"anyOf":[{"$ref":"#/components/schemas/LeadPersonType"},{"type":"null"}],"description":"legal pro firmu, physical pro člověka."},"source":{"type":["string","null"],"enum":["web","cold_call","referral","campaign","event","partner","import","social_discovery",null],"description":"Odkud lead přišel: web, cold_call, referral, campaign, event, partner, social_discovery nebo import. Zdroj, který nastavilo samo Fusio, třeba lead_form, se změnit nedá."},"website":{"type":["string","null"],"format":"uri","pattern":"^https?:\\/\\/(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?::[0-9]{1,5})?$","maxLength":255,"description":"Web. Fusio si nechá jen začátek, třeba https://example.cz, pokud preserveWebsitePath není true. Bez http Fusio doplní https://."},"preserveWebsitePath":{"type":"boolean","description":"true nechá celou webovou adresu i s cestou za doménou."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"leadCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}},"required":["customFieldId"]},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."},"firmographics":{"type":["object","null"],"properties":{"czNace":{"type":["string","null"],"description":"Kód CZ-NACE hlavní činnosti, jak je v číselníku rejstříku."},"legalForm":{"type":["string","null"],"description":"Kód právní formy, jak je v číselníku rejstříku."},"employeeBand":{"anyOf":[{"$ref":"#/components/schemas/EmployeeBand"},{"type":"null"}],"description":"Kolik lidí tam pracuje: micro, small, medium, large nebo enterprise."},"region":{"anyOf":[{"$ref":"#/components/schemas/CzechRegion"},{"type":"null"}],"description":"Český kraj, napsaný třeba jako Jihomoravský kraj."}},"description":"Údaje o firmě. Pole, které vynecháš, si nechá hodnotu. null nechá všechno, jak je."},"ownerId":{"type":["integer","null"],"description":"Člen, který se o lead stará. Když ho vynecháš, lead nemá vlastníka, ledaže smíš vidět jen svoje leady; pak jsi to ty."},"contacts":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":["integer","null"],"description":"Číslo kontaktu, který už máš. Přesune se k tomuhle leadu. Pošli contactId nebo contact."},"contact":{"type":["object","null"],"properties":{"type":{"$ref":"#/components/schemas/ContactType","description":"company pro pracovní kontakt firmy, personal pro soukromou osobu."},"email":{"type":["string","null"],"format":"email","maxLength":255,"description":"E-mail, nejvýš 255 znaků. Potřebuješ e-mail nebo telefon."},"firstName":{"type":["string","null"],"maxLength":255,"description":"Křestní jméno, nejvýš 255 znaků."},"lastName":{"type":["string","null"],"maxLength":255,"description":"Příjmení, nejvýš 255 znaků."},"name":{"type":["string","null"],"maxLength":255,"description":"Jméno k zobrazení, když ho nedělíš na křestní jméno a příjmení, nejvýš 255 znaků."},"phone":{"type":["string","null"],"pattern":"^(?:\\+|00)?[0-9][0-9 ().-]*$","maxLength":20,"description":"Telefonní číslo, třeba +420 601 234 567. Číslo bez předvolby se bere jako české. Nejvýš 20 znaků. Potřebuješ e-mail nebo telefon."},"position":{"type":["string","null"],"maxLength":255,"description":"Pracovní pozice člověka, třeba Majitel, nejvýš 255 znaků."},"preferredContactChannel":{"anyOf":[{"$ref":"#/components/schemas/PreferredContactChannel"},{"type":"null"}],"description":"Jak chce být člověk kontaktován: email, phone nebo whatsapp."}},"required":["type"],"description":"Nový kontakt, který se přidá. Pošli contactId nebo contact. Nový kontakt vyžaduje contacts.write."},"isPrimary":{"type":"boolean","description":"true pro hlavní kontakt leadu."}},"required":["isPrimary"]},"minItems":1,"uniqueItems":true,"description":"Lidé leadu, aspoň jeden. Právě jeden z nich musí mít isPrimary true."}},"required":["stage","contacts"]},"example":{"name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","street":"Mlýnská 8","city":"Brno","zip":"60200","countryIso":"CZ","stage":"warm","personType":"legal","source":"referral","website":"https://www.example.cz","segmentIds":[21],"tagIds":[71],"leadCustomFields":[{"customFieldId":10,"value":"12"}],"contacts":[{"contact":{"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","phone":"+420 601 234 567","position":"Jednatel","preferredContactChannel":"email"},"isPrimary":true}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateLeadData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Lead úspěšně vytvořen.","payload":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":1,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"processing","registerLookupLocked":true,"originatingLeadFormName":null,"leadContacts":[{"id":9120,"leadId":3051,"contactId":7720,"isPrimary":true,"buyingRole":"decision_maker","contact":{"id":"7720","userId":88,"tenantId":412,"segments":[],"tags":[],"contactCustomFields":[],"communicationPreference":null,"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":0,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","name":null,"phone":"+420601234567","position":"Jednatel","preferredContactChannel":"email","lastActivityAt":null,"emailVerifiedAt":null}}],"segmentIds":[21],"tagIds":[71],"leadCustomFields":[{"customFieldId":10,"value":"12"}],"tasks":[],"notes":[],"firmographic":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send","contacts.write"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Přidej lead","description":"Přidá lead s jeho kontakty a vrátí ho. V `contacts` propoj lidi, které už máš (`contactId`), nebo přidej nové (`contact`). Právě jeden kontakt musí být hlavní (`isPrimary: true`).\n\n> [!WARNING]\n> Fusio ti nezabrání přidat stejnou firmu dvakrát. Nejdřív se zeptej `leads.check-duplicate` s IČO nebo e-mailem.\n\n`segmentIds`, `tagIds` a `leadCustomFields` nahradí, co lead měl. Když seznam vynecháš, zůstane, jak je. Vlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou leadů; pak dostaneš 422 u `leadCustomFields`.\n\n`firmographics` obsahuje údaje o firmě, třeba kód CZ-NACE a počet lidí. Fusio později může doplnit další z obchodního rejstříku.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji tahle změna pro lead spustit. Klíč pak potřebuje `emails.send`.\n\nChyby: 422 s `payload.metric` crm_records, když tvůj tarif nemá místo pro další záznamy. Lead se počítá jako 1 záznam a každý nový kontakt jako 1 další.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send, contacts.write. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v1/leads/{lead}":{"get":{"operationId":"leads.show","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateLeadData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Lead úspěšně načten.","payload":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":1,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false,"originatingLeadFormName":null,"leadContacts":[{"id":9120,"leadId":3051,"contactId":7720,"isPrimary":true,"buyingRole":"decision_maker","contact":{"id":"7720","userId":88,"tenantId":412,"segments":[{"id":21,"tenantId":412,"userId":88,"name":"Pekárny","slug":"pekarny","description":"Pekárny a cukrárny v Brně a okolí."}],"tags":[{"id":71,"tenantId":412,"userId":88,"name":"Firemní flotila","slug":"firemni-flotila","color":"#2b6cb0","notes":null,"assignmentSource":"api"}],"contactCustomFields":[{"id":1503,"contactId":7720,"customField":{"id":9,"userId":88,"tenantId":412,"name":"preferred_visit_day","label":"Den návštěvy","description":null,"type":"text","isRequired":false,"isActive":true,"isUniqueIdentifier":false,"options":null,"deletedAt":null},"value":"úterý"}],"communicationPreference":{"id":6610,"hashToken":"b7f3c2a9e4d14f0c9a1e5d77","prefersId":7720,"prefersType":"contact","isGloballyUnsubscribed":false,"unsubscriptionReason":null,"unsubscriptionReasonDescription":null,"languageId":2,"emailFormat":"html","channelEmailEnabled":true,"channelSmsEnabled":false,"emailConsentStatus":"subscribed","smsConsentStatus":"not_specified","callConsentStatus":"not_specified","consentUpdatedAt":"2026-11-03T08:30:00Z","consentIp":null,"consentUserAgent":null,"consentSource":"api","recipientName":"Petr Svoboda","recipientEmail":"petr.svoboda@example.cz","senderName":"Cyklo Novák s.r.o."},"lead":{"id":"3051","countryId":58,"countryIso":"CZ","name":"Pekárna U Mlýna s.r.o.","registrationNumber":"87654321","vatNumber":"CZ87654321","unattestedIdentity":null,"street":"Mlýnská 8","city":"Brno","zip":"60200","stage":"warm","lostReason":null,"lostReasonNote":null,"personType":"legal","source":"referral","website":"https://www.example.cz","hasResearchProfile":false,"originatingLeadFormId":null,"outreachStatus":"not_contacted","contactsCount":0,"countryName":"Česko","billingAddressSameAsLegal":true,"billingAddress":null,"registerLookupStatus":"completed","registerLookupLocked":false},"type":"company","email":"petr.svoboda@example.cz","firstName":"Petr","lastName":"Svoboda","name":null,"phone":"+420601234567","position":"Jednatel","preferredContactChannel":"email","lastActivityAt":"2026-11-12T13:05:00Z","emailVerifiedAt":null}}],"segmentIds":[21],"tagIds":[71],"leadCustomFields":[{"customFieldId":10,"value":"12"}],"tasks":[{"id":5530,"tenantId":412,"userId":88,"assigneeId":88,"assignee":{"id":88,"firstName":"Jana","lastName":"Nováková"},"taskableType":"lead","taskableId":3051,"noteId":null,"title":"Zavolat kvůli nabídce servisu","description":null,"dueAt":"2026-11-20T09:00:00Z","status":"pending","completedAt":null,"pinnedAt":null,"createdAt":"2026-11-12T13:05:00Z","updatedAt":"2026-11-12T13:05:00Z","cadenceStep":null,"outreachTouchId":null}],"notes":[{"id":4410,"tenantId":412,"userId":88,"user":{"id":88,"firstName":"Jana","lastName":"Nováková"},"noteableType":"lead","noteableId":3051,"body":"Mají 12 firemních kol na rozvoz. Chtějí jeden servis ročně.","leadOutreachTouchId":null,"outreachTouch":null,"createdAt":"2026-11-12T13:05:00Z","updatedAt":"2026-11-12T13:05:00Z","pinnedAt":null}],"firmographic":{"source":"ares","fetchedAt":"2026-11-03T08:31:00Z","isActive":true,"czNace":"10710","czNaceLabel":"Výroba pekařských a cukrářských výrobků, kromě trvanlivých","naceCategory":{"value":"manufacturing","label":"Výroba"},"legalForm":{"value":"112","label":"Společnost s ručením omezeným"},"employeeBand":{"value":"small","label":"10–49 zaměstnanců"},"region":"Jihomoravský kraj","registeredOn":"2014-05-12","shareCapital":200000,"businessActivities":["Pekařství, cukrářství"],"foundedOn":"2014-05-12","taxOffice":{"value":"461","label":"Územní pracoviště Brno I"},"registrations":{"vr":"AKTIVNI","res":"AKTIVNI","rzp":"AKTIVNI","dph":"AKTIVNI","ir":null},"naceCodes":[{"value":"10710","label":"Výroba pekařských a cukrářských výrobků, kromě trvanlivých"}],"institutionalSector":{"value":"11002","label":"Soukromé nefinanční podniky pod zahraniční kontrolou"},"deliveryAddress":"Mlýnská 8, 602 00 Brno","fileNumber":"C 81234","registryCourt":{"value":"KSBR","label":"Krajský soud v Brně"},"registerPeople":[{"firstName":"Petr","lastName":"Svoboda","position":"jednatel","isPrimary":true}],"czNaceExpired":false,"legalFormExpired":false}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž lead","description":"Vrátí lead s jeho kontakty, segmenty, štítky, vlastními poli, úkoly a dalším.\n\nPotřebuje jedno z těchto práv: leads.read."},"put":{"operationId":"leads.update","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"billingAddressSameAsLegal":{"type":"boolean","description":"true znamená, že faktury jdou na hlavní adresu. false potřebuje billingAddress. Když ho vynecháš, zůstane, jak je."},"billingAddress":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Jméno na fakturách, když to není jméno leadu."},"street":{"type":"string","maxLength":255,"description":"Ulice a číslo domu pro faktury."},"city":{"type":"string","maxLength":255,"description":"Město pro faktury."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ pro faktury, nejvýš 20 znaků."},"countryIso":{"type":"string","minLength":2,"maxLength":2,"description":"Země pro faktury jako dvě písmena, třeba CZ."}},"required":["street","city","countryIso"],"description":"Adresa pro faktury. Fusio ji čte jen tehdy, když je billingAddressSameAsLegal false; pak jsou potřeba street, city a countryIso."},"name":{"type":["string","null"],"maxLength":255,"description":"Název firmy nebo jméno člověka, nejvýš 255 znaků."},"registrationNumber":{"type":["string","null"],"maxLength":50,"description":"IČO firmy, nejvýš 50 znaků. Nejdřív se zeptej leads.check-duplicate, ať nezaložíš stejnou firmu dvakrát."},"vatNumber":{"type":["string","null"],"maxLength":50,"description":"DIČ, třeba CZ12345678, nejvýš 50 znaků."},"street":{"type":["string","null"],"maxLength":255,"description":"Ulice a číslo domu."},"city":{"type":["string","null"],"maxLength":255,"description":"Město."},"zip":{"type":["string","null"],"maxLength":20,"description":"PSČ, nejvýš 20 znaků."},"countryIso":{"type":["string","null"],"minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba CZ."},"stage":{"$ref":"#/components/schemas/LeadStage","description":"Kde lead je: cold, warm, qualified, client nebo lost."},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}],"description":"Proč je lead ztracený, třeba not_interested, no_budget nebo duplicate. other potřebuje lostReasonNote."},"lostReasonNote":{"type":["string","null"],"maxLength":1000,"description":"Tvoje vlastní slova, proč je lead ztracený, nejvýš 1000 znaků. Potřeba, když je lostReason other."},"personType":{"anyOf":[{"$ref":"#/components/schemas/LeadPersonType"},{"type":"null"}],"description":"legal pro firmu, physical pro člověka."},"source":{"type":["string","null"],"enum":["web","cold_call","referral","campaign","event","partner","import","social_discovery",null],"description":"Odkud lead přišel: web, cold_call, referral, campaign, event, partner, social_discovery nebo import. Zdroj, který nastavilo samo Fusio, třeba lead_form, se změnit nedá."},"website":{"type":["string","null"],"format":"uri","pattern":"^https?:\\/\\/(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?::[0-9]{1,5})?$","maxLength":255,"description":"Web. Fusio si nechá jen začátek, třeba https://example.cz, pokud preserveWebsitePath není true. Bez http Fusio doplní https://."},"preserveWebsitePath":{"type":"boolean","description":"true nechá celou webovou adresu i s cestou za doménou."},"segmentIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla segmentů, nejvýš 500. Seznam nahradí segmenty, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"tagIds":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":500,"description":"Čísla štítků, nejvýš 500. Seznam nahradí štítky, které měl. Čísla, která nejsou z tvé firmy, se přeskočí."},"leadCustomFields":{"type":"array","items":{"type":"object","properties":{"customFieldId":{"type":"integer","description":"Číslo vlastního pole. Musí to být pole tvé firmy."},"value":{"type":["string","null"],"maxLength":65535,"description":"Hodnota jako text, nejvýš 65535 znaků. null ji smaže. Když je pole jedinečný klíč, žádný jiný záznam nesmí mít stejnou hodnotu."}}},"description":"Hodnoty tvých vlastních polí. Seznam nahradí všechny hodnoty: pole, které vynecháš, o hodnotu přijde."},"firmographics":{"type":["object","null"],"properties":{"czNace":{"type":["string","null"],"description":"Kód CZ-NACE hlavní činnosti, jak je v číselníku rejstříku."},"legalForm":{"type":["string","null"],"description":"Kód právní formy, jak je v číselníku rejstříku."},"employeeBand":{"anyOf":[{"$ref":"#/components/schemas/EmployeeBand"},{"type":"null"}],"description":"Kolik lidí tam pracuje: micro, small, medium, large nebo enterprise."},"region":{"anyOf":[{"$ref":"#/components/schemas/CzechRegion"},{"type":"null"}],"description":"Český kraj, napsaný třeba jako Jihomoravský kraj."}},"description":"Údaje o firmě. Pole, které vynecháš, si nechá hodnotu. null nechá všechno, jak je."},"contacts":{"type":"array","items":{"type":"object","properties":{"contactId":{"type":"integer","description":"Číslo kontaktu, který už máš. Když je u jiného leadu, přesune se sem."},"isPrimary":{"type":"boolean","description":"true pro hlavní kontakt leadu."}},"required":["contactId","isPrimary"]},"minItems":1,"uniqueItems":true,"description":"Kontakty, které se k leadu propojí nebo změní, aspoň jeden. Právě jeden z nich musí mít isPrimary true. Kontakty, které vynecháš, u leadu zůstanou."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Změň lead","description":"Změní jen pole, která pošleš. Odpověď nemá žádná data; lead si znovu přečti přes `leads.show`.\n\n`contacts` propojí nebo změní kontakty, které vypíšeš. Ostatní kontakty z leadu neodebere; na to použij `lead-contacts.destroy`.\n\n`segmentIds`, `tagIds` a `leadCustomFields` nahradí, co lead měl. Když seznam vynecháš, zůstane, jak je. Vlastní pole, které je jedinečný klíč, nesmí mít stejnou hodnotu u dvou leadů; pak dostaneš 422 u `leadCustomFields`.\n\n> [!WARNING]\n> Dokud má tvoje firma aktivní sekvenci e-mailů, může ji tahle změna pro lead spustit. Klíč pak potřebuje `emails.send`.\n\nChyby: 409 `lead.register_lookup_processing`, když měníš IČO, zemi nebo `firmographics`, zatímco Fusio ještě čte obchodní rejstřík. Zkus to za chvíli znovu.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."},"delete":{"operationId":"leads.destroy","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Smaž lead","description":"Smaže lead a zastaví jeho kadence. Odpověď nemá žádná data.\n\nDostaneš 422, dokud dokument leadu čeká na podpisy.\n\n> [!CAUTION]\n> API lead vrátit neumí.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/lead-outreach-queue":{"get":{"operationId":"lead-outreach-queue.index","tags":["leads"],"parameters":[{"name":"limit","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":20},"description":"Kolik zájemců vrátit, od 1 do 20. Když chybí, 20."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadOutreachQueueItemData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš své zájemce, kteří čekají na první kontakt","description":"Dostaneš zájemce, které našlo vyhledávání, někdo je schválil a máš je přiřazené, dokud je nikdo neoslovil: mají stav cold, nemají odchozí kontakt a nejsou v běžícím ani pozastaveném plánu. Nejlépe odpovídající jsou první; zájemci bez skóre jsou na konci.\n\nPro zahájení oslovení vyber aktivní plán oslovení přes `GET /lead-cadence-templates?purpose=outreach&active=1` a případně rámec přes `GET /message-frameworks?goal=initial_outreach`. Zájemce a plán ukaž člověku, pro kterého pracuješ, a po jeho souhlasu zapiš každého zájemce přes `POST /leads/{lead}/cadence-enrollments`. Zapsaný zájemce ze seznamu zmizí.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/lead-cadence-tasks/due":{"get":{"operationId":"lead-cadence-tasks.due","tags":["leads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CadenceDueTasksData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš zprávy kadence k odeslání a kroky k přípravě","description":"Dostaneš práci z kadencí leadů, které máš přiřazené, v kadencích, které běží. Počítají se jen kroky, které jsou ještě otevřené.\n\n`toSend` obsahuje zprávy, které někdo ve Fusiu schválil a které odesíláš sám: LinkedIn a WhatsApp. E-maily odesílá Fusio a hovory, SMS ani hlasové zprávy tu nikdy nejsou. Dávku ukaž člověku, pro kterého pracuješ, a odešli ji až po jeho souhlasu. Každou zprávu nahlas přes `POST /lead-cadence-tasks/{leadCadenceTask}/complete` hned po odeslání, jedno volání po druhém, nikdy souběžně. Každá kadence dává jednu zprávu najednou; pro další zavolej tento endpoint znovu.\n\n`toPrepare` obsahuje kroky bez obsahu, třeba z nové cesty, na kterou kadence přepnula. `outreachTask` říká, jaký obsah krok potřebuje. Krok připrav, třeba přes `POST /lead-cadence-tasks/{leadCadenceTask}/outreach/generate`; e-maily a zprávy na LinkedIn nebo WhatsApp pak čekají ve Fusiu na schválení. Kroky z tohoto seznamu nikdy neodesílej. Po přípravě zavolej tento endpoint znovu a dostaneš další kroky. Obsah, který někdo odebral, se znovu nenabízí; obsah zrušený kvůli odpovědi leadu ano.\n\n`contact` je hlavní kontakt leadu, nebo null, když ho lead nemá. `linkedinUrl` je vyplněné, když Fusio lead našlo na LinkedInu.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/lead-cadence-tasks/{leadCadenceTask}/complete":{"post":{"operationId":"lead-cadence-tasks.complete","tags":["leads"],"parameters":[{"name":"leadCadenceTask","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sentText":{"type":"string","maxLength":5000,"description":"Text, který jsi leadovi poslal, nejvýš 5000 znaků."}},"required":["sentText"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CadenceDueTaskItemData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"summary":"Nahlas schválenou zprávu kadence jako odeslanou","description":"Volej to, až když schválenou zprávu kroku na LinkedIn nebo WhatsApp sám odešleš, hned po odeslání. Hlas jednu zprávu po druhé, nikdy souběžně, a další si vezmi z `GET /lead-cadence-tasks/due`. Fusio zprávu označí jako odeslanou s tvým textem, přidá leadovi odchozí kontakt a krok dokončí, takže kadence pokračuje. Když je tenhle krok až po krocích, které ještě nebyly hotové, kadence je přeskočí a zruší jejich zprávy. Odpověď je odeslaná položka, stejně jako v `toSend` z `GET /lead-cadence-tasks/due`.\n\nKdyž stejnou zprávu nahlásíš znovu, nic se nezmění a dostaneš stejnou odpověď. Když zpráva kroku není schválená nebo byla odebrána, dostaneš 409 `outreach_message_not_approved`. E-mail, hovor nebo jiný krok vrátí 409 `outreach_channel_mismatch`: e-maily odesílá Fusio samo. Zpráva napsaná pro jiný kanál, než krok teď používá, vrátí také 409 `outreach_channel_mismatch`. Zpráva, jejíž čas odeslání ještě nenastal, vrátí 409 `outreach_message_not_due`. Když krok už není otevřený, třeba protože je kadence pozastavená, dostaneš 409 `outreach_task_not_open`.\n\nPotřebuje jedno z těchto práv: leads.write."}},"/v1/lead-cadence-tasks/{leadCadenceTask}/outreach/generate":{"post":{"operationId":"lead-cadence-tasks.outreach.generate","tags":["leads"],"parameters":[{"name":"leadCadenceTask","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/CadenceOutreachResultData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","leads.write"]}],"x-fusio-conditional-scopes":["emails.write"],"summary":"Napiš obsah kroku kadence pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nFusio napíše obsah jednoho kroku kadence leadu: e-mail, zprávu na LinkedIn nebo WhatsApp, scénář hovoru, SMS nebo hlasovou zprávu. Odpověď je 201 s uloženým obsahem. E-maily a zprávy na LinkedIn nebo WhatsApp čekají ve Fusiu na schválení; nic se neodešle, dokud je někdo neschválí.\n\nKdyž Fusio o leadu ví příliš málo, dostaneš 422 `outreach_insufficient_context` s `missingAxes`, tedy tím, co chybí. Když se odpověď AI nedá použít, dostaneš 422 `outreach_generation_invalid`. Krok bez obsahu, třeba schůzka, vrátí 409 `outreach_channel_mismatch`. Když Fusio ten samý krok ještě píše pro dřívější požadavek, dostaneš 409 `outreach_generation_in_progress`; chvíli počkej a zkus to znovu. Kredity se strhnou, jen když se obsah uloží.\n\nKlíč potřebuje navíc `leads.write`. U e-mailového kroku dostane klíč bez `emails.write` 403 `insufficient_scope`.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: leads.write. Některé hodnoty potřebují ještě: emails.write."}},"/v1/leads/{lead}/analytics":{"get":{"operationId":"leads.analytics","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"contact_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tenhle kontakt leadu. Musí to být kontakt tohohle leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Události listuješ přes leads.analytics.history."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Události listuješ přes leads.analytics.history."},{"name":"campaign_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tuhle kampaň. Musí to být kampaň tvé firmy."},{"name":"type","in":"query","schema":{"type":["string","null"],"enum":["click","open","sent","web","email","form","ad","booking","deal","note","task","inquiry",null]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Události filtruješ přes leads.analytics.history."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Události filtruješ přes leads.analytics.history."},{"name":"actor","in":"query","schema":{"type":["string","null"],"enum":["all","me","team","contact","system",null]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Události filtruješ přes leads.analytics.history."},{"name":"group_sessions","in":"query","schema":{"type":"boolean"},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Návštěvy webu seskupíš přes leads.analytics.history."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž, jak lead reaguje","description":"Vrátí, jak lead a každý jeho kontakt reagují na e-maily. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/history":{"get":{"operationId":"leads.analytics.history","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"contact_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tenhle kontakt leadu. Musí to být kontakt tohohle leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Kde začíná další stránka. Vezmi ho z next_cursor předchozí stránky."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Kolik položek má jedna stránka, od 1 do 100. Když ho vynecháš, je jich 20."},{"name":"campaign_id","in":"query","schema":{"type":["integer","null"]},"description":"Tady se nepoužívá. Fusio zkontroluje, že kampaň je tvoje, a pak ukáže všechny kampaně."},{"name":"type","in":"query","schema":{"type":["string","null"],"enum":["click","open","sent","web","email","form","ad","booking","deal","note","task","inquiry",null]},"description":"Ukaž jen jeden druh: click, open, sent, web, email, form, ad, booking, deal, note, task nebo inquiry."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Text, který se hledá v událostech, nejvýš 255 znaků."},{"name":"actor","in":"query","schema":{"type":["string","null"],"enum":["all","me","team","contact","system",null]},"description":"Ukaž jen to, co někdo udělal: all, me (ty), team (tvoji kolegové), contact (lidé leadu) nebo system (samo Fusio)."},{"name":"group_sessions","in":"query","schema":{"type":"boolean"},"description":"true ukáže každou návštěvu webu jako jednu událost i s jejími stránkami a na první stránce přidá commonPath."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadHistoryPageOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Historie leadu úspěšně načtena","payload":{"data":[{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:06:00Z","context":"button","url":"https://www.example.cz/servis","country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":"hlavni-tlacitko","clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"click","source":"email","sourceId":99231,"submission":null,"record":null,"cadenceStep":null,"session":null},{"channel":"campaign","eventName":null,"campaignName":"Podzimní kontrola kol","trackableType":"email_campaign","trackableId":1840,"date":"2026-11-12T13:05:00Z","context":null,"url":null,"country":"CZ","deviceType":"mobile","leadFormId":null,"leadFormName":null,"submissionId":null,"browser":"Safari","operatingSystem":"iOS","locale":"cs-CZ","referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"open","source":"email","sourceId":55410,"submission":null,"record":null,"cadenceStep":null,"session":null},{"channel":null,"eventName":null,"campaignName":null,"trackableType":null,"trackableId":null,"date":"2026-11-12T12:40:00Z","context":null,"url":null,"country":null,"deviceType":null,"leadFormId":null,"leadFormName":null,"submissionId":null,"browser":null,"operatingSystem":null,"locale":null,"referer":null,"path":null,"hostname":null,"origin":null,"utmSource":null,"utmMedium":null,"utmCampaign":null,"utmTerm":null,"utmContent":null,"clickIdSource":null,"clickIdValue":null,"consentState":null,"ingestSource":null,"result":null,"visitorSessionId":null,"payload":null,"recipientEmail":null,"deliveryStatus":null,"deliveredAt":null,"bouncedAt":null,"bounceReason":null,"bounceType":null,"bounceCode":null,"smtpCode":null,"unsubscribedAt":null,"unsubscribeReason":null,"spamComplaintAt":null,"envelopeId":null,"type":"deal","source":"crm","sourceId":1230,"submission":null,"record":{"kind":"deal","id":615,"event":"created","title":"Servis firemních kol 2027","detail":null,"status":"proposal","previousStatus":null,"startsAtUtc":null,"actorName":"Jana Nováková","parent":null},"cadenceStep":null,"session":null}],"path":"https://api.example.cz/api/v1/leads/3051/analytics/history","per_page":3,"next_cursor":"eyJkYXRlIjoiMjAyNi0xMS0xMiAwNzowMDowMCIsInNvdXJjZUlkIjozMDg3N30","next_page_url":"https://api.example.cz/api/v1/leads/3051/analytics/history?per_page=3&cursor=eyJkYXRlIjoiMjAyNi0xMS0xMiAwNzowMDowMCIsInNvdXJjZUlkIjozMDg3N30","prev_cursor":null,"prev_page_url":null,"typeCounts":{"click":2,"open":4,"sent":6,"web":0,"booking":0,"deal":1,"note":1,"task":1,"inquiry":0,"email":0,"form":0,"ad":0},"commonPath":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš historii leadu po stránkách","description":"Vrátí všechno, co se s leadem dělo, po stránkách, nejnovější první: e-maily, návštěvy webu, formuláře, reklamy, rezervace, obchody, poznámky, úkoly a poptávky. Pošli `next_cursor` zpátky jako `cursor` a dostaneš další stránku.\n\nČlověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/overview":{"get":{"operationId":"leads.analytics.overview","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž krátký příběh leadu","description":"Vrátí hlavní fakta o leadu na jednom místě: odkud přišel, co dělal, co přijde dál a kdo rozhoduje. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/forms":{"get":{"operationId":"leads.analytics.forms","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsFormsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž formuláře, které lead vyplnil","description":"Vrátí formuláře, které lidé leadu viděli, začali a odeslali, i s odpověďmi. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/deals":{"get":{"operationId":"leads.analytics.deals","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsDealsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","deals.read"]}],"summary":"Ukaž obchody leadu","description":"Vrátí obchody leadu s hodnotou, historií fází, úkoly a poznámkami. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů. Člověk potřebuje i právo vidět obchody.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: deals.read."}},"/v1/leads/{lead}/analytics/web":{"get":{"operationId":"leads.analytics.web","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."},{"name":"timezone","in":"query","schema":{"type":["string","null"]},"description":"Časové pásmo pro dny a hodiny, třeba Europe/Prague. Když ho vynecháš, použije se UTC."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsWebData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž návštěvy webu leadu","description":"Vrátí návštěvy lidí leadu na tvém webu. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/ads":{"get":{"operationId":"leads.analytics.ads","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsAdsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","ads.read"]}],"summary":"Ukaž prokliky reklam leadu","description":"Vrátí reklamy, na které lidé leadu klikli, a co z toho vzniklo. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: ads.read."}},"/v1/leads/{lead}/analytics/emails":{"get":{"operationId":"leads.analytics.emails","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"contact_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tenhle kontakt leadu. Musí to být kontakt tohohle leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Kolik položek má jedna stránka, od 1 do 100. Když ho vynecháš, je jich 20."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsEmailsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","emails.read"]}],"summary":"Vypiš e-maily poslané leadu","description":"Vrátí e-maily poslané lidem leadu po stránkách, i s otevřeními, prokliky a odpověďmi. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: emails.read."}},"/v1/leads/{lead}/analytics/related":{"get":{"operationId":"leads.analytics.related","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadAnalyticsRelatedData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Vypiš leady, které vypadají příbuzně","description":"Vrátí jiné leady, které vypadají jako stejná firma nebo k ní patří. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/analytics/timeseries":{"get":{"operationId":"leads.analytics.timeseries","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."},{"name":"contact_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tenhle kontakt leadu. Musí to být kontakt tohohle leadu."},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"První den, který se počítá, třeba 2026-11-01. Když ho vynecháš, počítá se od začátku."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Poslední den, který se počítá, třeba 2026-11-30. Když ho vynecháš, počítá se až do teď."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Všechny dny přijdou v jedné odpovědi."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Všechny dny přijdou v jedné odpovědi."},{"name":"campaign_id","in":"query","schema":{"type":["integer","null"]},"description":"Počítej jen tuhle kampaň. Musí to být kampaň tvé firmy."},{"name":"type","in":"query","schema":{"type":["string","null"],"enum":["click","open","sent","web","email","form","ad","booking","deal","note","task","inquiry",null]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Počítá se každý druh."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Počítá se každá událost."},{"name":"actor","in":"query","schema":{"type":["string","null"],"enum":["all","me","team","contact","system",null]},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Počítá se každá událost."},{"name":"group_sessions","in":"query","schema":{"type":"boolean"},"description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Návštěvy se vždycky počítají jednotlivě."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsTimeSeriesDayData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Spočítej, co lead dělal po dnech","description":"Vrátí jednu položku za každý den, kdy se něco stalo: e-maily, otevření, prokliky, odpovědi, návštěvy webu, formuláře, rezervace a prokliky reklam. Dny bez ničeho chybí. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/campaigns":{"get":{"operationId":"leads.campaigns","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsCampaignOutputData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Kampaně leadu úspěšně načteny","payload":[{"id":52,"name":"Podzimní kontrola kol","mode":"burst","sentAt":"2026-11-12T07:00:00Z"},{"id":47,"name":"Tipy pro firemní flotily","mode":"nurture","sentAt":"2026-10-06T07:00:00Z"}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","campaigns.read"]}],"summary":"Vypiš kampaně, které leadu poslaly e-mail","description":"Vrátí kampaně, které poslaly e-mail některému kontaktu leadu, nejnovější první. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: campaigns.read."}},"/v1/leads/{lead}/scoring":{"get":{"operationId":"leads.scoring","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadScoringData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read"]}],"summary":"Ukaž skóre leadu","description":"Vrátí, jak dobře lead sedí a jak moc má zájem, i s důvody. Člověk, za kterého klíč jedná, potřebuje právo vidět analytiku leadů.\n\nPotřebuje jedno z těchto práv: leads.read."}},"/v1/leads/{lead}/contacts":{"get":{"operationId":"lead-contacts.index","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/LeadContact.IndexLeadContactData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.read","contacts.read"]}],"summary":"Vypiš kontakty leadu","description":"Vrátí kontakty leadu. Každá položka je propojení leadu a kontaktu.\n\nPotřebuje jedno z těchto práv: leads.read. Potřebuje taky: contacts.read."},"post":{"operationId":"lead-contacts.store","tags":["leads"],"parameters":[{"name":"lead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo leadu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"integer","description":"Číslo kontaktu. Když je u jiného leadu, přesune se sem."},"isPrimary":{"type":"boolean","description":"true z něj udělá hlavní kontakt leadu. Když ho vynecháš, je to false."}},"required":["contactId"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadContact.IndexLeadContactData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write","contacts.write"]}],"summary":"Propoj kontakt s leadem","description":"Propojí kontakt s leadem a vrátí propojení. Kontakt patří jen k jednomu leadu, takže od starého leadu odejde.\n\nPotřebuje jedno z těchto práv: leads.write. Potřebuje taky: contacts.write."}},"/v1/lead-contacts/{leadContact}":{"put":{"operationId":"lead-contacts.update","tags":["leads"],"parameters":[{"name":"leadContact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo propojení leadu a kontaktu. Najdeš ho v seznamu kontaktů leadu."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"integer","description":"Tady se nepoužívá, ale Fusio ho pořád kontroluje. Propojení si vždycky nechá svůj kontakt."},"isPrimary":{"type":"boolean","description":"true z něj udělá hlavní kontakt leadu."},"buyingRole":{"anyOf":[{"$ref":"#/components/schemas/LeadContactBuyingRole"},{"type":"null"}],"description":"Co člověk při nákupu dělá: decision_maker, champion, influencer, user nebo blocker. null ji smaže."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write","contacts.write"]}],"summary":"Změň roli kontaktu u leadu","description":"Udělá z kontaktu hlavní kontakt nebo nastaví jeho nákupní roli. Odpověď nemá žádná data.\n\nPotřebuje jedno z těchto práv: leads.write. Potřebuje taky: contacts.write."},"delete":{"operationId":"lead-contacts.destroy","tags":["leads"],"parameters":[{"name":"leadContact","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo propojení leadu a kontaktu. Najdeš ho v seznamu kontaktů leadu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write","contacts.write"]}],"summary":"Odeber kontakt z leadu","description":"Odebere kontakt z leadu. Samotný kontakt zůstane. Odpověď nemá žádná data. Dostaneš 422, když je to poslední kontakt leadu nebo ten hlavní; nejdřív udělej hlavním jiný kontakt.\n\nPotřebuje jedno z těchto práv: leads.write. Potřebuje taky: contacts.write."}},"/v1/mascots":{"get":{"operationId":"mascots.index","tags":["mascots"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantMascotOutputData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš maskoty","description":"Vrátí všechny tvoje maskoty s jejich místy, kamarády a presety, které je používají.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"post":{"operationId":"mascots.store","tags":["mascots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"description":"Jméno maskota, nejvýš 120 znaků."},"description":{"type":["string","null"],"maxLength":1000,"description":"Jak maskot vypadá, nejvýš 1000 znaků."},"fileId":{"type":["integer","null"],"description":"Číslo obrázku maskota."},"profileIds":{"type":"array","items":{"type":"integer"},"uniqueItems":true,"description":"Čísla presetů stylu, které maskota používají. Preset unese nejvýš 3 maskoty."},"personality":{"type":["string","null"],"maxLength":500,"description":"Jak se maskot chová, nejvýš 500 znaků."},"places":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"description":{"type":["string","null"],"maxLength":300}},"required":["name"]},"maxItems":5,"description":"Místa, kde se maskot objevuje, nejvýš 5, každé se jménem a popisem do 300 znaků."},"friends":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":300},"friendMascotId":{"type":["integer","null"]},"fileId":{"type":["integer","null"]}}},"maxItems":5,"uniqueItems":true,"description":"Kamarádi maskota, nejvýš 5. Každý má jméno, nebo friendMascotId pro jiného tvého maskota, popis do 300 znaků a fileId pro obrázek."}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantMascotOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř maskota","description":"Vytvoří maskota. AI ho pak může kreslit do obrázků presetů z profileIds.\n\nDostaneš 422, když preset z profileIds už má 3 maskoty, když obrázek není obrázek, nebo když kamarád nemá jméno ani friendMascotId.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/mascots/generations":{"post":{"operationId":"mascots.generations.store","tags":["mascots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"integer","description":"Číslo presetu stylu, ve kterém AI kreslí."},"name":{"type":"string","maxLength":120,"description":"Jméno maskota, nejvýš 120 znaků."},"prompt":{"type":"string","maxLength":1000,"description":"Jak má maskot vypadat, nejvýš 1000 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["profileId","name","prompt"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AiImageGenerationStatusData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Nakresli maskota pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI na pozadí nakreslí obrázky maskota ve stylu presetu. Odpověď je 201 s prací; sleduj její stav a postup.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/mascots/description":{"post":{"operationId":"mascots.description.store","tags":["mascots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"integer","description":"Číslo tvého obrázku maskota."},"name":{"type":"string","maxLength":120,"description":"Jméno maskota, nejvýš 120 znaků."},"profileId":{"type":["integer","null"],"description":"Číslo presetu stylu, když je popis pro něj."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["fileId","name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MascotDescriptionOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Popiš maskota pomocí AI","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nAI se podívá na obrázek tvého maskota a napíše, jak vypadá a jak se chová. Nic se neuloží: dej text do description a personality maskota. Soubor musí být obrázek; jinak dostaneš 422.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/mascots/{mascot}":{"put":{"operationId":"mascots.update","tags":["mascots"],"parameters":[{"name":"mascot","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo maskota."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"description":"Jméno maskota, nejvýš 120 znaků."},"description":{"type":["string","null"],"maxLength":1000,"description":"Jak maskot vypadá, nejvýš 1000 znaků."},"fileId":{"type":["integer","null"],"description":"Číslo obrázku maskota."},"profileIds":{"type":"array","items":{"type":"integer"},"uniqueItems":true,"description":"Čísla presetů stylu, které maskota používají. Preset unese nejvýš 3 maskoty."},"personality":{"type":["string","null"],"maxLength":500,"description":"Jak se maskot chová, nejvýš 500 znaků."},"places":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"description":{"type":["string","null"],"maxLength":300}},"required":["name"]},"maxItems":5,"description":"Místa, kde se maskot objevuje, nejvýš 5, každé se jménem a popisem do 300 znaků."},"friends":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":300},"friendMascotId":{"type":["integer","null"]},"fileId":{"type":["integer","null"]}}},"maxItems":5,"uniqueItems":true,"description":"Kamarádi maskota, nejvýš 5. Každý má jméno, nebo friendMascotId pro jiného tvého maskota, popis do 300 znaků a fileId pro obrázek."}},"required":["name"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantMascotOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň maskota","description":"Změní maskota. Jméno pošli vždy. Pole, které vynecháš, zůstane; seznam, který pošleš, nahradí ten starý. Maskot nemůže být svým vlastním kamarádem.\n\nDostaneš 422, když preset z profileIds už má 3 maskoty, když obrázek není obrázek, nebo když kamarád nemá jméno ani friendMascotId.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"mascots.destroy","tags":["mascots"],"parameters":[{"name":"mascot","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo maskota."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber maskota","description":"Odebere maskota. Presety, které ho používaly, ho přestanou kreslit, a ostatní maskoti o něj přijdou jako o kamaráda.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/meta-ads/overview":{"get":{"operationId":"meta-ads.overview","tags":["meta-ads"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[campaignId]","in":"query","schema":{"type":["integer","null"]},"description":"Jen tahle tvoje kampaň. Když ho vynecháš, jsou to všechny."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž přehled reklam Meta","description":"Vrátí, jak se tvým kampaním na platformě Meta dařilo za období: zobrazení, dosah, kliknutí na odkaz, výsledky a útratu z Meta Ads a návštěvy, leady a klienty, které z nich vidělo Fusio.\n\nMeta posílá nová čísla každou noc a párkrát přes den. Dosah uvidíš jen za období posledních 7, 30 nebo 90 dní. Cíle pro Meta Ads přijdou později. Do té doby jsou konverze v kpis prázdné a totals.fusio.conversions je 0.\n\nTahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-campaigns":{"get":{"operationId":"meta-ads-campaigns.index","tags":["meta-ads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsTreeData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš kampaně Meta","description":"Vrátí všechno o tvých kampaních v Meta Ads najednou: nastavení a rozpočet, počty a všechny kampaně s jejich sadami a reklamami.\n\nTahle adresa nebere žádné filtry.\n\nPotřebuje jedno z těchto práv: ads.read."},"post":{"operationId":"meta-ads-campaigns.store","tags":["meta-ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít. Když ho při založení vynecháš, Fusio nějaký vymyslí."},"objective":{"$ref":"#/components/schemas/MetaAdsObjective","description":"Čeho chce kampaň dosáhnout: awareness, traffic, engagement, leads nebo sales. Při založení je povinný."},"destination":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDestination"},{"type":"null"}],"description":"Kam lidé jdou po kliknutí: website, instant_form nebo on_post. Které jdou použít, záleží na cíli."},"specialAdCategory":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsSpecialAdCategory"},{"type":"null"}],"description":"credit, employment, housing, financial_products_services nebo online_gambling_and_gaming, nebo null."},"campaignBudgetEnabled":{"type":"boolean","description":"true pro jeden rozpočet celé kampaně. false pro rozpočet v každé sadě."},"budgetType":{"$ref":"#/components/schemas/MetaAdsBudgetType","description":"daily nebo lifetime."},"budgetAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Rozpočet jako text třeba \"500.00\", nebo null."},"bidStrategy":{"$ref":"#/components/schemas/MetaAdsBidStrategy","description":"lowest_cost, cost_cap, bid_cap nebo min_roas. min_roas jde jen u sales."},"bidAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Příhoz nebo strop ceny jako text. Povinný u cost_cap a bid_cap, u ostatních není dovolený."},"roasFloor":{"type":["number","null"],"minimum":0.01,"maximum":9999.9999,"description":"Nejnižší návratnost peněz, od 0.01 do 9999.9999. Povinná u min_roas, u ostatních není dovolená."},"startsAt":{"type":["string","null"],"description":"Kdy kampaň začne, s časovým pásmem, nebo null."},"endsAt":{"type":["string","null"],"description":"Kdy kampaň skončí, s časovým pásmem, nebo null. Musí být po startsAt."},"conversionPixelExternalId":{"type":["string","null"],"maxLength":255,"description":"Meta Pixel, který počítá výsledky. Jen když ho cíl potřebuje. U konceptu může chybět, schválení ho potřebuje."},"conversionEvent":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsConversionEvent"},{"type":"null"}],"description":"Událost pixelu, která se počítá jako výsledek, třeba purchase. Jen když ji cíl potřebuje. U konceptu může chybět, schválení ji potřebuje."},"leadFormId":{"type":["integer","null"],"description":"Číslo aktivního formuláře z `meta-ads-lead-forms.index`. Jen pro instant_form. U konceptu může chybět, schválení ho potřebuje."},"creativeEnhancementsEnabled":{"type":"boolean","description":"true, když Meta smí trochu upravit vzhled reklam."}},"required":["objective"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Založ kampaň Meta","description":"Založí koncept kampaně s jednou prázdnou sadou a vrátí ho s 201. Do Meta Ads nic nejde.\n\nKterá pole smíš poslat, záleží na cíli. Pole, které cíl nedovolí, vrátí 422.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-campaigns/bulk-delete":{"post":{"operationId":"meta-ads-campaigns.bulk-delete","tags":["meta-ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Čísla kampaní, které se mají smazat, od 1 do 100, každé jednou."}},"required":["campaignIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.facebook"],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Smaž víc kampaní Meta najednou","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nSmaže koncepty kampaní s jejich sadami a reklamami. Všechny musí být koncepty; když jeden není, nic se nesmaže a dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nKampaně, které už v Meta Ads jsou, se tam nejdřív archivují, takže se zastaví navždy. Na to klíč potřebuje `ads.execute.facebook`. Když Meta některou nearchivuje, ve Fusiu se nic nesmaže a dostaneš 422; ty, které už Meta archivovala, zůstanou archivované. Zkus to později. 422 dostaneš i tehdy, když běží nahrávání.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-campaigns/brief-picks":{"post":{"operationId":"meta-ads-campaigns.brief-picks","tags":["meta-ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objective":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsObjective"},{"type":"null"}],"description":"Cíl, který už máš vybraný: awareness, traffic, engagement, leads nebo sales. AI ho nechá. Když ho vynecháš, vybere ho AI."},"brief":{"type":"string","minLength":20,"maxLength":4000,"description":"O čem má kampaň být, od 20 do 4000 znaků."},"leadFormId":{"type":["integer","null"],"description":"Číslo aktivního formuláře z `meta-ads-lead-forms.index`. Pošli ho, když lidé smí vyplnit formulář přímo na Facebooku nebo Instagramu."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["brief"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsBriefPicksData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI vybrat cíl a stránku pro Meta Ads","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPřečte tvoje zadání a pomocí AI vybere cíl, stránku tvého webu a co se má počítat jako výsledek. Nic se neuloží; výběr použij, když voláš `meta-ads-campaigns.generate`. Stejné zadání dá hodinu stejný výběr.\n\nDostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-campaigns/generate":{"post":{"operationId":"meta-ads-campaigns.generate","tags":["meta-ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objective":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsObjective"},{"type":"null"}],"description":"Co má kampaň získat: awareness, traffic, engagement, leads nebo sales. Když ho vynecháš, vybere ho AI."},"destination":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDestination"},{"type":"null"}],"description":"Kam lidé po kliknutí půjdou: website, instant_form nebo on_post. Pošli ho jen spolu s objective. Které jdou, záleží na cíli."},"conversionEvent":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsConversionEvent"},{"type":"null"}],"description":"Událost pixelu, která se počítá jako výsledek, třeba purchase. Pošli ji jen u cíle, který ji potřebuje. Když ji vynecháš, vybere ji AI."},"brief":{"type":"string","minLength":20,"maxLength":4000,"description":"O čem má kampaň být, od 20 do 4000 znaků."},"landingPageUrl":{"type":["string","null"],"maxLength":2048,"description":"Stránka tvého webu, kam mají reklamy vést, nejvýš 2048 znaků. Když ji vynecháš, vybere ji AI."},"leadFormId":{"type":["integer","null"],"description":"Číslo aktivního formuláře z `meta-ads-lead-forms.index`. Jen pro leads s instant_form."},"monthlyBudgetShare":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Kolik z měsíčního rozpočtu na Meta Ads smí kampaň použít, jako text třeba \"2500.00\". Když ho vynecháš, smí použít vše, co zbývá."},"durationDays":{"type":["integer","null"],"minimum":1,"maximum":90,"description":"Kolik dní má kampaň běžet, od 1 do 90. Když ho vynecháš, kampaň poběží bez konce a s denním rozpočtem."},"imageSource":{"$ref":"#/components/schemas/MetaAdsImageSource","description":"Odkud se vezmou obrázky: library (tvoje soubory), generate (AI nakreslí nové) nebo mixed (obojí)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí, nebo null."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["brief","imageSource"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdCampaignGenerationOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI postavit kampaň na platformě Meta","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nVytvoří koncept kampaně na platformě Meta a nechá ho AI postavit na pozadí: vybere cíl a stránku, naplánuje sady a jejich cílení, napíše reklamy a přidá obrázky. Odpověď je 202 s kampaní a úlohou; úlohu sleduj přes `meta-ads-operations.show`. Do Meta Ads se nic nepošle.\n\nDostaneš 422, když ještě nemáš měsíční rozpočet na Meta Ads nebo není vybraný reklamní účet Meta. 422 u `monthlyBudgetShare` dostaneš, když je podíl vyšší, než kolik tento měsíc zbývá. Dostaneš 409, když už běží jiná úloha, a 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/generate/retry":{"post":{"operationId":"meta-ads-campaigns.generate.retry","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/AdCampaignGenerationOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI zkusit selhanou kampaň na platformě Meta znovu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nSpustí stavbu kampaně na platformě Meta pomocí AI znovu poté, co selhala nebo se zastavila. Odpověď je 202 s kampaní a novou úlohou. Když je podíl z měsíčního rozpočtu vyšší, než kolik zbývá, sníží se na to, co zbývá.\n\nZnovu postavit jde jen koncept; jinak dostaneš 403. Když stavba neselhala nebo už běží jiná úloha, dostaneš 409. 422 dostaneš ze stejných důvodů jako u `meta-ads-campaigns.generate` a 422 u `monthlyBudgetShare`, když z měsíčního rozpočtu nic nezbývá.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}":{"put":{"operationId":"meta-ads-campaigns.update","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít."},"objective":{"$ref":"#/components/schemas/MetaAdsObjective","description":"Čeho chce kampaň dosáhnout: awareness, traffic, engagement, leads nebo sales."},"destination":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDestination"},{"type":"null"}],"description":"Kam lidé jdou po kliknutí: website, instant_form nebo on_post. Které jdou použít, záleží na cíli."},"specialAdCategory":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsSpecialAdCategory"},{"type":"null"}],"description":"credit, employment, housing, financial_products_services nebo online_gambling_and_gaming, nebo null."},"campaignBudgetEnabled":{"type":"boolean","description":"true pro jeden rozpočet celé kampaně. false pro rozpočet v každé sadě."},"budgetType":{"$ref":"#/components/schemas/MetaAdsBudgetType","description":"daily nebo lifetime."},"budgetAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Rozpočet jako text třeba \"500.00\", nebo null."},"bidStrategy":{"$ref":"#/components/schemas/MetaAdsBidStrategy","description":"lowest_cost, cost_cap, bid_cap nebo min_roas. min_roas jde jen u sales."},"bidAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Příhoz nebo strop ceny jako text. Povinný u cost_cap a bid_cap, u ostatních není dovolený."},"roasFloor":{"type":["number","null"],"minimum":0.01,"maximum":9999.9999,"description":"Nejnižší návratnost peněz, od 0.01 do 9999.9999. Povinná u min_roas, u ostatních není dovolená."},"startsAt":{"type":["string","null"],"description":"Kdy kampaň začne, s časovým pásmem, nebo null."},"endsAt":{"type":["string","null"],"description":"Kdy kampaň skončí, s časovým pásmem, nebo null. Musí být po startsAt."},"conversionPixelExternalId":{"type":["string","null"],"maxLength":255,"description":"Meta Pixel, který počítá výsledky. Jen když ho cíl potřebuje. U konceptu může chybět, schválení ho potřebuje."},"conversionEvent":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsConversionEvent"},{"type":"null"}],"description":"Událost pixelu, která se počítá jako výsledek, třeba purchase. Jen když ji cíl potřebuje. U konceptu může chybět, schválení ji potřebuje."},"leadFormId":{"type":["integer","null"],"description":"Číslo aktivního formuláře z `meta-ads-lead-forms.index`. Jen pro instant_form. U konceptu může chybět, schválení ho potřebuje."},"creativeEnhancementsEnabled":{"type":"boolean","description":"true, když Meta smí trochu upravit vzhled reklam."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň kampaň Meta","description":"Změní jen pole, která pošleš, a vrátí kampaň. Do Meta Ads nic nejde.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"meta-ads-campaigns.destroy","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"x-fusio-conditional-scopes":["ads.execute.facebook"],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Smaž kampaň Meta","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nSmaže koncept kampaně s jejími sadami a reklamami. Smazat jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nKampaň, která už v Meta Ads je, se tam nejdřív archivuje, takže se zastaví navždy. Na to klíč potřebuje `ads.execute.facebook`. Když ji Meta nearchivuje, nic se nesmaže a dostaneš 422; zkus to později. 422 dostaneš i tehdy, když běží nahrávání.\n\nPotřebuje jedno z těchto práv: ads.write. Některé hodnoty potřebují ještě: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/approve":{"post":{"operationId":"meta-ads-campaigns.approve","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Schval kampaň Meta","description":"> [!WARNING]\n> Tohle připraví kampaň k nahrání do Meta Ads. Na to klíč potřebuje `ads.execute.facebook`.\n\nSchválí koncept kampaně a vrátí ho. Do Meta Ads zatím nic nejde.\n\nKdyž se musí nejdřív něco opravit, dostaneš 422 se seznamem kódů v `payload.blockers`. Schválit jde jen koncept; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."},"delete":{"operationId":"meta-ads-campaigns.unapprove","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zruš schválení kampaně Meta","description":"Vrátí schválenou kampaň zpátky na koncept, takže ji můžeš zase měnit. Zpátky jde jen schválená kampaň; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/meta-ads/preflight":{"get":{"operationId":"meta-ads-campaigns.meta-ads.preflight","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentPreflightData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zkontroluj kampaň Meta před nahráním","description":"Zkontroluje schválenou kampaň, než půjde do Meta Ads. Nic se nenahraje a do Meta Ads nejde žádný dotaz.\n\nZkontrolovat jde jen schválenou kampaň; jinak dostaneš 403.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/meta-ads/deploy":{"post":{"operationId":"meta-ads-campaigns.meta-ads.deploy","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planRevision":{"type":"string","pattern":"^[a-f0-9]{64}$","minLength":64,"maxLength":64,"description":"`planRevision` z `meta-ads-campaigns.meta-ads.preflight`: 64 malých písmen a číslic. Když se plán mezitím změnil, dostaneš 422 u planRevision."},"idempotencyKey":{"type":"string","format":"uuid","description":"UUID, které si pro tohle nahrání vytvoříš. Když to zkoušíš znovu, pošli stejné, aby kampaň nevznikla dvakrát."}},"required":["planRevision","idempotencyKey"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Nahraj kampaň do Meta Ads","description":"> [!WARNING]\n> Tohle vytvoří kampaň v tvém reklamním účtu Meta. Na to klíč potřebuje `ads.execute.facebook`.\n\nNahraje schválenou kampaň do Meta Ads a vrátí nahrání. Nahrávání běží na pozadí: obrázky a videa, formulář, kampaň, její sady a reklamy. Sleduj ho přes `meta-ads-deployments.show`. Skončí jako paused, failed nebo reconciliation_required. Při reconciliation_required použij `meta-ads-deployments.reconcile`.\n\nVšechno dorazí do Meta Ads pozastavené, takže se nic neutratí, dokud to nespustíš přes `meta-ads-deployments.status`.\n\nStejný `idempotencyKey` vrátí stejné nahrání. Stejný klíč s jiným plánem dostane 409. Jiný klíč, zatímco běží nahrávání stejného plánu, vrátí to nahrávání. Jiný klíč, když už kampaň je v účtu Meta a plán se nezměnil, vrátí stávající nahrání s 200. Jiný klíč se změněným plánem dostane 422; změny pak pošli přes `meta-ads-deployments.apply`. Když se musí nejdřív něco opravit, dostaneš 422 s kódy v `errors.preflight`, stejnými jako `blockers` z kontroly. 409 dostaneš, když musíš účet Meta připojit znovu.\n\nKampaň, která těsně před nahráním přestane být schválená, dostane 422 u `deployment`.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-deployments/{metaAdsDeployment}":{"get":{"operationId":"meta-ads-deployments.show","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání, z `deployment.id` kampaně nebo z `id` odpovědi `meta-ads-campaigns.meta-ads.deploy`."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž nahrání v Meta Ads","description":"Ukáže nahrání kampaně v Meta Ads: jeho stav, čekající změny a každou sadu a reklamu s tím, co na nich Meta našla. Jen čte, co Fusio uložilo. Do Meta Ads neposílá žádný dotaz. Když chceš Meta Ads načíst znovu, použij `meta-ads-deployments.sync`.\n\nTady sleduj nahrávání po `meta-ads-campaigns.meta-ads.deploy` nebo `meta-ads-deployments.apply`. Nahrávání běží, dokud je `status` draft, validating nebo publishing; `progressStep` říká, co právě dělá.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-deployments/{metaAdsDeployment}/sync":{"post":{"operationId":"meta-ads-deployments.sync","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Načti nahrání znovu z Meta Ads","description":"Načte z Meta Ads kampaň, její sady a reklamy a vrátí nahrání. Uloží stav, výsledek kontroly každé reklamy a co na ní Meta našla špatně. V Meta Ads se nic nezmění. Fusio to dělá i samo každou hodinu.\n\n422 dostaneš, když běží nahrávání a když Meta neodpoví. 409 dostaneš, když musíš Meta Ads připojit znovu. Když Meta omezí počet dotazů, dostaneš 429 s `Retry-After`.\n\nTahle adresa dovolí 20 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-deployments/{metaAdsDeployment}/apply":{"post":{"operationId":"meta-ads-deployments.apply","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planRevision":{"type":"string","pattern":"^[a-f0-9]{64}$","minLength":64,"maxLength":64,"description":"`currentPlanRevision` nahrání: 64 znaků z 0–9 a a–f. Když se plán mezitím změnil, dostaneš 409."},"confirmActiveCampaign":{"type":"boolean","description":"true, když víš, že kampaň běží a změny se projeví hned. Když běží a pošleš false, dostaneš 422."},"confirmLearningRestart":{"type":"boolean","description":"true, když víš, že se Meta po těchto změnách musí učit znovu. Poprvé ho vynech nebo pošli false. Když `learningRestartWarnings` není prázdné a pošleš false, dostaneš 422."}},"required":["planRevision","confirmActiveCampaign"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Nahraj změny do Meta Ads","description":"> [!WARNING]\n> Tohle mění kampaň v tvém reklamním účtu Meta, i když běží. Na to klíč potřebuje `ads.execute.facebook`.\n\nNahraje do Meta Ads, co jsi v kampani ve Fusiu změnil od posledního nahrání: texty, obrázky, sady, reklamy, rozpočet a formulář. Vrátí nahrání. Nejdřív se podívej na `hasUnsynchronizedChanges` a `canApplyChanges`.\n\nPráce běží na pozadí. Sleduj ji přes `meta-ads-deployments.show`. Skončí jako paused, active nebo reconciliation_required. Při reconciliation_required použij `meta-ads-deployments.reconcile`. Nové sady a reklamy dorazí do Meta Ads pozastavené, i když kampaň běží; spustíš je přes `meta-ads-deployments.status`. Odebrané sady a reklamy se v Meta Ads archivují.\n\nKdyž se po změnách musí Meta učit znovu, dostaneš 422 s `errors.confirmLearningRestart` a důvody v `payload.learningRestartWarnings`. Podívej se na ně a pošli to znovu s `confirmLearningRestart` true.\n\nKampaň ve Fusiu musí být schválená. 422 dostaneš, když se změnil cíl kampaně (kampaň raději zkopíruj), když nahrání selhalo nebo potřebuje kontrolu přes `meta-ads-deployments.reconcile` a když běží jiné nahrávání. Když Meta neodpoví, dostaneš 422. 409 dostaneš, když musíš Meta Ads připojit znovu. Když Meta omezí počet dotazů, dostaneš 429 s `Retry-After`.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Meta (apply, reconcile, status, live settings).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-deployments/{metaAdsDeployment}/reconcile":{"post":{"operationId":"meta-ads-deployments.reconcile","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Srovnej Fusio s Meta Ads po přerušeném nahrávání","description":"> [!WARNING]\n> Tohle může změnit nahrání a uklidit v tvém reklamním účtu Meta. Na to klíč potřebuje `ads.execute.facebook`.\n\nPoužij ho, když je `status` reconciliation_required: nahrávání se přerušilo a Fusio neví, co Meta uložila. Fusio najde kampaň podle jejího štítku z Fusia, propojí kampaň, sady a reklamy, které najde, a převezme jejich stav z Meta Ads. Vrátí nahrání.\n\nKdyž Meta takovou kampaň nemá, `status` bude failed a kampaň nahraješ znovu přes `meta-ads-campaigns.meta-ads.deploy`. Části, které pořád chybí, se ukážou jako čekající změny; vytvoří je `meta-ads-deployments.apply`.\n\n422 dostaneš, když to nahrání nepotřebuje, když Fusio nemůže Meta Ads spolehlivě zkontrolovat a když Meta neodpoví. 409 dostaneš, když musíš Meta Ads připojit znovu. Když Meta omezí počet dotazů, dostaneš 429 s `Retry-After`.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Meta (apply, reconcile, status, live settings).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-deployments/{metaAdsDeployment}/status":{"post":{"operationId":"meta-ads-deployments.status","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"level":{"$ref":"#/components/schemas/MetaAdsDeploymentLevel","description":"Co přepnout: campaign (celou kampaň), ad_set (jednu sadu) nebo ad (jednu reklamu)."},"targetId":{"type":"integer","description":"U ad_set `adSets.id` z nahrání, u ad `adSets.ads.id`. Jsou to čísla řádků v nahrání, ne v plánu ve Fusiu a ne v Meta Ads. U campaign ho vynech."},"status":{"$ref":"#/components/schemas/AdDeploymentRemoteStatus","description":"enabled (spustí, takže utrácí peníze) nebo paused (zastaví)."}},"required":["level","status"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Spusť nebo pozastav kampaň, sadu nebo reklamu v Meta Ads","description":"> [!WARNING]\n> Spuštění znamená, že kampaň v Meta Ads utrácí peníze. Na obojí klíč potřebuje `ads.execute.facebook`.\n\nSpustí nebo pozastaví jednu část kampaně v Meta Ads a vrátí nahrání. Fusio nejdřív načte data z Meta Ads, takže pracuje s nejnovějším stavem.\n\nJsou tři úrovně:\n- campaign: spuštění spustí kampaň a každou sadu a reklamu, která je v Meta Ads pozastavená. Vynechá ty, které jsi pozastavil sám, a reklamy, které Meta zamítla. Pozastavení zastaví jen kampaň, takže všechno pod ní zůstane, jak je.\n- ad_set: spustí nebo pozastaví jednu sadu. Fusio si pamatuje, že jsi ji pozastavil, a pozdější spuštění kampaně ji nechá pozastavenou.\n- ad: spustí nebo pozastaví jednu reklamu a pamatuje si to stejně. Reklamu, kterou Meta zamítla, spustit nejde.\n\nAby šlo cokoli spustit, musí být kampaň ve Fusiu schválená a všechny změny nahrané přes `meta-ads-deployments.apply`; jinak dostaneš 422. 422 dostaneš i tehdy, když ta část v nahrání není, když v Meta Ads ani neběží, ani není pozastavená, když nahrání potřebuje kontrolu, když běží jiné nahrávání a když Meta neodpoví. 409 dostaneš, když musíš Meta Ads připojit znovu. Když Meta omezí počet dotazů, dostaneš 429 s `Retry-After`.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Meta (apply, reconcile, status, live settings).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-deployments/{metaAdsDeployment}/live-settings":{"patch":{"operationId":"meta-ads-deployments.live-settings.update","tags":["meta-ads"],"parameters":[{"name":"metaAdsDeployment","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo nahrání."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planRevision":{"type":"string","pattern":"^[a-f0-9]{64}$","minLength":64,"maxLength":64,"description":"`currentPlanRevision` nahrání: 64 znaků z 0–9 a a–f. Když se plán mezitím změnil, dostaneš 409."},"confirmActiveCampaign":{"type":"boolean","description":"true, když víš, že kampaň běží a změny se projeví hned. Když běží a pošleš false, dostaneš 422."},"confirmLearningRestart":{"type":"boolean","description":"true, když víš, že se Meta po těchto změnách musí učit znovu. Poprvé ho vynech nebo pošli false. Když se rozpočet hodně mění a pošleš false, dostaneš 422."},"budgetAmount":{"type":"number","minimum":0.01,"maximum":9999999999999.99,"description":"Nový rozpočet kampaně jako text třeba \"500.00\", nejvýš se dvěma desetinnými místy. Když ho vynecháš, rozpočet zůstane. null se odmítne, protože běžící kampaň nemůže přijít o rozpočet."},"adSetBudgets":{"type":"array","items":{"type":"object","properties":{"adSetId":{"type":"integer","description":"Číslo sady v plánu ve Fusiu, `id` z `adSets` kampaně. Není to `adSets.id` z nahrání."},"budgetAmount":{"type":"number","minimum":0.01,"maximum":9999999999999.99,"description":"Nový rozpočet sady jako text třeba \"200.00\", nejvýš se dvěma desetinnými místy."}},"required":["adSetId","budgetAmount"]},"maxItems":200,"uniqueItems":true,"description":"Nové rozpočty sad, nejvýš 200, každá sada jednou. Jen u kampaně, kde má každá sada svůj rozpočet."},"endsAt":{"type":["string","null"],"description":"Nový konec kampaně jako datum a čas s posunem, třeba 2026-12-31T23:59:00+01:00. Když ho vynecháš, zůstane. null se tady odmítne; když chceš konec zrušit, změň plán a nahraj ho přes `meta-ads-deployments.apply`. Rozpočet na celou dobu potřebuje konec vždy."}},"required":["planRevision","confirmActiveCampaign"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsDeploymentData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","ads.execute.facebook"]}],"x-fusio-opt-in-scopes":["ads.execute.facebook"],"summary":"Změň rozpočet nebo konec běžící kampaně Meta","description":"> [!WARNING]\n> Tohle mění, kolik běžící kampaň v Meta Ads utrácí. Na to klíč potřebuje `ads.execute.facebook`.\n\nZmění rozpočet kampaně nebo jejích sad, nebo datum konce, naráz ve Fusiu i v Meta Ads. Vrátí nahrání. Pošli jen to, co se mění.\n\nFunguje jen tehdy, když je kampaň ve Fusiu schválená, nahrání je pozastavené nebo běží a nečeká žádná jiná změna; jinak dostaneš 422 a změny musíš nejdřív nahrát přes `meta-ads-deployments.apply`. 422 dostaneš, když pošleš budgetAmount kampani, kde má každá sada svůj rozpočet, nebo adSetBudgets kampani s jedním rozpočtem. 422 dostaneš, když adSetId v Meta Ads neběží. 422 dostaneš i tehdy, když by rozpočty přesáhly měsíční limit tvé firmy, když datum konce už minulo a když běží jiné nahrávání.\n\nKdyž se rozpočet hodně mění, musí se Meta učit znovu. Pak dostaneš 422 s `errors.confirmLearningRestart` a důvody v `payload.learningRestartWarnings`; pošli to znovu s `confirmLearningRestart` true.\n\nKdyž Meta odmítne první změnu, nic se neuloží a dostaneš 422. Když Meta vezme jen část změn, Fusio si nové hodnoty nechá, dostaneš 422 a zbytek se ukáže jako čekající změny; nahraj je přes `meta-ads-deployments.apply`. 409 dostaneš, když musíš Meta Ads připojit znovu. Když Meta omezí počet dotazů, dostaneš 429 s `Retry-After`.\n\nTahle adresa dovolí 10 požadavků za minutu, počítaných dohromady s ostatními adresami pro odesílání do Meta (apply, reconcile, status, live settings).\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: ads.execute.facebook. Tato práva musíš zaškrtnout schválně: ads.execute.facebook."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/duplicate":{"post":{"operationId":"meta-ads-campaigns.duplicate","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kopie, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít."}},"required":["name"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Zkopíruj kampaň Meta","description":"Udělá koncept kopie kampaně s jejími sadami a reklamami a vrátí kopii s 201. Do Meta Ads nic nejde.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-campaigns/{metaAdsCampaign}/ad-sets":{"post":{"operationId":"meta-ads-ad-sets.store","tags":["meta-ads"],"parameters":[{"name":"metaAdsCampaign","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kampaně."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název sady, nejvýš 255 znaků."},"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí sady v kampani, od 0."},"budgetType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsBudgetType"},{"type":"null"}],"description":"daily nebo lifetime, spolu s budgetAmount. Jen když kampaň nemá vlastní rozpočet."},"budgetAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Rozpočet sady jako text, spolu s budgetType."},"advantageAudienceEnabled":{"type":"boolean","description":"true, když Meta smí oslovit i lidi mimo tvoje cílení."},"ageMin":{"type":"integer","minimum":18,"maximum":65,"description":"Nejnižší věk, který se má oslovit, od 18 do 65."},"ageMax":{"type":"integer","minimum":18,"maximum":65,"description":"Nejvyšší věk, který se má oslovit, od 18 do 65. Nesmí být pod ageMin."},"gender":{"$ref":"#/components/schemas/MetaAdsGender","description":"all, male nebo female."},"advantagePlacementsEnabled":{"type":"boolean","description":"true, když Meta vybírá, kde se reklamy ukážou. false, když se mají použít placements."},"placements":{"type":"array","items":{"type":"object","properties":{"publisherPlatform":{"$ref":"#/components/schemas/MetaAdsPublisherPlatform"},"position":{"$ref":"#/components/schemas/MetaAdsPlacementPosition"}},"required":["publisherPlatform","position"]},"maxItems":18,"description":"Místa, kde se reklamy ukážou, každé jako publisherPlatform a position. Nahradí starý seznam."},"frequencyCapImpressions":{"type":["integer","null"],"minimum":1,"maximum":90,"description":"Kolikrát smí jeden člověk reklamy vidět, nebo null."},"frequencyCapDays":{"type":["integer","null"],"minimum":1,"maximum":30,"description":"Za kolik dní se počítá frequencyCapImpressions, nebo null."},"attributionWindow":{"$ref":"#/components/schemas/MetaAdsAttributionWindow","description":"click_1d, click_7d nebo click_7d_view_1d."},"locations":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsLocationKind","description":"country, region, city, zip nebo custom_radius (kruh kolem bodu). Poloměr je v radiusKm: u city od 17 do 80 km, u custom_radius od 1 do 80 km."},"externalKey":{"type":["string","null"],"maxLength":255},"name":{"type":"string","maxLength":300},"radiusKm":{"type":["integer","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180},"mode":{"$ref":"#/components/schemas/MetaAdsTargetingMode","description":"include (oslovit) nebo exclude (vynechat)."}},"required":["kind","name","mode"]},"maxItems":200,"description":"Místa, která se mají oslovit nebo vynechat. Nahradí starý seznam. Místa najdeš přes `meta-ads-targeting.search` s type location."},"targets":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsTargetKind"},"externalId":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":300},"graphField":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDemographicField"},{"type":"null"}],"description":"Jen u demographic: skupina z pole type v `meta-ads-targeting.search`, třeba life_events nebo income. U ostatních druhů ho vynech."},"source":{"$ref":"#/components/schemas/MetaAdsTargetSource","description":"ai (vybrala ho AI) nebo user (vybral jsi ho ty)."}},"required":["kind","externalId","name","source"]},"maxItems":50,"description":"Zájmy, chování a demografie, které se mají oslovit. Nahradí starý seznam. Najdeš je přes `meta-ads-targeting.search`."},"languages":{"type":"array","items":{"type":"object","properties":{"localeKey":{"type":"integer","minimum":1,"maximum":4294967295},"name":{"type":"string","maxLength":255}},"required":["localeKey","name"]},"maxItems":50,"uniqueItems":true,"description":"Jazyky, kterými lidé musí mluvit, každý jednou. Nahradí starý seznam."},"audiences":{"type":"array","items":{"type":"object","properties":{"externalAudienceId":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"subtype":{"$ref":"#/components/schemas/MetaAdsAudienceSubtype"},"mode":{"$ref":"#/components/schemas/MetaAdsTargetingMode","description":"include (oslovit) nebo exclude (vynechat)."}},"required":["externalAudienceId","name","subtype","mode"]},"maxItems":50,"uniqueItems":true,"description":"Tvoje vlastní publika z `meta-ads-audiences.index`, každé jednou. Nahradí starý seznam."}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Přidej sadu do kampaně Meta","description":"Přidá sadu do konceptu kampaně a vrátí celou kampaň s 201. Do Meta Ads nic nejde.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\n422 u `adSets` dostaneš, když už má kampaň 200 sad. 422 u `budgetAmount` nebo `budgetType` dostaneš, když má kampaň jeden rozpočet pro všechny sady, a u `budgetType`, když je některý rozpočet lifetime a kampaň nemá datum konce.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-ad-sets/{metaAdsAdSet}":{"put":{"operationId":"meta-ads-ad-sets.update","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název sady, nejvýš 255 znaků."},"position":{"type":"integer","minimum":0,"maximum":65535,"description":"Pořadí sady v kampani, od 0."},"budgetType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsBudgetType"},{"type":"null"}],"description":"daily nebo lifetime, spolu s budgetAmount. Jen když kampaň nemá vlastní rozpočet."},"budgetAmount":{"type":["number","null"],"minimum":0.01,"maximum":9999999999999.99,"description":"Rozpočet sady jako text, spolu s budgetType."},"advantageAudienceEnabled":{"type":"boolean","description":"true, když Meta smí oslovit i lidi mimo tvoje cílení."},"ageMin":{"type":"integer","minimum":18,"maximum":65,"description":"Nejnižší věk, který se má oslovit, od 18 do 65."},"ageMax":{"type":"integer","minimum":18,"maximum":65,"description":"Nejvyšší věk, který se má oslovit, od 18 do 65. Nesmí být pod ageMin."},"gender":{"$ref":"#/components/schemas/MetaAdsGender","description":"all, male nebo female."},"advantagePlacementsEnabled":{"type":"boolean","description":"true, když Meta vybírá, kde se reklamy ukážou. false, když se mají použít placements."},"placements":{"type":"array","items":{"type":"object","properties":{"publisherPlatform":{"$ref":"#/components/schemas/MetaAdsPublisherPlatform"},"position":{"$ref":"#/components/schemas/MetaAdsPlacementPosition"}},"required":["publisherPlatform","position"]},"maxItems":18,"description":"Místa, kde se reklamy ukážou, každé jako publisherPlatform a position. Nahradí starý seznam."},"frequencyCapImpressions":{"type":["integer","null"],"minimum":1,"maximum":90,"description":"Kolikrát smí jeden člověk reklamy vidět, nebo null."},"frequencyCapDays":{"type":["integer","null"],"minimum":1,"maximum":30,"description":"Za kolik dní se počítá frequencyCapImpressions, nebo null."},"attributionWindow":{"$ref":"#/components/schemas/MetaAdsAttributionWindow","description":"click_1d, click_7d nebo click_7d_view_1d."},"locations":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsLocationKind","description":"country, region, city, zip nebo custom_radius (kruh kolem bodu). Poloměr je v radiusKm: u city od 17 do 80 km, u custom_radius od 1 do 80 km."},"externalKey":{"type":["string","null"],"maxLength":255},"name":{"type":"string","maxLength":300},"radiusKm":{"type":["integer","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180},"mode":{"$ref":"#/components/schemas/MetaAdsTargetingMode","description":"include (oslovit) nebo exclude (vynechat)."}},"required":["kind","name","mode"]},"maxItems":200,"description":"Místa, která se mají oslovit nebo vynechat. Nahradí starý seznam. Místa najdeš přes `meta-ads-targeting.search` s type location."},"targets":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsTargetKind"},"externalId":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":300},"graphField":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDemographicField"},{"type":"null"}],"description":"Jen u demographic: skupina z pole type v `meta-ads-targeting.search`, třeba life_events nebo income. U ostatních druhů ho vynech."},"source":{"$ref":"#/components/schemas/MetaAdsTargetSource","description":"ai (vybrala ho AI) nebo user (vybral jsi ho ty)."}},"required":["kind","externalId","name","source"]},"maxItems":50,"description":"Zájmy, chování a demografie, které se mají oslovit. Nahradí starý seznam. Najdeš je přes `meta-ads-targeting.search`."},"languages":{"type":"array","items":{"type":"object","properties":{"localeKey":{"type":"integer","minimum":1,"maximum":4294967295},"name":{"type":"string","maxLength":255}},"required":["localeKey","name"]},"maxItems":50,"uniqueItems":true,"description":"Jazyky, kterými lidé musí mluvit, každý jednou. Nahradí starý seznam."},"audiences":{"type":"array","items":{"type":"object","properties":{"externalAudienceId":{"type":"string","maxLength":255},"name":{"type":"string","maxLength":255},"subtype":{"$ref":"#/components/schemas/MetaAdsAudienceSubtype"},"mode":{"$ref":"#/components/schemas/MetaAdsTargetingMode","description":"include (oslovit) nebo exclude (vynechat)."}},"required":["externalAudienceId","name","subtype","mode"]},"maxItems":50,"uniqueItems":true,"description":"Tvoje vlastní publika z `meta-ads-audiences.index`, každé jednou. Nahradí starý seznam."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň sadu Meta","description":"Změní jen pole, která pošleš, a vrátí celou kampaň. Seznam, který pošleš, nahradí ten starý. Do Meta Ads nic nejde.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\n422 u `budgetAmount` nebo `budgetType` dostaneš, když má kampaň jeden rozpočet pro všechny sady, a u `budgetType`, když je některý rozpočet lifetime a kampaň nemá datum konce.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"meta-ads-ad-sets.destroy","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Smaž sadu Meta","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nSmaže sadu s jejími reklamami a vrátí celou kampaň.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nPoslední sadu kampaně smazat nejde; dostaneš 422 u `adSet`.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-ad-sets/{metaAdsAdSet}/audience-estimate":{"post":{"operationId":"meta-ads-ad-sets.audience-estimate","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsAudienceEstimateData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Odhadni, kolik lidí sada Meta osloví","description":"Zeptá se Meta Ads, kolik lidí cílení sady osloví, uloží odpověď k sadě a vrátí ji.\n\nOdhadnout jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running. Bez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s meta_not_meta_account. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-ad-sets/{metaAdsAdSet}/targets/suggest":{"post":{"operationId":"meta-ads-ad-sets.targets.suggest","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"seeds":{"type":["array","null"],"items":{"type":"string","maxLength":120},"maxItems":10,"description":"Témata, která popisují, koho chceš oslovit, třeba \"jóga\" nebo \"noví rodiče\", nejvýš 10, každé nejvýš 120 znaků. Když je vynecháš, použijí se témata uložená u sady."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsTargetSuggestionData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI navrhnout cílení sady na platformě Meta","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nNajde u Meta Ads cílení pro tvoje témata a nechá AI vybrat nejlepší pro sadu. Do sady se nic nepřidá; cílení, které se ti líbí, přidej přes `meta-ads-ad-sets.update`. Když Meta nic nenajde, seznam je prázdný a kredity se neutratí.\n\nNávrhy jdou jen pro koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running. 422 u `seeds` dostaneš, když nepošleš žádná témata a sada žádná uložená nemá. Bez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Dostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-ad-sets/{metaAdsAdSet}/ads/generate":{"post":{"operationId":"meta-ads-ad-sets.ads.generate","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":["integer","null"],"minimum":1,"maximum":6,"description":"Kolik nových reklam AI udělá, od 1 do 6. Když ho vynecháš, udělá 3."},"imageSource":{"$ref":"#/components/schemas/MetaAdsImageSource","description":"Odkud se vezmou obrázky: library (tvoje soubory), generate (AI nakreslí nové) nebo mixed (obojí)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí, nebo null."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["imageSource"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI přidat nové reklamy do sady na platformě Meta","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nNechá AI na pozadí vymyslet pro sadu nové nápady na reklamy, napsat jejich texty a přidat obrázky. Nové reklamy se liší od těch, které sada už má. Odpověď je 202 bez obsahu; nové reklamy uvidíš v `meta-ads-campaigns.index`.\n\nNové reklamy jdou jen do konceptu; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running. Když se reklamy sady právě dělají, dostaneš 409 s `payload.error` ad_set_busy. 422 u `count` dostaneš, když by sada měla víc než 50 reklam. Dostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-ad-sets/{metaAdsAdSet}/ads":{"post":{"operationId":"meta-ads-ads.store","tags":["meta-ads"],"parameters":[{"name":"metaAdsAdSet","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo sady."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":255,"description":"Název reklamy, nejvýš 255 znaků."},"source":{"$ref":"#/components/schemas/MetaAdsAdSource","description":"new (nová reklama) nebo existing_post (příspěvek z tvé stránky nebo profilu). Při založení je povinný."},"format":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsAdFormat"},{"type":"null"}],"description":"single_image, single_video nebo carousel."},"texts":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsAdTextKind","description":"primary_text, headline nebo description."},"position":{"type":"integer","minimum":1,"maximum":5},"text":{"type":"string"}},"required":["kind","position","text"]},"maxItems":15,"description":"Texty reklamy, každý s kind, position a text. Nahradí staré texty."},"media":{"type":"object","properties":{"feed":{"type":["object","null"],"properties":{"fileId":{"type":"integer"},"mediaType":{"$ref":"#/components/schemas/MetaAdsMediaType"},"thumbnailFileId":{"type":["integer","null"]}}},"vertical":{"type":["object","null"],"properties":{"fileId":{"type":"integer"},"mediaType":{"$ref":"#/components/schemas/MetaAdsMediaType"},"thumbnailFileId":{"type":["integer","null"]}}}},"description":"Obrázek nebo video pro feed a vertical. Každé má fileId, mediaType a u videa thumbnailFileId."},"cards":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":["integer","null"]},"mediaType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsMediaType"},{"type":"null"}]},"thumbnailFileId":{"type":["integer","null"]},"headline":{"type":["string","null"],"maxLength":255},"description":{"type":["string","null"],"maxLength":255},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048}}},"maxItems":10,"description":"Karty reklamy carousel. Nahradí staré karty."},"sourcePostPlatform":{"type":["string","null"],"enum":["facebook","instagram",null],"description":"facebook nebo instagram, pro existing_post."},"sourcePostExternalId":{"type":["string","null"],"pattern":"^\\d+(_\\d+)?$","maxLength":255,"description":"Příspěvek z `meta-ads-posts.index`, pro existing_post."},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Webová adresa, kam lidé jdou po kliknutí."},"displayLink":{"type":["string","null"],"maxLength":255,"description":"Krátká adresa, která se ukáže v reklamě, třeba example.cz, nebo null."},"callToAction":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsCallToAction"},{"type":"null"}],"description":"Tlačítko reklamy, třeba learn_more nebo sign_up, nebo null."}},"required":["source"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Přidej reklamu do sady Meta","description":"Přidá reklamu do sady konceptu kampaně a vrátí celou kampaň s 201. Soubory jsou ty, které jsi nahrál do Fusia. Do Meta Ads nic nejde.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nU existing_post si Fusio přečte příspěvek z Meta Ads. Bez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s meta_not_meta_account. Bez stránky na Facebooku dostaneš 422 s meta_page_required, bez profilu na Instagramu 422 s meta_instagram_required. Když ti Meta nedá přístup ke stránce na Facebooku, dostaneš 422 s meta_page_unavailable. Příspěvek, který zmizel nebo nejde propagovat, vrátí 422 u sourcePostExternalId. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nSada má nejvýš 50 reklam; jinak dostaneš 422 u `ads`.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-ads/{metaAdsAd}":{"put":{"operationId":"meta-ads-ads.update","tags":["meta-ads"],"parameters":[{"name":"metaAdsAd","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název reklamy, nejvýš 255 znaků."},"source":{"$ref":"#/components/schemas/MetaAdsAdSource","description":"new (nová reklama) nebo existing_post (příspěvek z tvé stránky nebo profilu)."},"format":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsAdFormat"},{"type":"null"}],"description":"single_image, single_video nebo carousel."},"texts":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsAdTextKind","description":"primary_text, headline nebo description."},"position":{"type":"integer","minimum":1,"maximum":5},"text":{"type":"string"}},"required":["kind","position","text"]},"maxItems":15,"description":"Texty reklamy, každý s kind, position a text. Nahradí staré texty."},"media":{"type":"object","properties":{"feed":{"type":["object","null"],"properties":{"fileId":{"type":"integer"},"mediaType":{"$ref":"#/components/schemas/MetaAdsMediaType"},"thumbnailFileId":{"type":["integer","null"]}}},"vertical":{"type":["object","null"],"properties":{"fileId":{"type":"integer"},"mediaType":{"$ref":"#/components/schemas/MetaAdsMediaType"},"thumbnailFileId":{"type":["integer","null"]}}}},"description":"Obrázek nebo video pro feed a vertical. Každé má fileId, mediaType a u videa thumbnailFileId."},"cards":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":["integer","null"]},"mediaType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsMediaType"},{"type":"null"}]},"thumbnailFileId":{"type":["integer","null"]},"headline":{"type":["string","null"],"maxLength":255},"description":{"type":["string","null"],"maxLength":255},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048}}},"maxItems":10,"description":"Karty reklamy carousel. Nahradí staré karty."},"sourcePostPlatform":{"type":["string","null"],"enum":["facebook","instagram",null],"description":"facebook nebo instagram, pro existing_post."},"sourcePostExternalId":{"type":["string","null"],"pattern":"^\\d+(_\\d+)?$","maxLength":255,"description":"Příspěvek z `meta-ads-posts.index`, pro existing_post."},"destinationUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Webová adresa, kam lidé jdou po kliknutí."},"displayLink":{"type":["string","null"],"maxLength":255,"description":"Krátká adresa, která se ukáže v reklamě, třeba example.cz, nebo null."},"callToAction":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsCallToAction"},{"type":"null"}],"description":"Tlačítko reklamy, třeba learn_more nebo sign_up, nebo null."},"expectedRevision":{"type":"string","minLength":32,"maxLength":32,"description":"Verze reklamy, kterou jsi viděl naposledy. Když se reklama mezitím změnila, dostaneš 409."}},"required":["expectedRevision"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň reklamu Meta","description":"Změní jen pole, která pošleš, a vrátí celou kampaň. Do Meta Ads nic nejde.\n\nKdyž někdo reklamu změnil potom, co jsi ji načetl, dostaneš 409 s `payload.error` meta_ad_changed a nic se nezmění. Načti kampaň znovu a pošli novou verzi. Měnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nU existing_post si Fusio přečte příspěvek z Meta Ads. Bez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s meta_not_meta_account. Bez stránky na Facebooku dostaneš 422 s meta_page_required, bez profilu na Instagramu 422 s meta_instagram_required. Když ti Meta nedá přístup ke stránce na Facebooku, dostaneš 422 s meta_page_unavailable. Příspěvek, který zmizel nebo nejde propagovat, vrátí 422 u sourcePostExternalId. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"meta-ads-ads.destroy","tags":["meta-ads"],"parameters":[{"name":"metaAdsAd","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Smaž reklamu Meta","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nSmaže reklamu a vrátí celou kampaň.\n\nMěnit jde jen koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-ads/{metaAdsAd}/texts/suggest":{"post":{"operationId":"meta-ads-ads.texts.suggest","tags":["meta-ads"],"parameters":[{"name":"metaAdsAd","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsAdTextKind","description":"Co navrhnout: primary_text (hlavní text), headline nebo description."},"existingTexts":{"type":["array","null"],"items":{"type":"string","maxLength":2200},"maxItems":20,"description":"Texty, které už máš, aby AI napsala nové, nejvýš 20, každý nejvýš 2200 znaků."},"count":{"type":["integer","null"],"minimum":1,"maximum":5,"description":"Kolik textů AI navrhne, od 1 do 5. Když ho vynecháš, navrhne 5."},"instruction":{"type":["string","null"],"maxLength":500,"description":"Na co má AI myslet, nejvýš 500 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["kind"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsAdTextSuggestionsData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI navrhnout texty reklamy na platformě Meta","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPožádá AI o nové texty jednoho druhu pro reklamu. Nic se neuloží; texty, které se ti líbí, přidej přes `meta-ads-ads.update`.\n\nNávrhy jdou jen pro koncept; jinak dostaneš 403. Když AI kampaň právě staví, dostaneš 409 s `payload.error` meta_generation_running. Reklama z hotového příspěvku nemá vlastní texty, proto dostaneš 422 u `ad`. Dostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-ads/{metaAdsAd}/images/generate":{"post":{"operationId":"meta-ads-ads.images.generate","tags":["meta-ads"],"parameters":[{"name":"metaAdsAd","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo reklamy."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imageSource":{"$ref":"#/components/schemas/MetaAdsImageSource","description":"Odkud se vezmou obrázky: library (AI vybere z tvých souborů), generate (AI nakreslí nové) nebo mixed (obojí)."},"tenantImageProfileId":{"type":["integer","null"],"description":"Číslo presetu stylu, kterým AI kreslí, nebo null."},"cardPosition":{"type":["integer","null"],"minimum":1,"description":"U karuselu: číslo karty, která dostane nový obrázek. Když ho vynecháš, dostane obrázek každá prázdná karta, nebo každá karta, když žádná prázdná není."},"imageBrief":{"type":["string","null"],"maxLength":1000,"description":"Co má obrázek ukázat, nejvýš 1000 znaků. Když ho vynecháš, AI použije nápad reklamy."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["imageSource"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","ads.write"]}],"summary":"Nech AI přidat obrázky do reklamy na platformě Meta","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nNechá AI na pozadí najít nebo nakreslit obrázky pro reklamu. Odpověď je 202 bez obsahu; jak to jde, ukazuje `generationStatus` reklamy v `meta-ads-campaigns.index`.\n\nObrázky jdou jen do konceptu; jinak dostaneš 403. Když se obrázky reklamy právě dělají, dostaneš 409 s `payload.error` meta_generation_running. 422 u `ad` dostaneš u reklamy s videem nebo u reklamy z hotového příspěvku. 422 u `cardPosition` dostaneš, když reklama není karusel nebo kartu s tím číslem nemá. Dostaneš 402, když nemáš dost kreditů.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: ads.write."}},"/v1/meta-ads-lead-forms":{"get":{"operationId":"meta-ads-lead-forms.index","tags":["meta-ads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsLeadFormData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš formuláře Meta","description":"Vrátí tvoje formuláře pro kampaně Meta s cílem leads a místem instant_form, nejnovější první.\n\nPotřebuje jedno z těchto práv: ads.read."},"post":{"operationId":"meta-ads-lead-forms.store","tags":["meta-ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název formuláře, nejvýš 255 znaků."},"formType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsLeadFormType"},{"type":"null"}],"description":"more_volume nebo higher_intent, nebo null."},"introHeadline":{"type":["string","null"],"maxLength":60,"description":"Nadpis na začátku formuláře, nebo null."},"introText":{"type":["string","null"],"maxLength":5000,"description":"Text na začátku formuláře, nebo null."},"privacyPolicyUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Adresa tvých zásad ochrany osobních údajů."},"thankYouTitle":{"type":["string","null"],"maxLength":255,"description":"Nadpis po odeslání formuláře, nebo null."},"thankYouText":{"type":["string","null"],"maxLength":5000,"description":"Text po odeslání formuláře, nebo null."},"thankYouUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Adresa tlačítka po odeslání formuláře, nebo null."},"phoneOtpVerification":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsPhoneOtpVerification"},{"type":"null"}],"description":"disabled, optional nebo required, nebo null. null znamená disabled."},"tenantLeadFormId":{"type":["integer","null"],"description":"Tvůj formulář ve Fusiu, kam odpovědi přijdou, nebo null."},"questions":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsLeadFormQuestionKind","description":"full_name, email, phone, city, company_name, job_title nebo custom."},"label":{"type":"string","maxLength":80,"description":"Text vlastní otázky. Jen pro custom."},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80}},"required":["label"]},"minItems":2,"maxItems":20,"description":"Možnosti vlastní otázky, každá s label. Jen pro custom."}},"required":["kind"]},"minItems":1,"maxItems":15,"description":"Otázky podle pořadí. Nahradí staré otázky."}},"required":["name","privacyPolicyUrl","questions"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsLeadFormData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Založ formulář Meta","description":"Založí formulář a vrátí ho s 201. Do Meta Ads jde formulář až s kampaní, která ho používá.\n\nFormulář má jazyk AI tvé firmy, když ho Meta nabízí. Jinak jazyk vybere Meta. Bez thankYouTitle formulář řekne \"Thank you\" a s thankYouUrl tlačítko řekne \"Visit website\". Fusio tyto dva texty napíše v tom jazyce, nebo anglicky, když ho nemá.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-lead-forms/{metaAdsLeadForm}":{"get":{"operationId":"meta-ads-lead-forms.show","tags":["meta-ads"],"parameters":[{"name":"metaAdsLeadForm","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo formuláře."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsLeadFormData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž formulář Meta","description":"Vrátí jeden formulář s jeho otázkami.\n\nPotřebuje jedno z těchto práv: ads.read."},"put":{"operationId":"meta-ads-lead-forms.update","tags":["meta-ads"],"parameters":[{"name":"metaAdsLeadForm","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo formuláře."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název formuláře, nejvýš 255 znaků."},"formType":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsLeadFormType"},{"type":"null"}],"description":"more_volume nebo higher_intent, nebo null."},"introHeadline":{"type":["string","null"],"maxLength":60,"description":"Nadpis na začátku formuláře, nebo null."},"introText":{"type":["string","null"],"maxLength":5000,"description":"Text na začátku formuláře, nebo null."},"privacyPolicyUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Adresa tvých zásad ochrany osobních údajů."},"thankYouTitle":{"type":["string","null"],"maxLength":255,"description":"Nadpis po odeslání formuláře, nebo null."},"thankYouText":{"type":["string","null"],"maxLength":5000,"description":"Text po odeslání formuláře, nebo null."},"thankYouUrl":{"type":["string","null"],"format":"uri","maxLength":2048,"description":"Adresa tlačítka po odeslání formuláře, nebo null."},"phoneOtpVerification":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsPhoneOtpVerification"},{"type":"null"}],"description":"disabled, optional nebo required, nebo null. null znamená disabled."},"tenantLeadFormId":{"type":["integer","null"],"description":"Tvůj formulář ve Fusiu, kam odpovědi přijdou, nebo null."},"questions":{"type":"array","items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsLeadFormQuestionKind","description":"full_name, email, phone, city, company_name, job_title nebo custom."},"label":{"type":"string","maxLength":80,"description":"Text vlastní otázky. Jen pro custom."},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80}},"required":["label"]},"minItems":2,"maxItems":20,"description":"Možnosti vlastní otázky, každá s label. Jen pro custom."}},"required":["kind"]},"minItems":1,"maxItems":15,"description":"Otázky podle pořadí. Nahradí staré otázky."}},"required":["questions"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsLeadFormData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Změň formulář Meta","description":"Změní formulář a vrátí ho. Pošli vždy všechny otázky; nahradí ty staré.\n\nFormulář má jazyk AI tvé firmy, když ho Meta nabízí. Jinak jazyk vybere Meta. Bez thankYouTitle formulář řekne \"Thank you\" a s thankYouUrl tlačítko řekne \"Visit website\". Fusio tyto dva texty napíše v tom jazyce, nebo anglicky, když ho nemá.\n\nPotřebuje jedno z těchto práv: ads.write."},"delete":{"operationId":"meta-ads-lead-forms.destroy","tags":["meta-ads"],"parameters":[{"name":"metaAdsLeadForm","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo formuláře."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Smaž formulář Meta","description":"> [!WARNING]\n> Tohle nejde vrátit.\n\nSmaže formulář. Když ho nějaká kampaň ještě používá, dostaneš 422 a nic se nesmaže.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-leads/grid":{"get":{"operationId":"meta-ads-leads.grid","tags":["meta-ads"],"parameters":[{"name":"filter[status]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["createdAt","leadCreatedAt","-createdAt","-leadCreatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsLeadData"},"description":"Kontakty téhle stránky."},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš kontakty z formulářů Meta v tabulce","description":"Vrátí kontakty z formulářů na Facebooku a Instagramu po stránkách, připravené pro tabulku, nejnovější první. Filtruj je podle `status` (pending, ingested, rejected nebo failed) a řaď podle `createdAt` (kdy Fusio kontakt přijalo) nebo `leadCreatedAt` (kdy člověk formulář vyplnil). Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu. Odpovědi z formuláře tu nejsou. Najdeš je v poptávce.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-leads/{metaAdsLead}/retry":{"post":{"operationId":"meta-ads-leads.retry","tags":["meta-ads"],"parameters":[{"name":"metaAdsLead","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo kontaktu ve Fusiu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsLeadData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write"]}],"summary":"Načti kontakt z Meta Ads znovu","description":"Zkusí kontakt ve stavu rejected nebo failed načíst znovu. Nejdřív oprav příčinu z `lastError`. Fusio si kontakt znovu přečte z Meta Ads, takže to jde jen 90 dní od vyplnění.\n\nOdpověď je kontakt ve stejném tvaru jako v `meta-ads-leads.grid`. Má `status` pending, `lastError` null a `attempts` 0. Když kontakt čeká nebo už je ve Fusiu, dostaneš 422 `meta_ads_lead_not_retryable`.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write."}},"/v1/meta-ads-targeting/search":{"get":{"operationId":"meta-ads-targeting.search","tags":["meta-ads"],"parameters":[{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MetaAdsTargetingSearchType"},"description":"Co se hledá: interest, behavior, demographic, location nebo language."},{"name":"query","in":"query","schema":{"type":["string","null"],"minLength":1,"maxLength":100},"description":"Text, který se hledá, nejvýš 100 znaků. Povinný u interest, location a language. U behavior a demographic je volitelný a nechá jen možnosti, které ho mají v názvu."},{"name":"limit","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":50},"description":"Kolik výsledků chceš, od 1 do 50. Bez něj 25. Nejde u behavior a demographic, které vrátí celý seznam."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsTargetingOptionData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Najdi možnosti cílení v Meta Ads","description":"Zeptá se Meta Ads na zájmy, chování, demografii, místa nebo jazyky pro cílení sady.\n\nBez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s `payload.error` meta_not_meta_account. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nTahle adresa dovolí 60 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-audiences":{"get":{"operationId":"meta-ads-audiences.index","tags":["meta-ads"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAudienceData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš tvoje publika v Meta Ads","description":"Zeptá se Meta Ads na vlastní a podobná publika tvého reklamního účtu.\n\nBez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s `payload.error` meta_not_meta_account. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-posts":{"get":{"operationId":"meta-ads-posts.index","tags":["meta-ads"],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string","enum":["facebook","instagram"]},"description":"facebook (příspěvky tvé stránky) nebo instagram (příspěvky tvého profilu)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsPostData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Vypiš tvoje příspěvky na Facebooku nebo Instagramu","description":"Zeptá se Meta Ads na nejnovější příspěvky tvé stránky na Facebooku nebo profilu na Instagramu, abys z jednoho mohl udělat reklamu.\n\nBez vybraného reklamního účtu Meta dostaneš 422 s `payload.error` meta_account_required. Když vybraný účet není účet Meta, dostaneš 422 s meta_not_meta_account. Bez stránky na Facebooku dostaneš 422 s meta_page_required, bez profilu na Instagramu 422 s meta_instagram_required. Když ti Meta nedá přístup ke stránce na Facebooku, dostaneš 422 s meta_page_unavailable. Když Meta další požadavky nedovolí, dostaneš 429 s Retry-After. Když musíš Meta Ads připojit znovu, dostaneš 409 s `payload.error` meta_reconnect_required. Jiné chyby z Meta Ads vrátí 422.\n\nTahle adresa dovolí 30 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/meta-ads-operations/{metaAdsOperation}":{"get":{"operationId":"meta-ads-operations.show","tags":["meta-ads"],"parameters":[{"name":"metaAdsOperation","in":"path","required":true,"schema":{"type":"string"},"description":"Kód úlohy z odpovědi, která ji spustila."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/MetaAdsOperationData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.read"]}],"summary":"Ukaž úlohu reklam Meta","description":"Vrátí, jak úloha na pozadí běží. Ptej se znovu, dokud `status` není completed nebo failed. Úloha jiné firmy vrátí 404.\n\nPotřebuje jedno z těchto práv: ads.read."}},"/v1/notes":{"post":{"operationId":"notes.store","tags":["notes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"noteableType":{"$ref":"#/components/schemas/NoteableType","description":"Druh záznamu, ke kterému poznámka patří: lead, deal nebo lead_contact."},"noteableId":{"type":"integer","description":"Číslo toho záznamu."},"body":{"type":"string","maxLength":65535,"description":"Text poznámky, nejvýš 65535 bajtů."}},"required":["noteableType","noteableId","body"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/NoteOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["deals.write","contacts.write"],"summary":"Přidej poznámku","description":"Klíč s oprávněním leads.write může přidat poznámku k leadu. Poznámka k dealu potřebuje i oprávnění deals.write a poznámka ke kontaktu leadu i oprávnění contacts.write.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: deals.write, contacts.write."}},"/v1/product":{"get":{"operationId":"product.show","tags":["product"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantProductData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Produkt úspěšně načten","payload":{"id":5,"tenantId":412,"leadId":null,"derivedFromAnalysisId":52,"createdBy":88,"name":"Servis a prodej kol","oneLiner":"Servis kol v Brně, hotový do 48 hodin.","description":"Opravujeme a prodáváme kola. Kolo si u tebe vyzvedneme, opravíme v naší dílně a do dvou dnů ti ho vrátíme hotové a seřízené.","productType":"service","customerType":"consumer","businessModel":"Platba za servis a prodej kol a dílů.","pricingSummary":"Základní servis od 790 Kč.","pricingRationale":null,"primaryUseCase":"Připravit kolo na sezónu.","coreProblem":"Servis jinde trvá týden.","costOfInaction":"Přijdeš o víkendy na kole.","emotionalTension":null,"howWeSolveDifferently":"Servis do 48 hodin a odvoz kola.","whyBetter":"Rychleji a bez cesty do dílny.","antiPersona":"Závodníci, kteří si kolo servisují sami.","businessGoal":"Víc objednávek servisu na jaře.","conversionAction":"Objednat servis","logoIconUrl":null,"logoFullUrl":null,"brandColors":{"primary":"#1F6F43","accent":"#F2A900","secondary":"#FFFFFF","additional":[]},"brandKeywords":["servis kol","Brno"],"targetCompanies":null,"targetIndustries":[],"targetDecisionMakers":[],"targetMarkets":{"isGlobal":false,"countryCodes":["CZ","SK"]},"jobsToBeDone":[{"kind":"functional","label":"Mít kolo připravené na víkend."}],"useCaseScenarios":["Jarní servis po zimě"],"alternativesFallingShort":[{"alternative":"Oprava doma","why":"Chybí nářadí a čas."}],"keyDifferentiators":["Hotovo do 48 hodin","Odvoz kola"],"objections":[{"objection":"Servis je drahý","response":"Cenu znáš předem."}],"switchingDynamics":null,"customerLanguageProblem":["kolo mi skřípe"],"customerLanguageSolution":["kolo jede jako nové"],"wordsToUse":["rádi poradíme"],"wordsToAvoid":["bezkonkurenční"],"glossary":[],"proofMetrics":[{"metric":"Opravených kol za rok","value":"1 800"}],"notableCustomers":[],"testimonials":[{"quote":"Kolo bylo hotové za den.","attribution":"Jana z Brna"}],"valueThemes":[{"theme":"Rychlost","proof":"Servis do 48 hodin"}],"naceCodes":[{"code":"952","name":"Opravy výrobků pro osobní potřebu a převážně pro domácnost"}],"naceCodeSource":"ai","googleAdsCategories":[],"analyzedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž svůj produkt","description":"Vrátí tvůj produkt: co prodáváš, komu a proč je lepší. Fusio ho vyplní z analýzy tvého webu a ty můžeš všechno později změnit.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"patch":{"operationId":"product.update","tags":["product"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název produktu, nejvýš 255 znaků."},"oneLiner":{"type":["string","null"],"minLength":20,"maxLength":255,"description":"Tvůj produkt jednou větou. Od 20 do 255 znaků."},"description":{"type":["string","null"],"minLength":120,"maxLength":5000,"description":"Delší text o produktu. Od 120 do 5000 znaků."},"pricingSummary":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Kolik to stojí, tvými slovy. Od 20 do 5000 znaků."},"pricingRationale":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Proč to stojí, kolik to stojí. Od 20 do 5000 znaků."},"primaryUseCase":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"K čemu to lidé používají nejvíc. Od 20 do 5000 znaků."},"coreProblem":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Hlavní problém, který to řeší. Od 20 do 5000 znaků."},"costOfInaction":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Co lidi stojí, když nic neudělají. Od 20 do 5000 znaků."},"emotionalTension":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Jak se lidé kvůli problému cítí. Od 20 do 5000 znaků."},"howWeSolveDifferently":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Jak problém řešíš po svém. Od 20 do 5000 znaků."},"whyBetter":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Proč je to lepší než jiné možnosti. Od 20 do 5000 znaků."},"antiPersona":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Pro koho to není. Od 20 do 5000 znaků."},"businessGoal":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Čeho chceš marketingem dosáhnout. Od 20 do 5000 znaků."},"conversionAction":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Co má návštěvník udělat, třeba objednat ukázku. Od 20 do 5000 znaků."},"businessModel":{"type":["string","null"],"minLength":2,"maxLength":255,"description":"Jak vyděláváš, třeba předplatné. Od 2 do 255 znaků."},"productType":{"anyOf":[{"$ref":"#/components/schemas/TenantProductType"},{"type":"null"}],"description":"Druh produktu: saas, marketplace, ecommerce, service, physical_product, mobile_app, agency nebo other."},"customerType":{"$ref":"#/components/schemas/CustomerType","description":"Kdo kupuje: business (firmy), consumer (lidé) nebo both (obojí). Změna znovu ohodnotí shodu všech tvých leadů na pozadí."},"logoIconUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa tvého malého loga, nejvýš 255 znaků."},"logoFullUrl":{"type":["string","null"],"format":"uri","maxLength":255,"description":"Webová adresa tvého celého loga, nejvýš 255 znaků."},"brandColors":{"type":"object","properties":{"primary":{"type":["string","null"],"pattern":"^#[0-9A-Fa-f]{3,8}$","description":"Hlavní barva. Barva jako #1A2B3C (3 až 8 šestnáctkových číslic za #)."},"accent":{"type":["string","null"],"pattern":"^#[0-9A-Fa-f]{3,8}$","description":"Barva pro věci, které mají vyniknout. Barva jako #1A2B3C (3 až 8 šestnáctkových číslic za #)."},"secondary":{"type":["string","null"],"pattern":"^#[0-9A-Fa-f]{3,8}$","description":"Druhá barva. Barva jako #1A2B3C (3 až 8 šestnáctkových číslic za #)."},"additional":{"type":["array","null"],"items":{"type":"string","pattern":"^#[0-9A-Fa-f]{3,8}$"},"maxItems":12,"description":"Další barvy, nejvýš 12. Barva jako #1A2B3C (3 až 8 šestnáctkových číslic za #)."}},"description":"Barvy tvé značky."},"targetMarkets":{"type":"object","properties":{"isGlobal":{"type":"boolean","description":"true, když prodáváš všude. Je potřeba, když posíláš targetMarkets."},"countryCodes":{"type":["array","null"],"items":{"type":"string","minLength":2,"maxLength":2},"maxItems":10,"description":"Země jako dvě písmena, třeba CZ, nejvýš 10."}},"description":"Kde prodáváš."},"targetCompanies":{"type":"object","properties":{"industries":{"type":["array","null"],"items":{"type":"string"},"maxItems":10,"uniqueItems":true,"description":"Kódy oborů (CZ-NACE) firem, kterým prodáváš, třeba 62, nejvýš 10, každý jednou."},"companySizes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/EmployeeBand"},"uniqueItems":true,"description":"Kolik lidí mají firmy, kterým prodáváš: micro, small, medium, large nebo enterprise."},"stages":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CompanyAgeBand"},"uniqueItems":true,"description":"Jak staré jsou firmy, kterým prodáváš. Vyber z new (do 2 let), young (2 až 5 let), established (5 až 10 let) nebo mature (přes 10 let)."}},"description":"Jakým firmám prodáváš."},"switchingDynamics":{"type":"object","properties":{"push":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Co lidi tlačí pryč od toho, co používají teď. Od 20 do 5000 znaků."},"pull":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Co lidi táhne k tvému produktu. Od 20 do 5000 znaků."},"habit":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Jaký zvyk lidi drží tam, kde jsou. Od 20 do 5000 znaků."},"anxiety":{"type":["string","null"],"minLength":20,"maxLength":5000,"description":"Čeho se lidé při změně bojí. Od 20 do 5000 znaků."}},"description":"Proč lidé přejdou k tobě, nebo zůstanou, kde jsou."},"brandKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":10,"description":"Seznam: slova, která patří k tvé značce, nejvýš 10. Každá položka nejvýš 1000 znaků."},"useCaseScenarios":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: situace, kdy to lidé používají, nejvýš 50. Každá položka nejvýš 1000 znaků."},"keyDifferentiators":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: věci, kterými se lišíš, nejvýš 50. Každá položka nejvýš 1000 znaků."},"customerLanguageProblem":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: slova, kterými zákazníci popisují problém, nejvýš 50. Každá položka nejvýš 1000 znaků."},"customerLanguageSolution":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: slova, kterými zákazníci popisují řešení, nejvýš 50. Každá položka nejvýš 1000 znaků."},"wordsToUse":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: slova, která se mají v textech používat, nejvýš 50. Každá položka nejvýš 1000 znaků."},"wordsToAvoid":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: slova, která do textů nepatří, nejvýš 50. Každá položka nejvýš 1000 znaků."},"notableCustomers":{"type":["array","null"],"items":{"type":"string","maxLength":1000},"maxItems":50,"description":"Seznam: známí zákazníci, nejvýš 50. Každá položka nejvýš 1000 znaků."},"targetDecisionMakers":{"type":["array","null"],"items":{"type":"object","properties":{"role":{"type":"string","maxLength":1000,"description":"Jejich práce, třeba CEO. Nejvýš 1000 znaků."},"department":{"type":["string","null"],"maxLength":1000,"description":"Jejich tým, třeba Obchod. Nejvýš 1000 znaků."}},"required":["role"]},"maxItems":50,"description":"Lidé, kteří rozhodují o nákupu, nejvýš 50."},"jobsToBeDone":{"type":["array","null"],"items":{"type":"object","properties":{"kind":{"type":"string","enum":["functional","emotional","social"],"description":"Druh: functional (úkol), emotional (pocit) nebo social (jak je vidí ostatní)."},"label":{"type":"string","maxLength":1000,"description":"Úkol pár slovy. Nejvýš 1000 znaků."}},"required":["kind","label"]},"maxItems":50,"description":"Co chtějí zákazníci mít hotové, nejvýš 50."},"alternativesFallingShort":{"type":["array","null"],"items":{"type":"object","properties":{"alternative":{"type":"string","maxLength":1000,"description":"Jiná možnost. Nejvýš 1000 znaků."},"why":{"type":"string","maxLength":1000,"description":"Proč nestačí. Nejvýš 1000 znaků."}},"required":["alternative","why"]},"maxItems":50,"description":"Jiné možnosti, které nefungují dost dobře, nejvýš 50."},"objections":{"type":["array","null"],"items":{"type":"object","properties":{"objection":{"type":"string","maxLength":1000,"description":"Pochybnost. Nejvýš 1000 znaků."},"response":{"type":"string","maxLength":1000,"description":"Tvoje odpověď na ni. Nejvýš 1000 znaků."}},"required":["objection","response"]},"maxItems":50,"description":"Pochybnosti, které lidé mají před nákupem, s tvou odpovědí, nejvýš 50."},"glossary":{"type":["array","null"],"items":{"type":"object","properties":{"term":{"type":"string","maxLength":1000,"description":"Slovo. Nejvýš 1000 znaků."},"meaning":{"type":"string","maxLength":1000,"description":"Co znamená. Nejvýš 1000 znaků."}},"required":["term","meaning"]},"maxItems":50,"description":"Slova tvého oboru s tím, co znamenají, nejvýš 50."},"proofMetrics":{"type":["array","null"],"items":{"type":"object","properties":{"metric":{"type":"string","maxLength":1000,"description":"Co měříš, třeba ušetřený čas. Nejvýš 1000 znaků."},"value":{"type":"string","maxLength":1000,"description":"Číslo, třeba 30 %. Nejvýš 1000 znaků."}},"required":["metric","value"]},"maxItems":50,"description":"Čísla, která dokazují tvoje výsledky, nejvýš 50."},"testimonials":{"type":["array","null"],"items":{"type":"object","properties":{"quote":{"type":"string","maxLength":1000,"description":"Jejich slova. Nejvýš 1000 znaků."},"attribution":{"type":"string","maxLength":1000,"description":"Kdo to řekl. Nejvýš 1000 znaků."}},"required":["quote","attribution"]},"maxItems":50,"description":"Co řekli spokojení zákazníci, nejvýš 50."},"valueThemes":{"type":["array","null"],"items":{"type":"object","properties":{"theme":{"type":"string","maxLength":1000,"description":"Slib. Nejvýš 1000 znaků."},"proof":{"type":"string","maxLength":1000,"description":"Co ho dokazuje. Nejvýš 1000 znaků."}},"required":["theme","proof"]},"maxItems":50,"description":"Hlavní sliby hodnoty s důkazem, nejvýš 50."},"naceCodes":{"type":"array","items":{"type":"string"},"maxItems":5,"uniqueItems":true,"description":"Kódy tvého oboru (CZ-NACE), třeba 62, nejvýš 5. Nahradí staré a Fusio je přestane vybírat samo. Nesmíš je poslat spolu s resetNaceCodesToAi."},"resetNaceCodesToAi":{"type":"boolean","description":"true smaže kódy oboru a nechá AI, ať je na pozadí vybere znovu."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Vynech ho, když to píšeš sám."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantProductData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň svůj produkt","description":"Změní tvůj produkt. Pošli jen to, co chceš změnit. Pole, které vynecháš, zůstane, jak je; null ho smaže. Seznam, který pošleš, nahradí celý starý seznam.\n\nKdyž změníš název, větu o produktu nebo popis a kódy oboru jsi nevybral sám, AI vybere nové kódy oboru na pozadí.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/product/scoring-profile":{"get":{"operationId":"product.scoring-profile","tags":["product"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantLeadScoringProfileOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž, jak se hodnotí leady","description":"Vrátí, jak Fusio hodnotí tvoje leady: signály, které hledá, kolik každý váží, tvůj ideální lead a co lead vyřadí.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/product/lead-conversion-model":{"get":{"operationId":"product.lead-conversion-model.show","tags":["product"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/LeadConversionModelStatusOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž model předpovědi leadů","description":"Vrátí stav modelu, který odhaduje, které leady se stanou klienty.\n\nModel se učí z tvých vyhraných a prohraných leadů. Dokud jich nemá dost, stav je collecting.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/articles/public":{"get":{"operationId":"public.articles.index","tags":["public-content"],"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."},{"name":"perPage","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Kolik článků na jedné stránce, 1 až 100."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Číslo stránky, od 1."},{"name":"categorySlug","in":"query","schema":{"type":["string","null"]},"description":"Jen články téhle kategorie a kategorií pod ní."},{"name":"authorSlug","in":"query","schema":{"type":["string","null"]},"description":"Jen články tohohle autora."},{"name":"withContent","in":"query","schema":{"type":"boolean"},"description":"Pošli i celý text každého článku jako HTML."},{"name":"articleIntegrationId","in":"query","schema":{"type":"integer"},"description":"Jen články tohohle tvého webu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UpdateArticleData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Vypiš zveřejněné články","description":"Vrátí zveřejněné a viditelné články, které mají text v jazyce `locale`, od nejnovějšího. Je to to, co ukazuje stránka tvého blogu.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/articles/public/authors":{"get":{"operationId":"public.article-authors.index","tags":["public-content"],"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/PublicTenantArticleAuthorData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.read"]}],"summary":"Vypiš aktivní autory","description":"Vrátí aktivní autory s texty v jazyce `locale` a počtem jejich zveřejněných článků. Výchozí autor je první.\n\nPotřebuje jedno z těchto práv: article-authors.read."}},"/v1/articles/public/authors/{slug}":{"get":{"operationId":"public.article-authors.show","tags":["public-content"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"Část webové adresy autora."},{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/PublicTenantArticleAuthorData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Autor článků úspěšně načten","payload":{"id":7,"slug":"jana-novakova","type":"person","name":"Jana Nováková","jobTitle":"Vedoucí servisu","bio":"Jana opravuje kola přes deset let.","metaDescription":"Články od Jany Novákové.","avatar":null,"websiteUrl":"https://www.example.cz/o-nas","facebookUrl":null,"instagramUrl":null,"linkedinUrl":"https://www.linkedin.com/in/jana-novakova-example","xUrl":null,"youtubeUrl":null,"tiktokUrl":null,"githubUrl":null,"email":null,"sameAs":["https://www.linkedin.com/in/jana-novakova-example"],"knowsAbout":["horská kola","servis kol"],"articleCount":12,"isActive":true}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["article-authors.read"]}],"summary":"Ukaž jednoho aktivního autora","description":"Vrátí jednoho aktivního autora pro stránku autora na tvém webu. Chyba: 404, když aktivní autor s touhle adresou není.\n\nPotřebuje jedno z těchto práv: article-authors.read."}},"/v1/articles/public/{slug}":{"get":{"operationId":"public.articles.show","tags":["public-content"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"Část webové adresy článku v tomhle jazyce."},{"name":"locale","in":"query","required":true,"schema":{"type":"string"},"description":"Jazyk textů, třeba cs_CZ."},{"name":"utm_sid","in":"query","schema":{"type":["string","null"]},"description":"Klíč čtenáře z odkazu v e-mailu. Fusio návštěvu připíše tomu čtenáři."},{"name":"countView","in":"query","schema":{"type":"boolean"},"description":"Pošli false, když návštěvu počítá tvá stránka. Fusio pak nic nepočítá."},{"name":"articleIntegrationId","in":"query","schema":{"type":"integer"},"description":"Jen články tohohle tvého webu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateArticleData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Veřejný článek úspěšně načten","payload":{"id":1284,"publication":null,"campaign":null,"translation":{"id":2210,"articleId":1284,"locale":"cs_CZ","isPrimary":true,"name":"Jak vybrat horské kolo","content":"## Na čem záleží\n\nVyber rám podle své výšky a terénu, kam jezdíš.","contentHtml":"<h2>Na čem záleží</h2><p>Vyber rám podle své výšky a terénu, kam jezdíš.</p>","slug":"jak-vybrat-horske-kolo","breadcrumbTitle":"Výběr horského kola","metaTitle":"Jak vybrat horské kolo | Cyklo Novák","metaDescription":"Krátký návod, jak vybrat horské kolo podle výšky a terénu.","primaryFocusKeyword":"horské kolo","secondaryKeywords":["výběr kola","velikost rámu"],"canonicalUrl":"https://www.example.cz/blog/jak-vybrat-horske-kolo","ogTitle":"Jak vybrat horské kolo","ogDescription":"Návod na výběr horského kola.","ogImageId":null,"ogImage":null,"twitterTitle":null,"twitterDescription":null,"twitterImageId":null,"twitterImage":null,"wordCount":860,"readingTime":4,"summary":"Rám vyber podle výšky, kola podle terénu.","summaryHtml":"<p>Rám vyber podle výšky, kola podle terénu.</p>","signature":null,"sources":[],"tableOfContents":[]},"availableLocales":["cs_CZ"],"alternates":[{"locale":"cs_CZ","slug":"jak-vybrat-horske-kolo","languageTag":"cs-CZ","languageCode":"cs","categorySlug":"navody"}],"tenantId":412,"tenantSequence":37,"userId":88,"articleCategoryId":31,"categorySlug":"navody","tenantArticleAuthorId":7,"author":null,"bannerImageId":5120,"unsplashBannerImageUrl":null,"unsplashBannerCredit":null,"bannerImage":null,"articleIntegrationId":3,"articleIntegration":null,"state":"published","schemaType":"BlogPosting","seoIndex":true,"seoFollow":true,"robotsNoarchive":false,"robotsNosnippet":false,"robotsMaxSnippet":null,"robotsMaxImagePreview":"large","robotsMaxVideoPreview":null,"isVisible":true,"isCornerstone":false,"publishedAt":"2026-11-12T13:05:00Z","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z","blueprint":null,"campaignAsset":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]}],"summary":"Ukaž jeden zveřejněný článek","description":"Vrátí jeden článek tak, jak ho ukazuje tvůj web, s odkazy na jeho další jazyky. Když kampaň článku běží a sleduje návštěvy, Fusio jí návštěvu připíše.\n\nChyby: 404, když je článek schovaný, nezveřejněný nebo není v kampani, a 410, když byl smazaný.\n\nPotřebuje jedno z těchto práv: articles.read."}},"/v1/publications/{publication}/reschedule":{"patch":{"operationId":"publications.reschedule","tags":["publications"],"parameters":[{"name":"publication","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo publikace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledAt":{"type":"string","description":"Nový čas, v budoucnu, s časovým pásmem, třeba 2026-12-01T09:00:00+01:00."}},"required":["scheduledAt"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.publish"]},{"fusioToken":["emails.send"]},{"fusioToken":["social-posts.publish.x"]},{"fusioToken":["social-posts.publish.facebook"]},{"fusioToken":["social-posts.publish.linkedin"]},{"fusioToken":["social-posts.publish.instagram"]},{"fusioToken":["campaigns.execute"]},{"fusioToken":["ads.execute.google"]},{"fusioToken":["ads.execute.facebook"]},{"fusioToken":["ads.execute.linkedin"]},{"fusioToken":["ads.execute.instagram"]}],"x-fusio-conditional-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.write","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Přesuň publikaci na jiný čas","description":"Přesune publikaci na nový čas. Neúspěšná publikace se naplánuje znovu. Když obsah patří ke kampani, kampaň musí být draft, scheduled nebo active.\n\nPotřebuje právo, které obsah pustí ven, třeba `articles.publish`. Článek, e-mail nebo příspěvek potřebuje i svoje oprávnění k zápisu, třeba `articles.write`, a když patří do kampaně, i `campaigns.write`. Publikace kampaně potřebuje `campaigns.write` a oprávnění k zápisu pro každý druh obsahu v kampani.\n\nChyby: 403 `insufficient_scope`, 422 když publikace už začala nebo je čas v minulosti.\n\nPotřebuje jedno z těchto práv: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Některé hodnoty potřebují ještě: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.write, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/publications":{"get":{"operationId":"publications.index","tags":["publications"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"description":"Začátek období, jako datum nebo datum a čas."},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"description":"Konec období. Nesmí být před from."},{"name":"statuses[]","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicationStatus"}},"description":"Vrať jen publikace s těmihle stavy, třeba scheduled nebo failed."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/SchedulingPublicationData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]},{"fusioToken":["emails.read"]},{"fusioToken":["social-posts.read"]},{"fusioToken":["campaigns.read"]}],"summary":"Vypiš publikace v období","description":"Vrátí publikace naplánované mezi `from` a `to`, od nejdřívější. Uvidíš jen obsah, který smíš číst.\n\nPotřebuje jedno z těchto práv: articles.read, emails.read, social-posts.read, campaigns.read."},"post":{"operationId":"publications.store","tags":["publications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":["integer","null"],"description":"Kampaň, do které se položky přidají."},"timezone":{"type":["string","null"],"maxLength":64,"description":"Časové pásmo pro časy, třeba Europe/Prague. Když ho vynecháš, použije se pásmo kampaně."},"mainEntity":{"type":"object","properties":{"type":{"type":"string","enum":["socialPost","article","email","emailTemplate","leadDiscoveryRun","leadImportRun","contact","crmImportRun","emailCampaign","topic","socialPlatform","ad","adPlatform","campaign","campaignGenerationSequenceRun","researchProfile","tenant","aiGenerationRun","personalEmailDraft","googleAdsSearchCampaign","metaAdsCampaign","report"],"description":"Co zveřejnit: article, socialPost, email nebo ad. campaign spustí celou kampaň. Ostatní názvy se odmítnou s 422."},"id":{"type":"integer","description":"Číslo položky."},"isImmediate":{"type":"boolean","description":"true zveřejní hned. false zveřejní v čase publishAt. Kampaň ho přehlíží a začne ve svém startAt."},"publishAt":{"type":["string","null"],"description":"Kdy zveřejnit, v budoucnu, s časovým pásmem, třeba 2026-12-01T09:00:00+01:00. Potřebný, když je isImmediate false."}},"required":["type","id","isImmediate"],"description":"Hlavní položka ke zveřejnění."},"relatedEntities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["socialPost","article","email","emailTemplate","leadDiscoveryRun","leadImportRun","contact","crmImportRun","emailCampaign","topic","socialPlatform","ad","adPlatform","campaign","campaignGenerationSequenceRun","researchProfile","tenant","aiGenerationRun","personalEmailDraft","googleAdsSearchCampaign","metaAdsCampaign","report"],"description":"Co zveřejnit: article, socialPost, email nebo ad."},"id":{"type":"integer","description":"Číslo položky."},"useMainTime":{"type":"boolean","description":"true ji zveřejní ve stejný čas jako hlavní položku."},"publishAt":{"type":["string","null"],"description":"Její vlastní čas, v budoucnu, s časovým pásmem. Potřebný, když je useMainTime false."}},"required":["type","id","useMainTime"]},"maxItems":100,"description":"Další položky, které se zveřejní s tou hlavní, nejvýš 100. U kampaně nejsou povolené."}},"required":["mainEntity"]},"example":{"campaignId":58,"timezone":"Europe/Prague","mainEntity":{"type":"article","id":1284,"isImmediate":false,"publishAt":"2027-03-02T09:00:00+01:00"},"relatedEntities":[{"type":"socialPost","id":902,"useMainTime":false,"publishAt":"2027-03-02T12:00:00+01:00"}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Publikace úspěšně přidány do fronty","payload":null}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.publish"]},{"fusioToken":["emails.send"]},{"fusioToken":["social-posts.publish.x"]},{"fusioToken":["social-posts.publish.facebook"]},{"fusioToken":["social-posts.publish.linkedin"]},{"fusioToken":["social-posts.publish.instagram"]},{"fusioToken":["campaigns.execute"]},{"fusioToken":["ads.execute.google"]},{"fusioToken":["ads.execute.facebook"]},{"fusioToken":["ads.execute.linkedin"]},{"fusioToken":["ads.execute.instagram"]}],"x-fusio-conditional-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.write","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Zveřejni obsah hned nebo později","description":"Naplánuje hlavní položku a další položky. Každá položka musí být schválená. Článek potřebuje web s ověřenou doménou, e-mail nastaveného odesílatele.\n\nKdyž je hlavní položkou kampaň, Fusio naplánuje její začátek na `startAt` kampaně a kampaň bude `scheduled`. Kampaň musí být `approved` a ještě nikdy nezveřejněná.\n\nKaždá položka potřebuje svoje právo: článek `articles.publish`, e-mail `emails.send`, příspěvek právo ke zveřejnění na své síti, reklama `ads.write` a právo ke spuštění na své síti, kampaň `campaigns.execute`. Článek, e-mail nebo příspěvek potřebuje i svoje oprávnění k zápisu: `articles.write`, `emails.write` nebo `social-posts.write`. Když patří do kampaně nebo pošleš `campaignId`, klíč potřebuje i `campaigns.write`. Kampaň potřebuje `campaigns.write` a oprávnění k zápisu pro každý druh obsahu v ní.\n\n> [!WARNING]\n> S `isImmediate` true obsah vyjde hned: článek bude vidět, e-mail se odešle, příspěvek se objeví na síti.\n\nChyby: 403 `insufficient_scope`, 422 když položka není schválená, čas je v minulosti nebo mimo termín kampaně, nebo položku zveřejnit nejde.\n\nPotřebuje jedno z těchto práv: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Některé hodnoty potřebují ještě: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.write, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/publications/{publication}":{"get":{"operationId":"publications.show","tags":["publications"],"parameters":[{"name":"publication","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo publikace."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"type":"string"},"maxItems":0}},"required":["status","message","payload"]},"example":{"status":"success","message":"Publikace úspěšně načtena","payload":[]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]},{"fusioToken":["emails.read"]},{"fusioToken":["social-posts.read"]},{"fusioToken":["campaigns.read"]},{"fusioToken":["ads.read"]}],"summary":"Ověř jednu publikaci","description":"Ověří, že publikace existuje a že ji smíš vidět. Odpověď má v `payload` prázdný seznam; podrobnosti přečteš v seznamu publikací.\n\nChyby: 403 `insufficient_scope` bez práva ke čtení jejího obsahu, 404 když neexistuje.\n\nPotřebuje jedno z těchto práv: articles.read, emails.read, social-posts.read, campaigns.read, ads.read."},"put":{"operationId":"publications.update","tags":["publications"],"parameters":[{"name":"publication","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo publikace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Znovu číslo publikace. Pošli stejné číslo jako v adrese; s jiným číslem dostaneš 422."},"campaignId":{"type":["integer","null"],"description":"Kampaň, do které se položky přidají."},"timezone":{"type":["string","null"],"maxLength":64,"description":"Časové pásmo pro časy, třeba Europe/Prague. Když ho vynecháš, použije se pásmo kampaně."},"mainEntity":{"type":"object","properties":{"type":{"type":"string","enum":["socialPost","article","email","emailTemplate","leadDiscoveryRun","leadImportRun","contact","crmImportRun","emailCampaign","topic","socialPlatform","ad","adPlatform","campaign","campaignGenerationSequenceRun","researchProfile","tenant","aiGenerationRun","personalEmailDraft","googleAdsSearchCampaign","metaAdsCampaign","report"],"description":"Co zveřejnit: article, socialPost, email nebo ad. campaign spustí celou kampaň. Ostatní názvy se odmítnou s 422."},"id":{"type":"integer","description":"Číslo položky."},"isImmediate":{"type":"boolean","description":"true zveřejní hned. false zveřejní v čase publishAt. Kampaň ho přehlíží a začne ve svém startAt."},"publishAt":{"type":["string","null"],"description":"Kdy zveřejnit, v budoucnu, s časovým pásmem, třeba 2026-12-01T09:00:00+01:00. Potřebný, když je isImmediate false."}},"required":["type","id","isImmediate"],"description":"Hlavní položka ke zveřejnění."},"relatedEntities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["socialPost","article","email","emailTemplate","leadDiscoveryRun","leadImportRun","contact","crmImportRun","emailCampaign","topic","socialPlatform","ad","adPlatform","campaign","campaignGenerationSequenceRun","researchProfile","tenant","aiGenerationRun","personalEmailDraft","googleAdsSearchCampaign","metaAdsCampaign","report"],"description":"Co zveřejnit: article, socialPost, email nebo ad."},"id":{"type":"integer","description":"Číslo položky."},"useMainTime":{"type":"boolean","description":"true ji zveřejní ve stejný čas jako hlavní položku."},"publishAt":{"type":["string","null"],"description":"Její vlastní čas, v budoucnu, s časovým pásmem. Potřebný, když je useMainTime false."}},"required":["type","id","useMainTime"]},"maxItems":100,"description":"Další položky, které se zveřejní s tou hlavní, nejvýš 100. U kampaně nejsou povolené."}},"required":["id","mainEntity"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.publish"]},{"fusioToken":["emails.send"]},{"fusioToken":["social-posts.publish.x"]},{"fusioToken":["social-posts.publish.facebook"]},{"fusioToken":["social-posts.publish.linkedin"]},{"fusioToken":["social-posts.publish.instagram"]},{"fusioToken":["campaigns.execute"]},{"fusioToken":["ads.execute.google"]},{"fusioToken":["ads.execute.facebook"]},{"fusioToken":["ads.execute.linkedin"]},{"fusioToken":["ads.execute.instagram"]}],"x-fusio-conditional-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.write","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Změň publikaci","description":"Naplánuje položky znovu s novými časy. Položka, která už v publikaci je, smí být approved, scheduled nebo failed; nová položka musí být schválená. Publikaci kampaně tady změnit nejde; smaž ji a vytvoř novou.\n\nKaždá položka potřebuje svoje právo: článek `articles.publish`, e-mail `emails.send`, příspěvek právo ke zveřejnění na své síti, reklama `ads.write` a právo ke spuštění na své síti, kampaň `campaigns.execute`. Článek, e-mail nebo příspěvek potřebuje i svoje oprávnění k zápisu: `articles.write`, `emails.write` nebo `social-posts.write`. Když patří do kampaně nebo pošleš `campaignId`, klíč potřebuje i `campaigns.write`. Kampaň potřebuje `campaigns.write` a oprávnění k zápisu pro každý druh obsahu v ní.\n\n> [!WARNING]\n> S `isImmediate` true obsah vyjde hned.\n\nChyby: 403 `insufficient_scope`, 422 když položku naplánovat nejde, čas je mimo termín kampaně nebo je publikace pro kampaň.\n\nPotřebuje jedno z těchto práv: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Některé hodnoty potřebují ještě: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.write, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."},"delete":{"operationId":"publications.destroy","tags":["publications"],"parameters":[{"name":"publication","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo publikace."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.publish"]},{"fusioToken":["emails.send"]},{"fusioToken":["social-posts.publish.x"]},{"fusioToken":["social-posts.publish.facebook"]},{"fusioToken":["social-posts.publish.linkedin"]},{"fusioToken":["social-posts.publish.instagram"]},{"fusioToken":["campaigns.execute"]},{"fusioToken":["ads.execute.google"]},{"fusioToken":["ads.execute.facebook"]},{"fusioToken":["ads.execute.linkedin"]},{"fusioToken":["ads.execute.instagram"]}],"x-fusio-conditional-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.write","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"x-fusio-opt-in-scopes":["articles.publish","emails.send","social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram","campaigns.execute","ads.execute.google","ads.execute.facebook","ads.execute.linkedin","ads.execute.instagram"],"summary":"Zruš publikaci","description":"Zruší naplánovanou nebo neúspěšnou publikaci. Obsah se vrátí do stavu approved a nic nevyjde. U publikace kampaně se zruší plánovaný začátek.\n\nPotřebuje právo, které obsah pustí ven. Článek, e-mail nebo příspěvek potřebuje i svoje oprávnění k zápisu, třeba `articles.write`, a když patří do kampaně, i `campaigns.write`. Publikace kampaně potřebuje `campaigns.write` a oprávnění k zápisu pro každý druh obsahu v kampani.\n\nChyby: 403 `insufficient_scope`, 422 když publikace není naplánovaná ani neúspěšná.\n\nPotřebuje jedno z těchto práv: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Některé hodnoty potřebují ještě: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.write, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram. Tato práva musíš zaškrtnout schválně: articles.publish, emails.send, social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram, campaigns.execute, ads.execute.google, ads.execute.facebook, ads.execute.linkedin, ads.execute.instagram."}},"/v1/scheduling/available-entities":{"get":{"operationId":"scheduling.available-entities","tags":["publications"],"parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["article","email","social_post","campaign"]},"description":"Druh obsahu: article, email, social_post nebo campaign."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Text, který se hledá v názvu, nejvýš 255 znaků."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Kde začíná další stránka. Vezmi ho z next_cursor předchozí stránky."},{"name":"perPage","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Kolik položek na jedné stránce, 1 až 100."},{"name":"states[]","in":"query","schema":{"type":"array","items":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed","draft","active","paused","completed","cancelled","archived"],"maxLength":64}},"description":"Vrať položky v těchhle stavech. Když ho vynecháš, vrátí se jen schválené."},{"name":"campaignIds[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1}},"description":"Vrať jen položky těchhle kampaní. U typu campaign se nepoužije."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SchedulingAvailableEntitiesOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Dostupné entity úspěšně načteny","payload":{"data":[{"id":1284,"name":"Jak vybrat horské kolo","state":"approved","assignedToCampaign":true,"campaignId":58,"campaignName":"Jarní servis 2027","campaignOrigin":"manual"},{"id":1279,"name":"Pět chyb při mazání řetězu","state":"approved","assignedToCampaign":false,"campaignId":null,"campaignName":null,"campaignOrigin":null}],"path":"https://api.example.cz/api/v1/scheduling/available-entities","per_page":20,"next_cursor":"eyJpZCI6MTI3OSwiX3BvaW50c1RvTmV4dEl0ZW1zIjp0cnVlfQ","next_page_url":"https://api.example.cz/api/v1/scheduling/available-entities?type=article&cursor=eyJpZCI6MTI3OSwiX3BvaW50c1RvTmV4dEl0ZW1zIjp0cnVlfQ","prev_cursor":null,"prev_page_url":null}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["articles.read"]},{"fusioToken":["emails.read"]},{"fusioToken":["social-posts.read"]},{"fusioToken":["campaigns.read"]}],"x-fusio-conditional-scopes":["articles.read","emails.read","social-posts.read","campaigns.read"],"summary":"Vypiš obsah, který můžeš zveřejnit","description":"Vrátí obsah jednoho druhu, který můžeš dát do publikace, od nejnovějšího, po stránkách. Pro další stránku pošli `next_cursor` jako `cursor`; na poslední stránce je null.\n\nPotřebuje právo ke čtení toho druhu, třeba `articles.read`.\n\nPotřebuje jedno z těchto práv: articles.read, emails.read, social-posts.read, campaigns.read. Některé hodnoty potřebují ještě: articles.read, emails.read, social-posts.read, campaigns.read."}},"/v1/seo-audits/overview":{"get":{"operationId":"seo-audits.overview","tags":["seo-audits"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[tenantProductId]","in":"query","schema":{"type":["integer","null"]},"description":"Jen audity tohohle tvého produktu."},{"name":"filter[countryCode]","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":2},"description":"Jen tahle země, jako dvě písmena, třeba CZ."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SeoAuditOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.read"]}],"summary":"Ukaž přehled SEO","description":"Vrátí hlavní čísla SEO za období: tvou viditelnost proti soupeřům a zjištění, která opravit nejdřív.\n\nPotřebuje jedno z těchto práv: seo.read."}},"/v1/seo-audits":{"get":{"operationId":"seo-audits.index","tags":["seo-audits"],"parameters":[{"name":"tenantProductId","in":"query","schema":{"type":["integer","null"]},"description":"Jen audity tohohle tvého produktu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.read"]}],"summary":"Vypiš SEO audity","description":"Vrátí tvoje SEO audity, nejnovější první, i s jejich zjištěními a trhy.\n\nPotřebuje jedno z těchto práv: seo.read."}},"/v1/seo-audits/{seoAudit}":{"get":{"operationId":"seo-audits.show","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantSeoAuditDetailData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"SEO audit úspěšně načten","payload":{"audit":{"id":18,"tenantId":412,"tenantProductId":5,"tenantProductName":"Servis a prodej kol","derivedFromAnalysisId":52,"websiteUrl":"https://www.example.cz","createdBy":88,"overallHealth":"needs_work","summary":"Web je rychlý, ale stránka servisu nemá texty, které lidé hledají.","findings":[],"currentKeywordCoverage":[],"intentCoverage":null,"rawSources":[],"analyzedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","searchResearch":null,"recommendations":null,"visibility":null,"competitorPattern":"Konkurence píše návody k údržbě kol.","markets":[{"id":30,"seoAuditId":18,"countryCode":"CZ","countryName":"Česko","languageId":1,"languageSlug":"cs","languageName":"Čeština","isPrimary":true,"isBase":true,"status":"completed","failureReason":null,"summary":{"searchVolume":12400,"cpcLow":3.1,"cpcHigh":11.8,"currencyCode":"CZK","difficulty":34,"top10Count":6}}],"researchCountryCode":"CZ","researchCountrySource":"target_markets"},"keywordOpportunities":[{"id":901,"tenantId":412,"derivedFromAnalysisId":52,"createdBy":88,"keyword":"servis kol brno","searchVolume":390,"isVolumeUnknown":false,"cpcLow":4.2,"cpcHigh":11.8,"currencyCode":"CZK","competitionIndex":38,"intent":"transactional","difficultyEstimate":28.5,"priorityScore":86,"priorityRank":1,"priceBand":"medium","source":"product","cluster":"Servis","isGap":true,"isRecommended":true,"rationale":"Lidé to hledají a ty na to zatím nemáš stránku.","analyzedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z","isCpcUnknown":false,"isCompetitionUnknown":false}],"competitors":[{"id":77,"name":"Kola Horák","websiteUrl":"https://www.example.cz","competitorType":"direct","positioningAngle":"Kola pro celou rodinu","summary":"Velký výběr dětských kol a půjčovna.","theirAdvantage":"Návody k údržbě kol.","ourAdvantage":"Rychlejší servis.","strengths":["Návody"],"weaknesses":["Pomalý servis"],"estimatedDomainAuthority":22,"seoMove":"Napiš stránku o jarním servisu.","keywordOpportunityIds":[901]}],"googleAdsSearchCampaign":null,"markets":[{"id":30,"seoAuditId":18,"countryCode":"CZ","countryName":"Česko","languageId":1,"languageSlug":"cs","languageName":"Čeština","isPrimary":true,"isBase":true,"status":"completed","failureReason":null,"summary":{"searchVolume":12400,"cpcLow":3.1,"cpcHigh":11.8,"currencyCode":"CZK","difficulty":34,"top10Count":6}}]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.read"]}],"summary":"Ukaž SEO audit","description":"Vrátí jeden SEO audit i s příležitostmi hledaných slov, konkurenty, trhy a kampaní Google Ads, která z něj vznikla.\n\nPotřebuje jedno z těchto práv: seo.read."},"delete":{"operationId":"seo-audits.destroy","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Odeber SEO audit","description":"Odebere SEO audit se všemi jeho trhy. Kontrola trhu, která ještě běží, se zastaví.\n\nAudit jednoho trhu takhle odebrat nejde; dostaneš 422 `tenant_seo_audit.market_not_removable`. Odeber místo toho trh přes `seo-audits.markets.destroy`.\n\nPotřebuje jedno z těchto práv: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/seo-audits/{seoAudit}/findings/{priority}":{"put":{"operationId":"seo-audits.findings.update","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."},{"name":"priority","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo zjištění, z `findings.priority`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isResolved":{"type":"boolean","description":"true, když jsi ho opravil, false, když ho chceš znovu otevřít."}},"required":["isResolved"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantSeoAuditDetailData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Označ zjištění SEO jako opravené","description":"Označí jedno zjištění auditu jako opravené nebo znovu otevřené a vrátí celý audit. Když audit zjištění s tímhle číslem nemá, dostaneš 404.\n\nPotřebuje jedno z těchto práv: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/seo-audits/{seoAudit}/google-ads-search-campaign":{"post":{"operationId":"seo-audits.google-ads-search-campaign.store","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název kampaně, nejvýš 255 znaků. Žádná jiná kampaň ho nesmí mít."},"sets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":255,"description":"Klíč sady, kterou audit doporučuje. Vezmi ho z `google-ads-search-seo-keyword-sets.index`. Každou sadu jednou."},"keywords":{"type":"array","items":{"type":"string","maxLength":255},"minItems":1,"maxItems":8,"description":"Klíčová slova té sady, která chceš, od 1 do 8, každé nejvýš 255 znaků."},"negativeKeywords":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":15,"description":"Vylučující klíčová slova té sady, která chceš, nejvýš 15. Když žádná, pošli prázdný seznam."}},"required":["key","keywords","negativeKeywords"]},"minItems":1,"maxItems":8,"uniqueItems":true,"description":"Sady klíčových slov, které použít, od 1 do 8. Z každé sady bude jedna reklamní sestava."},"accountNegativeKeywords":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":15,"description":"Vylučující klíčová slova pro celý účet, která audit doporučuje a ty je chceš, nejvýš 15. Když žádná, pošli prázdný seznam."}},"required":["name","sets","accountNegativeKeywords"]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ads.write","seo.read"]}],"summary":"Vytvoř kampaň Google Ads z auditu","description":"Vytvoří koncept vyhledávací kampaně Google Ads ze sad klíčových slov auditu a odpoví 201. Do Google Ads zatím nic nejde.\n\nKaždé klíčové slovo musí pocházet ze sady, kterou audit doporučuje; klíč nebo slovo, které tam není, dostane 422. Potom napiš reklamy přes `google-ads-search-ad-groups.search-ad.generate`, kampaň schval a pošli do Google Ads.\n\nTahle adresa dovolí 10 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: ads.write. Potřebuje taky: seo.read."}},"/v1/seo-audits/{seoAudit}/markets":{"post":{"operationId":"seo-audits.markets.store","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba DE."},"languageId":{"type":"integer","description":"Číslo jazyka, který se má kontrolovat."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["countryCode","languageId"]},"example":{"countryCode":"SK","languageId":4,"maxCredits":60}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"}}},"required":["status","message","payload"]},"example":{"status":"success","message":"Trh se dopočítává.","payload":[{"id":30,"seoAuditId":18,"countryCode":"CZ","countryName":"Česko","languageId":1,"languageSlug":"cs","languageName":"Čeština","isPrimary":true,"isBase":true,"status":"completed","failureReason":null,"summary":{"searchVolume":12400,"cpcLow":3.1,"cpcHigh":11.8,"currencyCode":"CZK","difficulty":34,"top10Count":6}},{"id":31,"seoAuditId":18,"countryCode":"SK","countryName":"Slovensko","languageId":4,"languageSlug":"sk","languageName":"Slovenčina","isPrimary":false,"isBase":false,"status":"running","failureReason":null,"summary":null}]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Přidej trh do SEO auditu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPřidá do auditu zemi a jazyk a spustí jejich kontrolu pomocí AI na pozadí. Odpověď je 201 se všemi trhy auditu.\n\nAudit má nejvýš 5 trhů; neúspěšné se nepočítají. Dostaneš 422, když audit nevznikl z analýzy tvého webu, jazyk není podporovaný, tvoje doména není ověřená, země už tam je nebo běží kontrola jiného trhu. Chyba je v `payload.error`.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/seo-audits/{seoAudit}/markets/{market}/primary":{"put":{"operationId":"seo-audits.markets.primary","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."},{"name":"market","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo trhu auditu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Udělej z trhu hlavní","description":"Udělá z tohohle trhu ten, jehož čísla vidíš jako první, a vrátí všechny trhy. Trh musí být completed; jinak dostaneš 422 `tenant_seo_audit.market_not_completed`.\n\nPotřebuje jedno z těchto práv: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/seo-audits/{seoAudit}/markets/{market}/country":{"put":{"operationId":"seo-audits.markets.country","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."},{"name":"market","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo trhu auditu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Země jako dvě písmena, třeba CZ."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["countryCode"]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Nastav zemi prvního trhu","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nDá prvnímu trhu auditu zemi, přidá zemi do cílových trhů tvého produktu a znovu ji zkontroluje pomocí AI na pozadí. Odpověď je 202 se všemi trhy.\n\nFunguje jen u prvního trhu, když ještě nemá zemi nebo jeho kontrola selhala. Dostaneš 422, když země už je v jiném trhu, běží jiná kontrola nebo existuje novější analýza webu. Chyba je v `payload.error`.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/seo-audits/{seoAudit}/markets/{market}":{"delete":{"operationId":"seo-audits.markets.destroy","tags":["seo-audits"],"parameters":[{"name":"seoAudit","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo SEO auditu."},{"name":"market","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo trhu auditu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"}}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Odeber trh ze SEO auditu","description":"Odebere trh a vrátí trhy, které zůstanou. Nejde odebrat první trh, hlavní trh ani trh, jehož kontrola ještě běží; pak dostaneš 422 `tenant_seo_audit.market_not_removable`.\n\nPotřebuje jedno z těchto práv: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/social-posts/grid":{"get":{"operationId":"social-posts.grid","tags":["social-posts"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[sourceArticle]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID článků, ze kterých příspěvek vznikl, oddělených čárkou."},{"name":"filter[publishedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vyšlo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[updatedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy se to naposledy změnilo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","state","publishedAt","createdAt","updatedAt","-name","-state","-publishedAt","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexSocialPostData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Vypiš příspěvky v tabulce","description":"Vrátí jednu stránku příspěvků podle filtrů a řazení.\n\nPotřebuje jedno z těchto práv: social-posts.read."}},"/v1/social-posts/options":{"get":{"operationId":"social-posts.options","tags":["social-posts"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionSocialPostData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Vypiš příspěvky pro výběr","description":"Vrátí krátké položky s číslem a názvem každého příspěvku. Hodí se pro výběr v seznamu.\n\nPotřebuje jedno z těchto práv: social-posts.read."}},"/v1/social-posts/board/summary":{"get":{"operationId":"social-posts.board.summary","tags":["social-posts"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[sourceArticle]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID článků, ze kterých příspěvek vznikl, oddělených čárkou."},{"name":"filter[publishedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vyšlo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[updatedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy se to naposledy změnilo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Spočítej příspěvky v každém stavu","description":"Vrátí, kolik příspěvků je v každém sloupci nástěnky. Sloupec je jeden stav.\n\nPotřebuje jedno z těchto práv: social-posts.read."}},"/v1/social-posts/board/{status}":{"get":{"operationId":"social-posts.board.column","tags":["social-posts"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"]},"description":"Sloupec: drafted, approved, rejected, scheduled, published nebo failed."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[platform]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Síť, třeba google nebo facebook. U zájemců jde o reklamu, ze které přišli. Příspěvky berou víc sítí, oddělených čárkou."},{"name":"filter[campaign]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID kampaní, oddělených čárkou."},{"name":"filter[campaignRelation]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"with ukáže řádky v kampani. without ukáže řádky mimo kampaně."},{"name":"filter[sourceArticle]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jedno nebo víc ID článků, ze kterých příspěvek vznikl, oddělených čárkou."},{"name":"filter[publishedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vyšlo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[updatedAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy se to naposledy změnilo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexSocialPostData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Vypiš příspěvky jednoho stavu","description":"Vrátí příspěvky jednoho sloupce nástěnky po stránkách. Pro další stránku pošli `nextCursor` jako `cursor`.\n\nPotřebuje jedno z těchto práv: social-posts.read."}},"/v1/social-posts/overview":{"get":{"operationId":"social-posts.overview","tags":["social-posts"],"parameters":[{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"První den období ve tvaru YYYY-MM-DD. Když ho vynecháš, začne se u nejstarších dat, nejvýš 366 dní zpátky."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date"},"description":"Poslední den období ve tvaru YYYY-MM-DD. Když ho vynecháš, je to dnešek. Období smí mít nejvýš 366 dní."},{"name":"compare","in":"query","schema":{"type":["boolean","null"]},"description":"true, když chceš spočítat i stejně dlouhé období těsně předtím, pro srovnání."},{"name":"filter[platform]","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignSocialNetwork"},{"type":"null"}]},"description":"Počítej jen příspěvky téhle sítě."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SocialPostOverviewData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Ukaž čísla příspěvků za období","description":"Vrátí čísla tvých příspěvků za dny, které vybereš: kolik jsi jich zveřejnil, kolik lidí je vidělo a kolik reagovalo, nejlepší časy pro zveřejnění a nejlepší příspěvky.\n\nKdyž je `ready` false, zeptej se znovu.\n\nPotřebuje jedno z těchto práv: social-posts.read."}},"/v1/social-posts/bulk-state":{"patch":{"operationId":"social-posts.bulk-set-state","tags":["social-posts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"socialPostIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":200,"description":"Čísla příspěvků, nejvýš 200."},"state":{"$ref":"#/components/schemas/SocialPostState","description":"Nový stav pro všechny. Každý stav kromě drafted a rejected potřebuje právo ke zveřejnění na té síti, třeba social-posts.publish.linkedin."}},"required":["socialPostIds","state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"x-fusio-conditional-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"x-fusio-opt-in-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"summary":"Přesuň víc příspěvků do jednoho stavu","description":"Posune každý příspěvek stejně jako změna stavu jednoho příspěvku. Povolené jsou stejné kroky. Platí všechno nebo nic: když jeden příspěvek posunout nejde, neposune se žádný. Když některý z příspěvků patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: social-posts.write. Některé hodnoty potřebují ještě: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram. Tato práva musíš zaškrtnout schválně: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram."}},"/v1/social-posts/{socialPost}/state":{"patch":{"operationId":"social-posts.set-state","tags":["social-posts"],"parameters":[{"name":"socialPost","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo příspěvku."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/SocialPostState","description":"Nový stav. Každý stav kromě drafted a rejected potřebuje právo ke zveřejnění na té síti, třeba social-posts.publish.linkedin."}},"required":["state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"x-fusio-conditional-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"x-fusio-opt-in-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"summary":"Přesuň příspěvek do jiného stavu","description":"Povolené kroky: z drafted na approved nebo rejected, z rejected na approved a z approved na rejected. Naplánovaný nebo zveřejněný příspěvek tady změnit nejde; použij publikace.\n\nPříspěvek na Instagram potřebuje obrázek nebo video, než se schválí. `approved` potřebuje právo ke zveřejnění na té síti. Když příspěvek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nChyby: 403 `insufficient_scope`, 422 když krok není povolený.\n\nPotřebuje jedno z těchto práv: social-posts.write. Některé hodnoty potřebují ještě: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram. Tato práva musíš zaškrtnout schválně: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram."}},"/v1/social-posts/{socialPost}/fields":{"patch":{"operationId":"social-posts.update-fields","tags":["social-posts"],"parameters":[{"name":"socialPost","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo příspěvku."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Název příspěvku, nejvýš 255 znaků."},"content":{"type":"string","maxLength":5000,"description":"Text, který lidé uvidí, nejvýš 5000 znaků."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"summary":"Změň název nebo text příspěvku","description":"Změní jen pole, která pošleš. Stav se nezmění.\n\nTady jde změnit jen příspěvek ve stavu `drafted`. Jiný příspěvek dostane 422. Když příspěvek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\nPotřebuje jedno z těchto práv: social-posts.write."}},"/v1/social-posts":{"post":{"operationId":"social-posts.store","tags":["social-posts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":["integer","null"],"description":"Spojí příspěvky, které vznikly spolu. Když ho vynecháš, Fusio založí novou skupinu."},"userId":{"type":"integer","description":"Člověk, kterému příspěvek patří. Musí to být aktivní člen tvé firmy."},"tenantOAuthPlatformId":{"type":["integer","null"],"description":"Připojený účet, ze kterého příspěvek vyjde, třeba tvoje stránka na LinkedInu."},"socialPlatformId":{"type":["integer","null"],"description":"Síť, pro kterou příspěvek je. Potřebná, když neposíláš tenantOAuthPlatformId."},"languageId":{"type":"integer","description":"Číslo jazyka příspěvku."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém příspěvek je."},"name":{"type":"string","maxLength":255,"description":"Název příspěvku, nejvýš 255 znaků. Vidí ho jen tvůj tým."},"content":{"type":"string","description":"Text, který lidé uvidí. Smí být tak dlouhý, jak síť dovolí. Obrázky smí používat jen soubory, které tvoje firma vidí."},"state":{"$ref":"#/components/schemas/SocialPostState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje právo ke zveřejnění na té síti, třeba social-posts.publish.linkedin."},"fileIds":{"type":"array","items":{"type":"integer"},"description":"Čísla obrázků nebo videí příspěvku. Příspěvek na Instagram potřebuje aspoň jeden, než se schválí."},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Vynech ho. Nový příspěvek zatím žádné části nemá."},"kind":{"$ref":"#/components/schemas/SocialPostCommentKind","description":"thread_item je další příspěvek vlákna, jen na X. comment je komentář pod příspěvkem."},"content":{"type":"string","description":"Text části. Obrázky smí používat jen soubory, které tvoje firma vidí."},"fileIds":{"type":"array","items":{"type":"integer"},"description":"Čísla souborů, které se ukážou s touhle částí. Soubory smí mít jen části na X, nejvýš 4."},"delayValue":{"type":["integer","null"],"minimum":0,"maximum":65535,"description":"Jak dlouho po příspěvku počkat, než tahle část vyjde, 0 až 65535."},"delayUnit":{"anyOf":[{"$ref":"#/components/schemas/SocialPostCommentDelayUnit"},{"type":"null"}],"description":"Jednotka čekání: minutes, hours nebo days. Potřebná s delayValue."}}},"description":"Další části za příspěvkem: další příspěvky vlákna nebo komentáře pod ním."},"campaignId":{"type":["integer","null"],"description":"Kampaň, do které se příspěvek přidá. Klíč pak potřebuje i campaigns.write."}},"required":["userId","languageId","name","content","state"]},"example":{"userId":88,"socialPlatformId":1,"languageId":2,"name":"Tip na jarní servis","content":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a tlak v pneumatikách.","state":"drafted","fileIds":[5120],"comments":[{"kind":"comment","content":"Objednej se u nás: https://www.example.cz/servis","delayValue":10,"delayUnit":"minutes"}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateSocialPostData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Příspěvek na sociální síti úspěšně vytvořen","payload":{"id":902,"batchId":5501,"tenantOAuthPlatform":null,"socialPlatform":{"id":1,"name":"X","slug":"x"},"publication":null,"campaign":null,"xSocialPost":null,"instagramSocialPost":null,"facebookSocialPost":null,"linkedInSocialPost":null,"languageId":2,"topicId":null,"tenantId":412,"tenantSequence":44,"userId":88,"name":"Tip na jarní servis","content":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a tlak v pneumatikách.","state":"drafted","files":[{"id":5120,"name":"kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě","slug":"kolo-v-lese","extension":"jpg","mimeType":"image/jpeg","size":348211,"width":1600,"height":900,"ratio":1.78,"path":"tenants/412/files/kolo-v-lese.jpg","url":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","hash":"9f2c4e1a7b5d3c8e","isAiGenerated":false,"isImageEdited":false,"isCroppable":true,"createdAt":"2026-11-03T08:30:00Z","usageCount":2,"isInUse":true,"canDelete":false}],"comments":[{"id":3301,"socialPostId":902,"parentCommentId":null,"tenantId":412,"userId":88,"content":"Objednej se u nás: https://www.example.cz/servis","commentOrder":0,"kind":"comment","delayValue":10,"delayUnit":"minutes","state":"drafted","externalId":null,"rejectReason":null,"files":[],"scheduledAt":null,"publishedAt":null,"updatedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null}],"updatedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null,"blueprint":null,"isAwaitingArticle":false}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"x-fusio-conditional-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"x-fusio-opt-in-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"summary":"Vytvoř příspěvek","description":"Vytvoří příspěvek pro jednu síť. Účet, ze kterého vyjde, vyber přes `tenantOAuthPlatformId`, nebo jen síť přes `socialPlatformId`. Když pošleš `campaignId`, příspěvek se přidá do té kampaně.\n\nStav jiný než `drafted` nebo `rejected` potřebuje právo ke zveřejnění na té síti.\n\n> [!WARNING]\n> Příspěvek ve stavu `published` může hned vyjít na síti, kde ho uvidí každý.\n\nChyby: 403 `insufficient_scope` bez práva ke zveřejnění, 403 s `campaignId` bez `campaigns.write`, 422 když je pole špatně, text je na tu síť moc dlouhý nebo příspěvek na Instagram nemá obrázek.\n\nPotřebuje jedno z těchto práv: social-posts.write. Některé hodnoty potřebují ještě: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram. Tato práva musíš zaškrtnout schválně: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram."}},"/v1/social-posts/{socialPost}":{"get":{"operationId":"social-posts.show","tags":["social-posts"],"parameters":[{"name":"socialPost","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo příspěvku."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateSocialPostData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Příspěvek na sociální síti 902 úspěšně načten","payload":{"id":902,"batchId":5501,"tenantOAuthPlatform":null,"socialPlatform":{"id":1,"name":"X","slug":"x"},"publication":null,"campaign":null,"xSocialPost":null,"instagramSocialPost":null,"facebookSocialPost":null,"linkedInSocialPost":null,"languageId":2,"topicId":null,"tenantId":412,"tenantSequence":44,"userId":88,"name":"Tip na jarní servis","content":"Než vyrazíš na první jarní vyjížďku, zkontroluj brzdy a tlak v pneumatikách.","state":"drafted","files":[{"id":5120,"name":"kolo-v-lese.jpg","alt":"Horské kolo na lesní cestě","slug":"kolo-v-lese","extension":"jpg","mimeType":"image/jpeg","size":348211,"width":1600,"height":900,"ratio":1.78,"path":"tenants/412/files/kolo-v-lese.jpg","url":"https://cdn.example.cz/fusio/files/kolo-v-lese.jpg","hash":"9f2c4e1a7b5d3c8e","isAiGenerated":false,"isImageEdited":false,"isCroppable":true,"createdAt":"2026-11-03T08:30:00Z","usageCount":2,"isInUse":true,"canDelete":false}],"comments":[{"id":3301,"socialPostId":902,"parentCommentId":null,"tenantId":412,"userId":88,"content":"Objednej se u nás: https://www.example.cz/servis","commentOrder":0,"kind":"comment","delayValue":10,"delayUnit":"minutes","state":"drafted","externalId":null,"rejectReason":null,"files":[],"scheduledAt":null,"publishedAt":null,"updatedAt":"2026-11-03T08:30:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null}],"updatedAt":"2026-11-12T13:05:00Z","createdAt":"2026-11-03T08:30:00Z","deletedAt":null,"blueprint":null,"sourceArticle":null,"isAwaitingArticle":false}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.read"]}],"summary":"Ukaž jeden příspěvek","description":"Vrátí příspěvek s textem, soubory, účtem a částmi, které za ním následují.\n\nPotřebuje jedno z těchto práv: social-posts.read."},"put":{"operationId":"social-posts.update","tags":["social-posts"],"parameters":[{"name":"socialPost","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo příspěvku."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"integer","description":"Skupina příspěvků, do které příspěvek patří. Pošli hodnotu, kterou jsi dostal."},"userId":{"type":"integer","description":"Člověk, kterému příspěvek patří. Musí to být aktivní člen tvé firmy."},"tenantOAuthPlatformId":{"type":["integer","null"],"description":"Připojený účet, ze kterého příspěvek vyjde, třeba tvoje stránka na LinkedInu."},"socialPlatformId":{"type":["integer","null"],"description":"Síť, pro kterou příspěvek je. Potřebná, když neposíláš tenantOAuthPlatformId."},"languageId":{"type":"integer","description":"Číslo jazyka příspěvku."},"topicId":{"type":["integer","null"],"description":"Číslo tématu, o kterém příspěvek je."},"name":{"type":"string","maxLength":255,"description":"Název příspěvku, nejvýš 255 znaků. Vidí ho jen tvůj tým."},"content":{"type":"string","description":"Text, který lidé uvidí. Smí být tak dlouhý, jak síť dovolí. Obrázky smí používat jen soubory, které tvoje firma vidí."},"state":{"$ref":"#/components/schemas/SocialPostState","description":"drafted, approved, rejected, scheduled, published nebo failed. Každý stav kromě drafted a rejected potřebuje právo ke zveřejnění na té síti, třeba social-posts.publish.linkedin."},"fileIds":{"type":"array","items":{"type":"integer"},"description":"Čísla obrázků nebo videí příspěvku. Příspěvek na Instagram potřebuje aspoň jeden, než se schválí."},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo části, kterou necháváš. U nové části ho vynech."},"kind":{"$ref":"#/components/schemas/SocialPostCommentKind","description":"thread_item je další příspěvek vlákna, jen na X. comment je komentář pod příspěvkem. Je potřeba v každé části."},"content":{"type":"string","description":"Text části. Obrázky smí používat jen soubory, které tvoje firma vidí."},"fileIds":{"type":"array","items":{"type":"integer"},"description":"Čísla souborů, které se ukážou s touhle částí. Soubory smí mít jen části na X, nejvýš 4."},"delayValue":{"type":["integer","null"],"minimum":0,"maximum":65535,"description":"Jak dlouho po příspěvku počkat, než tahle část vyjde, 0 až 65535. Pošli ho v každé části; null znamená bez čekání."},"delayUnit":{"anyOf":[{"$ref":"#/components/schemas/SocialPostCommentDelayUnit"},{"type":"null"}],"description":"Jednotka čekání: minutes, hours nebo days. Pošli ji v každé části; je potřeba, když delayValue není null."}},"required":["kind","delayValue","delayUnit"]},"description":"Další části za příspěvkem: další příspěvky vlákna nebo komentáře pod ním. Seznam nahradí ten starý."},"id":{"type":"integer","description":"Znovu číslo příspěvku. Musí být stejné jako v adrese."}},"required":["batchId","userId","languageId","name","content","state","id"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateSocialPostData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"x-fusio-conditional-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"x-fusio-opt-in-scopes":["social-posts.publish.x","social-posts.publish.facebook","social-posts.publish.linkedin","social-posts.publish.instagram"],"summary":"Změň celý příspěvek","description":"Nahradí příspěvek. Pošli všechna pole, ne jen změněná. `comments` nahradí části, které za příspěvkem následují.\n\nZměna příspěvku, který není `drafted` ani `rejected`, potřebuje právo ke zveřejnění na té síti, stejně jako přesun do takového stavu. Když příspěvek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\n> [!WARNING]\n> Změna naplánovaného příspěvku změní, co vyjde na síti.\n\nChyby: 403 `insufficient_scope`, 422 když je pole špatně.\n\nPotřebuje jedno z těchto práv: social-posts.write. Některé hodnoty potřebují ještě: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram. Tato práva musíš zaškrtnout schválně: social-posts.publish.x, social-posts.publish.facebook, social-posts.publish.linkedin, social-posts.publish.instagram."},"delete":{"operationId":"social-posts.destroy","tags":["social-posts"],"parameters":[{"name":"socialPost","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo příspěvku."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["social-posts.write"]}],"summary":"Smaž příspěvek","description":"Přesune příspěvek do koše a odstraní jeho publikaci. Když příspěvek patří do kampaně, klíč potřebuje i `campaigns.write`.\n\n> [!WARNING]\n> Příspěvek, který už je na Facebooku, se smaže i na Facebooku. Když to Facebook odmítne, smaže se jen ve Fusiu.\n\nPotřebuje jedno z těchto práv: social-posts.write."}},"/v1/strategies/grid":{"get":{"operationId":"strategies.grid","tags":["strategies"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[category]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh plánu. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[phase]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok plánu. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[implementationType]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak se plán provede. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[stage]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Krok, ve kterém to je. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[priorityScore]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Jak je to důležité. Dvě čísla jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[createdAt]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Kdy to vzniklo. Jedno datum (RRRR-MM-DD), nebo dvě jako od,do. Jednu stranu můžeš nechat prázdnou."},{"name":"filter[ids]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Až 100 ID, oddělených čárkou."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","category","phase","implementationType","stage","priorityScore","createdAt","-name","-category","-phase","-implementationType","-stage","-priorityScore","-createdAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexTenantStrategyData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Vypiš strategie v tabulce","description":"Vrátí tvoje strategie po stránkách, připravené pro tabulku. Použij `filter`, `sort`, `page` a `perPage`, jak říká tvar seznamu.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/strategies":{"post":{"operationId":"strategies.store","tags":["strategies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název strategie, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Vynech ho pro hlavní produkt."},"ideaSummary":{"type":"string","maxLength":5000,"description":"O čem nápad je. Nejvýš 5000 znaků."},"category":{"$ref":"#/components/schemas/TenantStrategyCategory","description":"Oblast: content, social, email, paid_ads, web_seo, conversion nebo growth."},"whyItFits":{"type":"string","maxLength":5000,"description":"Proč se hodí k tvému podnikání. Nejvýš 5000 znaků."},"expectedOutcome":{"type":"string","maxLength":5000,"description":"Co od toho čekáš. Nejvýš 5000 znaků."},"stage":{"$ref":"#/components/schemas/TenantStrategyStage","description":"Pro jakou fázi tvého podnikání: pre_launch, early, growth nebo scale."},"budgetLevel":{"$ref":"#/components/schemas/TenantStrategyBudgetLevel","description":"Kolik peněz potřebuje: free, low, medium nebo high."},"timeline":{"$ref":"#/components/schemas/TenantStrategyTimeline","description":"Kdy přinese výsledky: quick_wins, medium_term nebo long_term."},"priorityScore":{"type":["integer","null"],"minimum":0,"maximum":100,"description":"Jak je důležitá, od 0 do 100."},"status":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyStatus"},{"type":"null"}],"description":"Kde s ní jsi: proposed, planned, in_progress, done nebo archived."},"sourceIdeaNumber":{"type":["integer","null"],"minimum":0,"description":"Číslo nápadu v seznamu, ze kterého pochází, 0 nebo víc."},"sourceIdeaSlug":{"type":["string","null"],"maxLength":255,"description":"Krátký název nápadu, ze kterého pochází, nejvýš 255 znaků."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Vynech ho, když to píšeš sám."},"implementationType":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyImplementationType"},{"type":"null"}],"description":"Jak se udělá: campaign_implementable (Fusio ji umí spustit jako kampaň), advisory_only (rada) nebo setup_task (jednorázové nastavení)."},"phase":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyPhase"},{"type":"null"}],"description":"Krok cesty zákazníka: awareness, acquisition, nurture, conversion nebo retention."},"integrations":{"type":["array","null"],"items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/StrategyIntegrationKind","description":"Druh: article, social, email, ads, seo, website, landing_page, lead_form, tracking nebo crm_scoring. Je potřeba v každé položce."},"platforms":{"type":["array","null"],"items":{"type":"string"},"description":"Platformy: pro social linkedin, meta, instagram nebo x; pro ads linkedin, meta nebo x. Jiné druhy žádné nemají."},"leadTemperature":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadStage"},"description":"Pro které leady je: cold, warm, qualified, client nebo lost."},"formatHint":{"type":["string","null"],"description":"Formát. article: how_to, listicle, comparison, deep_dive nebo case_study. social: single_post, thread, carousel, reel nebo story. email: broadcast, sequence, newsletter nebo nurture. ads: search_ad, display, sponsored_post nebo retargeting. landing_page: lead_capture, sales_page, comparison nebo waitlist. lead_form: inline, popup nebo gated_content. Jiné druhy žádný nemají."},"cadenceHint":{"type":["string","null"],"description":"Jak často: daily, weekly, twice_weekly, monthly nebo pravidlo opakování jako FREQ=WEEKLY;BYDAY=MO."},"enabled":{"type":"boolean","description":"true, když je tahle část zapnutá. Je potřeba v každé položce."}}},"description":"Jaké druhy práce strategie používá."},"leadTemperature":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadStage"},"description":"Pro které leady strategie je: cold, warm, qualified, client nebo lost."},"askRatio":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Kolik obsahu o něco žádá, od 0 do 1. 0.2 znamená jeden kus z pěti."},"sources":{"type":["object","null"],"properties":{"sourceType":{"type":"string","enum":["url_list","brief","topic_ref"],"description":"url_list (webové stránky), brief (úhly, které napíšeš) nebo topic_ref (téma). Je potřeba, když posíláš sources."},"urls":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":255},"maxItems":100,"description":"Webové adresy, nejvýš 100, každá nejvýš 255 znaků."},"angles":{"type":["array","null"],"items":{"type":"string","maxLength":5000},"maxItems":15,"description":"Úhly, o kterých psát, nejvýš 15, každý nejvýš 5000 znaků."},"topicId":{"type":["integer","null"],"description":"Číslo tématu."},"includeKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":255},"description":"Slova, která má obsah mít, každé nejvýš 255 znaků."},"excludeKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":255},"description":"Slova, která obsah mít nesmí, každé nejvýš 255 znaků."}},"description":"Odkud obsah bere nápady."},"suggestedCtas":{"type":["array","null"],"items":{"type":"object","properties":{"label":{"type":"string","maxLength":255,"description":"Text výzvy, třeba Objednej ukázku. Nejvýš 255 znaků. Je potřeba v každé položce."},"description":{"type":["string","null"],"maxLength":5000,"description":"Víc o ní. Nejvýš 5000 znaků."}}},"maxItems":5,"description":"Výzvy k akci, nejvýš 5."},"implementationSteps":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"integer","minimum":1,"description":"Číslo kroku, 1 nebo víc. Každý krok má své číslo."},"description":{"type":["string","null"],"maxLength":1000,"description":"Co udělat. Nejvýš 1000 znaků."}},"required":["step"]},"maxItems":15,"uniqueItems":true,"description":"Kroky, jak ji udělat, nejvýš 15."},"resourcesNeeded":{"type":"object","properties":{"time":{"type":["string","null"],"maxLength":255,"description":"Kolik času. Nejvýš 255 znaků."},"budget":{"type":["string","null"],"maxLength":255,"description":"Kolik peněz. Nejvýš 255 znaků."},"skills":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":15,"description":"Potřebné dovednosti, nejvýš 15, každá nejvýš 255 znaků."}},"description":"Co to vyžaduje."},"kpiTargets":{"type":["array","null"],"items":{},"maxItems":10,"description":"Cíle jako čísla, nejvýš 10: objekt, kde každý klíč je název cíle (nejvýš 120 znaků) a každá hodnota je číslo, třeba {\"leads\": 40}."},"prerequisites":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":15,"description":"Co musí být hotové předem, nejvýš 15, každá položka nejvýš 255 znaků."},"riskLevel":{"type":["string","null"],"maxLength":64,"description":"Jak je riskantní, jedním slovem, nejvýš 64 znaků."},"iceImpact":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak velký je dopad, od 1 do 10."},"iceConfidence":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak moc si jsi jistý, že to funguje, od 1 do 10."},"iceEase":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak je to snadné, od 1 do 10."},"targetedPersonaIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla profilů zákazníků, pro které je, nejvýš 20, každé jednou."},"targetedCompetitorIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla konkurentů, proti kterým je, nejvýš 20, každé jednou."}},"required":["name","ideaSummary","category","whyItFits","expectedOutcome","stage","budgetLevel","timeline"]},"example":{"name":"Jarní servisní kampaň","ideaSummary":"Připomenout lidem servis kola před sezónou e-mailem a příspěvky.","category":"email","whyItFits":"Na jaře roste zájem o servis a máme seznam zákazníků z loňska.","expectedOutcome":"O 30 % víc objednávek servisu v březnu.","stage":"growth","budgetLevel":"low","timeline":"quick_wins","priorityScore":80,"status":"planned","implementationType":"campaign_implementable","phase":"retention"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantStrategyData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Strategie úspěšně vytvořena","payload":{"id":145,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Jarní servisní kampaň","ideaSummary":"Připomenout lidem servis kola před sezónou e-mailem a příspěvky.","category":"email","whyItFits":"Na jaře roste zájem o servis a máme seznam zákazníků z loňska.","expectedOutcome":"O 30 % víc objednávek servisu v březnu.","stage":"growth","budgetLevel":"low","timeline":"quick_wins","status":"planned","priorityScore":80,"sourceIdeaNumber":null,"sourceIdeaSlug":null,"targetedPersonaIds":[],"targetedCompetitorIds":[],"implementationSteps":null,"resourcesNeeded":null,"implementationType":"campaign_implementable","phase":"retention","integrations":null,"leadTemperature":[],"askRatio":null,"sources":null,"suggestedCtas":null,"kpiTargets":null,"prerequisites":[],"riskLevel":null,"iceImpact":null,"iceConfidence":null,"iceEase":null,"effectiveStatus":"planned","linkedCampaignsCount":0,"linkedCampaigns":[],"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Vytvoř strategii","description":"Zapíše marketingovou strategii. Potřebuješ název, nápad, oblast, proč se hodí, očekávaný výsledek, fázi, rozpočet a časový rámec.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/strategies/{strategy}":{"get":{"operationId":"strategies.show","tags":["strategies"],"parameters":[{"name":"strategy","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo strategie."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantStrategyData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Strategie úspěšně načtena","payload":{"id":145,"tenantId":412,"tenantProductId":null,"derivedFromAnalysisId":null,"createdBy":88,"name":"Jarní servisní kampaň","ideaSummary":"Připomenout lidem servis kola před sezónou e-mailem a příspěvky.","category":"email","whyItFits":"Na jaře roste zájem o servis a máme seznam zákazníků z loňska.","expectedOutcome":"O 30 % víc objednávek servisu v březnu.","stage":"growth","budgetLevel":"low","timeline":"quick_wins","status":"planned","priorityScore":80,"sourceIdeaNumber":null,"sourceIdeaSlug":null,"targetedPersonaIds":[],"targetedCompetitorIds":[],"implementationSteps":null,"resourcesNeeded":null,"implementationType":"campaign_implementable","phase":"retention","integrations":null,"leadTemperature":[],"askRatio":null,"sources":null,"suggestedCtas":null,"kpiTargets":null,"prerequisites":[],"riskLevel":null,"iceImpact":null,"iceConfidence":null,"iceEase":null,"effectiveStatus":"planned","linkedCampaignsCount":0,"linkedCampaigns":[],"analyzedAt":null,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž strategii","description":"Vrátí jednu strategii i s jejími kroky, cíli a částmi.\n\nPotřebuje jedno z těchto práv: intelligence.read."},"put":{"operationId":"strategies.update","tags":["strategies"],"parameters":[{"name":"strategy","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo strategie."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Název strategie, od 1 do 255 znaků."},"tenantProductId":{"type":["integer","null"],"description":"Číslo tvého produktu, ke kterému to patří. Pošli null pro hlavní produkt. Když ho vynecháš, zůstane."},"ideaSummary":{"type":"string","maxLength":5000,"description":"O čem nápad je. Nejvýš 5000 znaků."},"category":{"$ref":"#/components/schemas/TenantStrategyCategory","description":"Oblast: content, social, email, paid_ads, web_seo, conversion nebo growth."},"whyItFits":{"type":"string","maxLength":5000,"description":"Proč se hodí k tvému podnikání. Nejvýš 5000 znaků."},"expectedOutcome":{"type":"string","maxLength":5000,"description":"Co od toho čekáš. Nejvýš 5000 znaků."},"stage":{"$ref":"#/components/schemas/TenantStrategyStage","description":"Pro jakou fázi tvého podnikání: pre_launch, early, growth nebo scale."},"budgetLevel":{"$ref":"#/components/schemas/TenantStrategyBudgetLevel","description":"Kolik peněz potřebuje: free, low, medium nebo high."},"timeline":{"$ref":"#/components/schemas/TenantStrategyTimeline","description":"Kdy přinese výsledky: quick_wins, medium_term nebo long_term."},"priorityScore":{"type":["integer","null"],"minimum":0,"maximum":100,"description":"Jak je důležitá, od 0 do 100. Když ho vynecháš, zůstane."},"status":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyStatus"},{"type":"null"}],"description":"Kde s ní jsi: proposed, planned, in_progress, done nebo archived. Když ho vynecháš, zůstane."},"sourceIdeaNumber":{"type":["integer","null"],"minimum":0,"description":"Číslo nápadu v seznamu, ze kterého pochází, 0 nebo víc. Když ho vynecháš, zůstane."},"sourceIdeaSlug":{"type":["string","null"],"maxLength":255,"description":"Krátký název nápadu, ze kterého pochází, nejvýš 255 znaků. Když ho vynecháš, zůstane."},"derivedFromAnalysisId":{"type":["integer","null"],"description":"Číslo analýzy webu, ze které to vzniklo. Když ho vynecháš, zůstane."},"implementationType":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyImplementationType"},{"type":"null"}],"description":"Jak se udělá: campaign_implementable (Fusio ji umí spustit jako kampaň), advisory_only (rada) nebo setup_task (jednorázové nastavení). Když ho vynecháš, zůstane."},"phase":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyPhase"},{"type":"null"}],"description":"Krok cesty zákazníka: awareness, acquisition, nurture, conversion nebo retention. Když ho vynecháš, zůstane."},"integrations":{"type":["array","null"],"items":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/StrategyIntegrationKind","description":"Druh: article, social, email, ads, seo, website, landing_page, lead_form, tracking nebo crm_scoring. Je potřeba v každé položce."},"platforms":{"type":["array","null"],"items":{"type":"string"},"description":"Platformy: pro social linkedin, meta, instagram nebo x; pro ads linkedin, meta nebo x. Jiné druhy žádné nemají."},"leadTemperature":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadStage"},"description":"Pro které leady je: cold, warm, qualified, client nebo lost."},"formatHint":{"type":["string","null"],"description":"Formát. article: how_to, listicle, comparison, deep_dive nebo case_study. social: single_post, thread, carousel, reel nebo story. email: broadcast, sequence, newsletter nebo nurture. ads: search_ad, display, sponsored_post nebo retargeting. landing_page: lead_capture, sales_page, comparison nebo waitlist. lead_form: inline, popup nebo gated_content. Jiné druhy žádný nemají."},"cadenceHint":{"type":["string","null"],"description":"Jak často: daily, weekly, twice_weekly, monthly nebo pravidlo opakování jako FREQ=WEEKLY;BYDAY=MO."},"enabled":{"type":"boolean","description":"true, když je tahle část zapnutá. Je potřeba v každé položce."}}},"description":"Jaké druhy práce strategie používá. Když ho vynecháš, zůstane."},"leadTemperature":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadStage"},"description":"Pro které leady strategie je: cold, warm, qualified, client nebo lost. Když ho vynecháš, zůstane."},"askRatio":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Kolik obsahu o něco žádá, od 0 do 1. 0.2 znamená jeden kus z pěti. Když ho vynecháš, zůstane."},"sources":{"type":["object","null"],"properties":{"sourceType":{"type":"string","enum":["url_list","brief","topic_ref"],"description":"url_list (webové stránky), brief (úhly, které napíšeš) nebo topic_ref (téma). Je potřeba, když posíláš sources."},"urls":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":255},"maxItems":100,"description":"Webové adresy, nejvýš 100, každá nejvýš 255 znaků."},"angles":{"type":["array","null"],"items":{"type":"string","maxLength":5000},"maxItems":15,"description":"Úhly, o kterých psát, nejvýš 15, každý nejvýš 5000 znaků."},"topicId":{"type":["integer","null"],"description":"Číslo tématu."},"includeKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":255},"description":"Slova, která má obsah mít, každé nejvýš 255 znaků."},"excludeKeywords":{"type":["array","null"],"items":{"type":"string","maxLength":255},"description":"Slova, která obsah mít nesmí, každé nejvýš 255 znaků."}},"description":"Odkud obsah bere nápady. Když ho vynecháš, zůstane."},"suggestedCtas":{"type":["array","null"],"items":{"type":"object","properties":{"label":{"type":"string","maxLength":255,"description":"Text výzvy, třeba Objednej ukázku. Nejvýš 255 znaků. Je potřeba v každé položce."},"description":{"type":["string","null"],"maxLength":5000,"description":"Víc o ní. Nejvýš 5000 znaků."}}},"maxItems":5,"description":"Výzvy k akci, nejvýš 5. Když ho vynecháš, zůstane."},"implementationSteps":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"integer","minimum":1,"description":"Číslo kroku, 1 nebo víc. Každý krok má své číslo."},"description":{"type":["string","null"],"maxLength":1000,"description":"Co udělat. Nejvýš 1000 znaků."}},"required":["step"]},"maxItems":15,"uniqueItems":true,"description":"Kroky, jak ji udělat, nejvýš 15. Když ho vynecháš, zůstane."},"resourcesNeeded":{"type":"object","properties":{"time":{"type":["string","null"],"maxLength":255,"description":"Kolik času. Nejvýš 255 znaků."},"budget":{"type":["string","null"],"maxLength":255,"description":"Kolik peněz. Nejvýš 255 znaků."},"skills":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":15,"description":"Potřebné dovednosti, nejvýš 15, každá nejvýš 255 znaků."}},"description":"Co to vyžaduje. Když ho vynecháš, zůstane."},"kpiTargets":{"type":["array","null"],"items":{},"maxItems":10,"description":"Cíle jako čísla, nejvýš 10: objekt, kde každý klíč je název cíle (nejvýš 120 znaků) a každá hodnota je číslo, třeba {\"leads\": 40}. Když ho vynecháš, zůstane."},"prerequisites":{"type":["array","null"],"items":{"type":"string","maxLength":255},"maxItems":15,"description":"Co musí být hotové předem, nejvýš 15, každá položka nejvýš 255 znaků. Když ho vynecháš, zůstane."},"riskLevel":{"type":["string","null"],"maxLength":64,"description":"Jak je riskantní, jedním slovem, nejvýš 64 znaků. Když ho vynecháš, zůstane."},"iceImpact":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak velký je dopad, od 1 do 10. Když ho vynecháš, zůstane."},"iceConfidence":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak moc si jsi jistý, že to funguje, od 1 do 10. Když ho vynecháš, zůstane."},"iceEase":{"type":["integer","null"],"minimum":1,"maximum":10,"description":"Jak je to snadné, od 1 do 10. Když ho vynecháš, zůstane."},"targetedPersonaIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla profilů zákazníků, pro které je, nejvýš 20, každé jednou. Když ho vynecháš, zůstane."},"targetedCompetitorIds":{"type":["array","null"],"items":{"type":"integer"},"maxItems":20,"uniqueItems":true,"description":"Čísla konkurentů, proti kterým je, nejvýš 20, každé jednou. Když ho vynecháš, zůstane."}},"required":["name","ideaSummary","category","whyItFits","expectedOutcome","stage","budgetLevel","timeline"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantStrategyData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Změň strategii","description":"Změní strategii. Vždycky pošli název, nápad, oblast, proč se hodí, očekávaný výsledek, fázi, rozpočet a časový rámec. Ostatní pole, která vynecháš, zůstanou, jak jsou. Seznam, který pošleš, nahradí celý starý seznam.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."},"delete":{"operationId":"strategies.destroy","tags":["strategies"],"parameters":[{"name":"strategy","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo strategie."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Odeber strategii","description":"Odebere strategii.\n\nPotřebuje jedno z těchto práv: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v2/sync/leads":{"post":{"operationId":"sync.v2.leads","tags":["sync"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":255},"description":"Jedinečný klíč dávky, nejvýš 255 znaků. Stejný klíč se stejným tělem vrátí stejný import; stejný klíč s jiným tělem vrátí 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leads":{"type":"array","items":{},"minItems":1,"description":"Leady, nejvýš 2000 v jedné dávce. Každá položka je objekt: name (povinné), id nebo externalId, website, street, city, zip, countryIso, registrationNumber, vatNumber, personType, stage, ownerId, assigneeIds, contacts, customFields, tags a segments."},"initial":{"type":"boolean","description":"true pro první velký import. Pak se neodešlou žádné automatické e-maily, takže emails.send není potřeba."}},"required":["leads"]},"example":{"leads":[{"externalId":"crm-1001","name":"Pekárna U Mlýna s.r.o.","website":"https://www.example.cz","city":"Brno","zip":"60200","countryIso":"CZ","registrationNumber":"87654321","personType":"legal","stage":"warm","contacts":[{"externalId":"crm-c-5001","type":"personal","firstName":"Petr","lastName":"Svoboda","email":"petr.svoboda@example.cz","isPrimary":true}],"tags":["pekarny"]}]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SyncAcceptedOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"importId":9031,"status":"queued","total":1,"links":{"self":"/api/v2/sync/imports/9031","results":"/api/v2/sync/imports/9031/results"}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]}],"x-fusio-conditional-scopes":["emails.send"],"x-fusio-opt-in-scopes":["emails.send"],"summary":"Pošli dávku leadů","description":"Dá leady do fronty a hned odpoví 202. Každou položku Fusio zkontroluje zvlášť později, takže jedna špatná položka nezastaví ostatní. Hlavička `Location` a `links.self` ukazují na import; `Idempotent-Replayed: true` znamená, že jsi tuhle dávku už poslal. Jedinečný klíč každé dávky pošli v hlavičce `Idempotency-Key`, ne v těle; bez hlavičky dostaneš 422.\n\nExistující lead Fusio najde podle `id`, nebo podle `externalId` či jedinečného vlastního pole, jak je to v nastavení synchronizace. `ownerId` a `assigneeIds` jsou čísla členů z tvého CRM. Každý kontakt potřebuje `type` a `id` nebo `externalId`.\n\n> [!WARNING]\n> Dávka, která není `initial`, může spustit automatické sekvence e-mailů. Osobní klíč pak potřebuje `emails.send`.\n\nChyby: 413 `batch_too_large` (víc než 2000 položek nebo 10 MB) a 409 `idempotency_key_reused`. Tyhle dvě odpovědi nemají obálku: mají `message`, `code` a limity nebo `importId`. Tahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: leads.write. Některé hodnoty potřebují ještě: emails.send. Tato práva musíš zaškrtnout schválně: emails.send."}},"/v2/sync/deals":{"post":{"operationId":"sync.v2.deals","tags":["sync"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":255},"description":"Jedinečný klíč dávky, nejvýš 255 znaků. Stejný klíč se stejným tělem vrátí stejný import; stejný klíč s jiným tělem vrátí 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deals":{"type":"array","items":{},"minItems":1,"description":"Obchody, nejvýš 2000 v jedné dávce. Každá položka je objekt: lead (s id nebo externalId), name, stage a expectedValue jsou povinné; dál id nebo externalId, currency, winProbability, expectedCloseDate, closedAt, lostReason, lostReasonNote a ownerId."},"initial":{"type":"boolean","description":"true pro první velký import. Pak se neodešlou žádné automatické e-maily, takže emails.send není potřeba."}},"required":["deals"]},"example":{"deals":[{"externalId":"crm-d-301","lead":{"externalId":"crm-1001"},"name":"Servis firemních kol","stage":"proposal","expectedValue":48000,"currency":"CZK","winProbability":60,"expectedCloseDate":"2026-12-15"}]}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SyncAcceptedOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"importId":9032,"status":"queued","total":1,"links":{"self":"/api/v2/sync/imports/9032","results":"/api/v2/sync/imports/9032/results"}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["deals.write"]}],"x-fusio-conditional-scopes":["emails.send","deals.execute"],"x-fusio-opt-in-scopes":["emails.send","deals.execute"],"summary":"Pošli dávku obchodů","description":"Dá obchody do fronty a hned odpoví 202. Každou položku Fusio zkontroluje zvlášť později. Hlavička `Location` a `links.self` ukazují na import; `Idempotent-Replayed: true` znamená, že jsi tuhle dávku už poslal. Jedinečný klíč každé dávky pošli v hlavičce `Idempotency-Key`, ne v těle; bez hlavičky dostaneš 422.\n\nObchod ve fázi `won` potřebuje u osobního klíče `deals.execute`.\n\n> [!WARNING]\n> Dávka, která není `initial`, může spustit automatické sekvence e-mailů. Osobní klíč pak potřebuje `emails.send`.\n\nChyby: 413 `batch_too_large` (víc než 2000 položek nebo 10 MB) a 409 `idempotency_key_reused`. Tyhle dvě odpovědi nemají obálku: mají `message`, `code` a limity nebo `importId`. Tahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: deals.write. Některé hodnoty potřebují ještě: emails.send, deals.execute. Tato práva musíš zaškrtnout schválně: emails.send, deals.execute."}},"/v2/sync/imports/{syncRun}":{"get":{"operationId":"sync.v2.imports.show","tags":["sync"],"parameters":[{"name":"syncRun","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo importu. Dostaneš ho zpátky, když pošleš dávku."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SyncRunStatusOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Request processed successfully","payload":{"importId":9031,"object":"leads","status":"completed","total":1,"processed":1,"progress":100,"created":1,"updated":0,"unchanged":0,"skipped":0,"error":null,"createdAt":"2026-11-03T08:30:00Z","finishedAt":"2026-11-03T08:30:04Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]},{"fusioToken":["deals.write"]}],"summary":"Ukaž, jak daleko je import","description":"Vrátí stav a počty jednoho importu. Dokud není hotový, má odpověď hlavičku `Retry-After` s počtem sekund, které máš počkat, než se zeptáš znovu. Tahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: leads.write, deals.write."}},"/v2/sync/imports/{syncRun}/results":{"get":{"operationId":"sync.v2.imports.results","tags":["sync"],"parameters":[{"name":"syncRun","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo importu. Dostaneš ho zpátky, když pošleš dávku."},{"name":"result","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/SyncItemResult"},{"type":"null"}]},"description":"Ukaž jen položky s tímhle výsledkem, třeba skipped."},{"name":"cursor","in":"query","schema":{"type":["string","null"]},"description":"Kde začíná další stránka. Vezmi ho z nextCursor."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/SyncItemResultPageOutputData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["leads.write"]},{"fusioToken":["deals.write"]}],"summary":"Vypiš výsledky importu","description":"Vrátí výsledek každé položky, stránku po stránce. `warnings` jsou věci, které Fusio vynechalo, ale položku stejně uložilo, třeba neznámý člen. `errors` říkají, proč se položka přeskočila. Tahle adresa dovolí 120 požadavků za minutu.\n\nPotřebuje jedno z těchto práv: leads.write, deals.write."}},"/v1/tenant-analysis":{"get":{"operationId":"tenant-analysis.show","tags":["tenant-analysis"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"anyOf":[{"$ref":"#/components/schemas/UpdateTenantAnalysisData"},{"type":"null"}]}},"required":["status","message","payload"]},"example":{"status":"success","message":"Analýza organizace úspěšně načtena","payload":{"id":52,"tenantId":412,"url":"https://www.example.cz","batchId":null,"analyzedAt":"2026-11-03T08:30:00Z","websiteLanguageId":1,"industryCategoryId":14,"aiProviderModelId":3,"pagesCrawled":24,"createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-03T08:30:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž analýzu webu","description":"Vrátí tvou nejnovější analýzu webu. Když jsi ji nikdy nespustil, payload je null.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/tenant-analysis/analyze":{"post":{"operationId":"tenant-analysis.analyze","tags":["tenant-analysis"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Webová adresa tvého webu, nejvýš 2048 znaků."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}},"required":["websiteUrl"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateTenantAnalysisData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","intelligence.write"]}],"x-fusio-opt-in-scopes":["intelligence.write"],"summary":"Analyzuj svůj web","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nSpustí čtení tvého webu pomocí AI na pozadí. Odpověď je nová analýza; `analyzedAt` zůstane null, dokud není hotová, takže se později zeptej `tenant-analysis.show`.\n\nAž bude hotová, Fusio vyplní tvůj produkt, hlas značky, konkurenty, zákazníky a nápady na strategie. Když už jedna analýza běží, dostaneš 422.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: intelligence.write. Tato práva musíš zaškrtnout schválně: intelligence.write."}},"/v1/tenant-analysis/reanalyze-seo":{"post":{"operationId":"tenant-analysis.reanalyze-seo","tags":["tenant-analysis"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat."}}},"example":{"maxCredits":120}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/GoogleAdsSearchSeoRefreshOutputData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Analýza webu úspěšně zahájena.","payload":{"operationId":"3f8e2b1a-7c4d-4e9f-8a6b-5d2c1e0f9a7b","type":"seo_google_ads_search_refresh","status":"pending"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["ai.generate","seo.write"]}],"x-fusio-opt-in-scopes":["seo.write"],"summary":"Zkontroluj znovu svoje SEO","description":"> [!WARNING]\n> Tohle utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nSpustí novou kontrolu SEO tvého webu na pozadí a odpoví 202 s úlohou. Sleduj ji přes `google-ads-search-operations.show`.\n\nTvoje doména musí být nejdřív ověřená; jinak dostaneš 422.\n\nTahle adresa dovolí 30 požadavků za minutu, počítaných dohromady s ostatními adresami pro AI generování.\n\nPotřebuje jedno z těchto práv: ai.generate. Potřebuje taky: seo.write. Tato práva musíš zaškrtnout schválně: seo.write."}},"/v1/tenant-intelligence":{"get":{"operationId":"tenant-intelligence.show","tags":["tenant-intelligence"],"parameters":[{"name":"include[]","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligenceSummaryArea"},"uniqueItems":true},"description":"Které části vrátit: brand_voice, product, competitors, customers, strategies, seo, ads_performance a facts. Když ho vynecháš, dostaneš všechny."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/TenantIntelligenceSummaryData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Souhrn znalostí o firmě načten","payload":{"brandVoice":{"id":23,"markdown":"# Přátelský odborník\n\nMluvíme jako zkušený mechanik, který rád poradí."},"product":{"id":5,"markdown":"# Servis a prodej kol\n\nServis kol v Brně, hotový do 48 hodin."},"competitors":{"items":[{"id":77,"name":"Kola Horák","summary":"Velký výběr dětských kol a půjčovna."}],"total":1},"customers":{"items":[{"id":58,"name":"Víkendový cyklista","summary":"Lidé 30–50 let z Brna, jezdí s rodinou na výlety."}],"total":1},"strategies":null,"seo":null,"adsPerformance":null,"facts":{"preferredAiLanguage":{"id":1,"name":"Čeština","slug":"cs"},"websiteLanguage":{"id":1,"name":"Čeština","slug":"cs"},"targetMarkets":{"isGlobal":false,"countryCodes":["CZ","SK"]},"verifiedDomain":"example.cz","imagePresets":[{"id":19,"name":"Fotky z dílny","isPrimary":true}],"socialPlatforms":[{"slug":"facebook","status":"connected"}],"adPlatforms":[{"slug":"google","status":"connected"}]},"unavailable":[{"area":"strategies","reason":"not_requested"},{"area":"seo","reason":"empty"},{"area":"ads_performance","reason":"missing_scope"}]}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["intelligence.read"]}],"summary":"Ukaž všechny znalosti o firmě","description":"Vrátí, co Fusio ví o tvé firmě, napsané jako text, který AI umí přečíst.\n\nČást, kterou nesmíš vidět, je null a je v `unavailable` s důvodem. Část seo potřebuje `seo.read` a část ads potřebuje `ads.read`; bez nich dostaneš `missing_scope`, ne chybu.\n\nPotřebuje jedno z těchto práv: intelligence.read."}},"/v1/topics/grid":{"get":{"operationId":"topics.grid","tags":["topics"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."},{"name":"sort","in":"query","schema":{"type":"string","enum":["name","type","state","lastCrawledAt","createdAt","updatedAt","-name","-type","-state","-lastCrawledAt","-createdAt","-updatedAt"],"default":"-createdAt"},"description":"Pořadí řádků. Mínus na začátku pořadí obrátí."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexTopicData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.read"]}],"summary":"Vypiš témata v tabulce","description":"Vrátí jednu stránku témat podle filtrů a řazení.\n\nPotřebuje jedno z těchto práv: topics.read."}},"/v1/topics/options":{"get":{"operationId":"topics.options","tags":["topics"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"minLength":2,"maxLength":100},"description":"Text, který se hledá v názvu. Aspoň 2 a nejvýš 100 znaků."},{"name":"ids[]","in":"query","schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":100},"description":"Vrať jen tahle čísla, nejvýš 100. Hodí se, když chceš ukázat názvy už vybraných položek."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1,"maximum":10000},"description":"Číslo stránky. První stránka je 1."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptionTopicData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.read"]}],"summary":"Vypiš témata pro výběr","description":"Vrátí krátké položky s číslem a názvem každého tématu.\n\nPotřebuje jedno z těchto práv: topics.read."}},"/v1/topics/board/summary":{"get":{"operationId":"topics.board.summary","tags":["topics"],"parameters":[{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/BoardSummaryData"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.read"]}],"summary":"Spočítej témata v každém stavu","description":"Vrátí, kolik témat je v každém sloupci nástěnky.\n\nPotřebuje jedno z těchto práv: topics.read."}},"/v1/topics/board/{status}":{"get":{"operationId":"topics.board.column","tags":["topics"],"parameters":[{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["drafted","approved","rejected","active","paused"]},"description":"Sloupec: drafted, approved, rejected, active nebo paused."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":512},"description":"Kde začíná další stránka. Vezmi ho z nextCursor předchozí stránky."},{"name":"filter[name]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Část názvu."},{"name":"filter[state]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Stav. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[type]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"Druh. Jedna nebo víc hodnot, oddělených čárkou."},{"name":"filter[assignee]","in":"query","style":"deepObject","schema":{"type":"string"},"explode":true,"description":"ID člena týmu, který to má na starost."},{"name":"perPage","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Kolik řádků má jedna stránka."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GridIndexTopicData"}},"currentPage":{"type":"integer"},"perPage":{"type":"integer"},"lastPage":{"type":["integer","null"]},"total":{"type":["integer","null"]},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]},"nextPageUrl":{"type":["string","null"]},"previousPageUrl":{"type":["string","null"]},"hasMorePages":{"type":"boolean"},"nextCursor":{"type":["string","null"]}},"required":["data","currentPage","perPage","lastPage","total","from","to","nextPageUrl","previousPageUrl","hasMorePages","nextCursor"]}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.read"]}],"summary":"Vypiš témata jednoho sloupce nástěnky","description":"Vrátí témata v jednom stavu, stránku po stránce. Pošli `nextCursor` zpátky jako `cursor` a dostaneš další stránku.\n\nPotřebuje jedno z těchto práv: topics.read."}},"/v1/topics/{topic}/state":{"patch":{"operationId":"topics.set-state","tags":["topics"],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tématu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/TopicState","description":"Nový stav."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat, když změna spustí hledání na webu."}},"required":["state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Přesuň téma do jiného stavu","description":"> [!WARNING]\n> Tohle může utratit AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPovolené kroky: z drafted na approved nebo rejected, z approved na rejected nebo active, z rejected na approved, z active na paused a z paused na active. Na jiné kroky dostaneš 422 se zprávou. Přesun na active spustí hledání na webu: u news pokaždé, u evergreen poprvé. Kredity utrácí jen to hledání. Klíč bez `maxCredits` dostane 422 u `maxCredits` a klíč, který vyčerpal svůj měsíční strop kreditů, dostane 422 `monthly_credit_limit_reached`.\n\nPotřebuje jedno z těchto práv: topics.write."}},"/v1/topics/bulk-state":{"patch":{"operationId":"topics.bulk-set-state","tags":["topics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topicIds":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":200,"description":"Čísla témat, nejvýš 200."},"state":{"$ref":"#/components/schemas/TopicState","description":"Nový stav pro všechna."},"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat, když změna spustí hledání na webu."}},"required":["topicIds","state"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Přesuň víc témat do jednoho stavu","description":"> [!WARNING]\n> Tohle může utratit AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nPosune každé téma stejně jako změna stavu jednoho tématu. Platí všechno nebo nic: když jedno téma posunout nejde, neposune se žádné a dostaneš 422 s jeho zprávou. Když změna spustí hledání na webu, `maxCredits` musí pokrýt všechna dohromady. Klíč bez `maxCredits` dostane 422 u `maxCredits` a klíč, který vyčerpal svůj měsíční strop kreditů, dostane 422 `monthly_credit_limit_reached`.\n\nKdyž smíš měnit jen témata přiřazená tobě, Fusio ostatní přeskočí.\n\nPotřebuje jedno z těchto práv: topics.write."}},"/v1/topics/{topic}/re-crawl":{"post":{"operationId":"topics.re-crawl","tags":["topics"],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tématu."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"Kolik kreditů smí tenhle požadavek nejvýš stát, od 1 do 1000000. Klíč ho musí poslat, když se hledání spustí."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Hledej k tématu na webu znovu","description":"> [!WARNING]\n> Tohle může utratit AI kredity tvé firmy. Klíč musí poslat `maxCredits`: kolik to smí nejvýš stát. Kdyby práce stála víc, nic se nestane a dostaneš 422 `max_credits_below_estimate` s `estimatedCredits`, tedy cenou, kterou by měla.\n\nHned spustí nové hledání na webu k tématu. Nic se nestane, když téma není aktivní nebo hledání už běží. Hledání utrácí kredity u news pokaždé a u evergreen poprvé. Klíč bez `maxCredits` dostane 422 u `maxCredits` a klíč, který vyčerpal svůj měsíční strop kreditů, dostane 422 `monthly_credit_limit_reached`.\n\nPotřebuje jedno z těchto práv: topics.write."}},"/v1/topics":{"post":{"operationId":"topics.store","tags":["topics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":["integer","null"],"description":"Spojí témata, která vznikla spolu. Můžeš ho vynechat."},"userId":{"type":"integer","description":"Člověk, kterému téma patří."},"name":{"type":"string","description":"Název tématu."},"query":{"type":["string","null"],"description":"Slova, která Fusio hledá na webu."},"frequency":{"anyOf":[{"$ref":"#/components/schemas/TopicFrequency"},{"type":"null"}],"description":"Jak často Fusio hledá novinky: 24h, 7d, 14d, 30d nebo none."},"type":{"anyOf":[{"$ref":"#/components/schemas/TopicType"},{"type":"null"}],"description":"news hledá nové stránky pořád znovu. evergreen hledá jednou."},"timeRange":{"anyOf":[{"$ref":"#/components/schemas/TopicTimeRange"},{"type":"null"}],"description":"Jak staré smí být nalezené stránky: 1d, 3d, 7d, 14d nebo 30d."},"targetLanguageId":{"type":["integer","null"],"description":"Číslo jazyka stránek, které se mají najít."},"targetCountryId":{"type":["integer","null"],"description":"Číslo země stránek, které se mají najít."},"excludeWebsites":{"type":["array","null"],"items":{"type":"string","format":"uri"},"description":"Webové adresy, které má Fusio vynechat."},"includeWebsites":{"type":["array","null"],"items":{"type":"string","format":"uri"},"description":"Když ho vyplníš, Fusio hledá jen na těchhle webech."},"state":{"$ref":"#/components/schemas/TopicState","description":"drafted, approved, rejected, active nebo paused."},"createdAt":{"type":["string","null"],"description":"Kdy téma vzniklo. Můžeš ho vynechat."},"updatedAt":{"type":["string","null"],"description":"Kdy se téma naposledy změnilo. Můžeš ho vynechat."}},"required":["userId","name","state"]},"example":{"userId":88,"name":"Novinky v elektrokolech","query":"elektrokola novinky 2026","type":"news","frequency":"7d","timeRange":"7d","targetLanguageId":2,"targetCountryId":58,"state":"drafted"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Téma úspěšně vytvořeno","payload":null}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Vytvoř téma","description":"Vytvoří téma. Staneš se jedním z lidí, kterým je přiřazené. Odpověď nemá data; nové téma najdeš v seznamu.\n\nPotřebuje jedno z těchto práv: topics.write."}},"/v1/topics/{topic}":{"get":{"operationId":"topics.show","tags":["topics"],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tématu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"$ref":"#/components/schemas/UpdateTopicData"}},"required":["status","message","payload"]},"example":{"status":"success","message":"Téma úspěšně načteno","payload":{"id":214,"tenantId":412,"userId":88,"batchId":5490,"name":"Novinky v elektrokolech","query":"elektrokola novinky 2026","type":"news","frequency":"7d","timeRange":"7d","targetLanguageId":2,"targetCountryId":58,"excludeWebsites":[],"includeWebsites":[],"state":"active","usedBySocialPostId":null,"usedByArticleId":null,"usedByEmailId":null,"lastCrawledAt":"2026-11-12T13:05:00Z","createdAt":"2026-11-03T08:30:00Z","updatedAt":"2026-11-12T13:05:00Z"}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.read"]}],"summary":"Ukaž jedno téma","description":"Vrátí jedno téma s nastavením hledání.\n\nPotřebuje jedno z těchto práv: topics.read."},"put":{"operationId":"topics.update","tags":["topics"],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tématu."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":["integer","null"],"description":"Spojí témata, která vznikla spolu. Můžeš ho vynechat."},"userId":{"type":"integer","description":"Člověk, kterému téma patří."},"name":{"type":"string","description":"Název tématu."},"query":{"type":["string","null"],"description":"Slova, která Fusio hledá na webu."},"frequency":{"anyOf":[{"$ref":"#/components/schemas/TopicFrequency"},{"type":"null"}],"description":"Jak často Fusio hledá novinky: 24h, 7d, 14d, 30d nebo none."},"type":{"anyOf":[{"$ref":"#/components/schemas/TopicType"},{"type":"null"}],"description":"news hledá nové stránky pořád znovu. evergreen hledá jednou."},"timeRange":{"anyOf":[{"$ref":"#/components/schemas/TopicTimeRange"},{"type":"null"}],"description":"Jak staré smí být nalezené stránky: 1d, 3d, 7d, 14d nebo 30d."},"targetLanguageId":{"type":["integer","null"],"description":"Číslo jazyka stránek, které se mají najít."},"targetCountryId":{"type":["integer","null"],"description":"Číslo země stránek, které se mají najít."},"excludeWebsites":{"type":["array","null"],"items":{"type":"string","format":"uri"},"description":"Webové adresy, které má Fusio vynechat."},"includeWebsites":{"type":["array","null"],"items":{"type":"string","format":"uri"},"description":"Když ho vyplníš, Fusio hledá jen na těchhle webech."},"state":{"$ref":"#/components/schemas/TopicState","description":"drafted, approved, rejected, active nebo paused."},"createdAt":{"type":["string","null"],"description":"Kdy téma vzniklo. Můžeš ho vynechat."},"updatedAt":{"type":["string","null"],"description":"Kdy se téma naposledy změnilo. Můžeš ho vynechat."},"id":{"type":"integer","enum":[""],"description":"Číslo tématu. Pošli stejné číslo jako v adrese; s jiným číslem dostaneš 422."}},"required":["userId","name","state","id"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Změň téma","description":"Nahradí téma. Pošli všechna pole, ne jen změněná. Stav se uloží tak, jak ho pošleš, a žádné hledání se nespustí.\n\nPotřebuje jedno z těchto práv: topics.write."},"delete":{"operationId":"topics.destroy","tags":["topics"],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"type":"integer"},"description":"Číslo tématu."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success"},"message":{"type":"string"},"payload":{"type":"null"}},"required":["status","message","payload"]}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"fusioToken":["topics.write"]}],"summary":"Smaž téma","description":"Přesune téma do koše. Fusio k němu přestane hledat.\n\nPotřebuje jedno z těchto práv: topics.write."}}},"components":{"securitySchemes":{"fusioToken":{"type":"http","description":"Klíč dej do hlavičky Authorization, za slovo Bearer.","scheme":"bearer"}},"schemas":{"AbandonedFieldStatus":{"type":"string","enum":["filled","stopped","skipped","notReached"],"title":"AbandonedFieldStatus"},"AdAccountBillingStatus":{"type":"string","enum":["required","pending","approved_held","approved","cancelled"],"title":"AdAccountBillingStatus"},"AdAccountInvitationStatus":{"type":"string","enum":["required","pending","declined","expired","accepted"],"title":"AdAccountInvitationStatus"},"AdAccountPaymentStatus":{"type":"string","enum":["valid","missing","declined"],"title":"AdAccountPaymentStatus"},"AdAccountStatus":{"type":"string","enum":["active","disabled","unsettled","pending_review","closed"],"title":"AdAccountStatus"},"AdAcquisitionData":{"type":"object","properties":{"spend":{"type":"array","items":{"$ref":"#/components/schemas/ConversionValueTotalData"}},"leads":{"type":"integer"},"customers":{"type":"integer"},"lifetimeCustomers":{"type":"integer"},"lifetimeRevenue":{"$ref":"#/components/schemas/CustomerRevenueData"}},"required":["spend","leads","customers","lifetimeCustomers","lifetimeRevenue"],"title":"AdAcquisitionData"},"AdAudienceEstimateOutputData":{"type":"object","properties":{"isAvailable":{"type":"boolean","description":"false, když to síť říct nemohla, třeba když reklama nemá reklamní účet."},"lowerBound":{"type":["integer","null"],"description":"Nejmenší počet lidí, které může reklama zasáhnout, nebo null."},"upperBound":{"type":["integer","null"],"description":"Největší počet lidí, které může reklama zasáhnout, nebo null."}},"required":["isAvailable","lowerBound","upperBound"],"title":"AdAudienceEstimateOutputData"},"AdBriefLandingPagePickData":{"type":"object","properties":{"url":{"type":"string","description":"Adresa stránky."},"title":{"type":"string","description":"Název stránky."},"fitScore":{"type":"integer","description":"Jak dobře stránka sedí, od 0 do 100."},"reason":{"type":"string","description":"Proč ji AI vybrala."}},"required":["url","title","fitScore","reason"],"title":"AdBriefLandingPagePickData"},"AdBudgetType":{"type":"string","enum":["daily","lifetime"],"title":"AdBudgetType"},"AdBulkAction":{"type":"string","enum":["move","duplicate","delete"],"title":"AdBulkAction"},"AdBulkItemStatus":{"type":"string","enum":["succeeded","failed"],"title":"AdBulkItemStatus"},"AdBulkResultData":{"type":"object","properties":{"adId":{"type":"integer","description":"Číslo reklamy."},"status":{"$ref":"#/components/schemas/AdBulkItemStatus","description":"succeeded nebo failed."},"error":{"type":["string","null"],"description":"Proč to selhalo, jako kód třeba invalid_state_transition nebo network_sync_failed, nebo null."}},"required":["adId","status","error"],"title":"AdBulkResultData"},"AdCampaignFunnelData":{"type":"object","properties":{"visits":{"type":"integer"},"browsing":{"type":"integer"},"formViews":{"type":"integer"},"formStarts":{"type":"integer"},"formSubmits":{"type":"integer"},"leads":{"type":["integer","null"]},"reviewed":{"type":["integer","null"]},"qualified":{"type":["integer","null"]},"contacted":{"type":["integer","null"]},"replied":{"type":["integer","null"]},"deals":{"type":["integer","null"]},"offers":{"type":["integer","null"]},"customers":{"type":["integer","null"]},"segments":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignFunnelSegmentData"}},"abandonedFields":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignFunnelFieldData"}},"disqualificationReasons":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignFunnelDisqualificationReasonData"}},"lostReasons":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignFunnelLostReasonData"}},"salespeople":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignFunnelSalespersonData"}}},"required":["visits","browsing","formViews","formStarts","formSubmits","leads","reviewed","qualified","contacted","replied","deals","offers","customers","segments","abandonedFields","disqualificationReasons","lostReasons","salespeople"],"title":"AdCampaignFunnelData"},"AdCampaignFunnelDisqualificationReasonData":{"type":"object","properties":{"reason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}]},"isOpen":{"type":"boolean"},"count":{"type":"integer"}},"required":["reason","isOpen","count"],"title":"AdCampaignFunnelDisqualificationReasonData"},"AdCampaignFunnelFieldData":{"type":"object","properties":{"label":{"type":["string","null"]},"count":{"type":"integer"}},"required":["label","count"],"title":"AdCampaignFunnelFieldData"},"AdCampaignFunnelLostReasonData":{"type":"object","properties":{"reason":{"anyOf":[{"$ref":"#/components/schemas/DealLostReason"},{"type":"null"}]},"count":{"type":"integer"}},"required":["reason","count"],"title":"AdCampaignFunnelLostReasonData"},"AdCampaignFunnelSalespersonData":{"type":"object","properties":{"userId":{"type":"integer"},"name":{"type":"string"},"isRemoved":{"type":"boolean"},"qualified":{"type":"integer"},"contacted":{"type":"integer"},"replied":{"type":"integer"},"customers":{"type":"integer"},"firstContactMinutes":{"type":["integer","null"]}},"required":["userId","name","isRemoved","qualified","contacted","replied","customers","firstContactMinutes"],"title":"AdCampaignFunnelSalespersonData"},"AdCampaignFunnelSegmentData":{"type":"object","properties":{"dimension":{"$ref":"#/components/schemas/AdCampaignFunnelSegmentDimension"},"key":{"type":"string"},"label":{"type":"string"},"isRemoved":{"type":"boolean"},"visits":{"type":"integer"},"browsing":{"type":"integer"},"formViews":{"type":"integer"},"formStarts":{"type":"integer"},"formSubmits":{"type":"integer"},"leads":{"type":["integer","null"]},"reviewed":{"type":["integer","null"]},"qualified":{"type":["integer","null"]},"contacted":{"type":["integer","null"]},"replied":{"type":["integer","null"]},"deals":{"type":["integer","null"]},"offers":{"type":["integer","null"]},"customers":{"type":["integer","null"]}},"required":["dimension","key","label","isRemoved","visits","browsing","formViews","formStarts","formSubmits","leads","reviewed","qualified","contacted","replied","deals","offers","customers"],"title":"AdCampaignFunnelSegmentData"},"AdCampaignFunnelSegmentDimension":{"type":"string","enum":["device","campaign","keyword","ad","landingPage","salesperson"],"title":"AdCampaignFunnelSegmentDimension"},"AdCampaignGenerationOutputData":{"type":"object","properties":{"campaignId":{"type":"integer","description":"Číslo kampaně, kterou AI staví. Je to koncept, který AI plní na pozadí."},"operationId":{"type":"string","description":"Kód úlohy, dlouhý text jako 9d1c6c7e-4f0b-4a51-9a3e-2c1f0b7d5e21. Pošli ho do adresy úloh stejné reklamní platformy, `google-ads-search-operations.show` nebo `meta-ads-operations.show`, a uvidíš, jak úloha pokračuje."}},"required":["campaignId","operationId"],"title":"AdCampaignGenerationOutputData"},"AdCampaignOverviewCampaignOptionData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo kampaně. Pošli ho jako filter[campaignId]."},"name":{"type":"string","description":"Název kampaně."}},"required":["id","name"],"title":"AdCampaignOverviewCampaignOptionData"},"AdCampaignOverviewFusioData":{"type":"object","properties":{"sessions":{"type":"integer","description":"Kolik návštěv přišlo z reklam."},"visitors":{"type":"integer","description":"Kolik různých lidí web navštívilo."},"conversions":{"type":"integer","description":"Kolik cílů návštěvníci splnili, třeba odeslaný formulář."}},"required":["sessions","visitors","conversions"],"title":"AdCampaignOverviewFusioData"},"AdCampaignOverviewSpendData":{"type":"object","properties":{"currencyCode":{"type":"string"},"value":{"type":"number"},"previousValue":{"type":["number","null"]},"series":{"type":"array","items":{}},"previousSeries":{"type":"array","items":{}}},"required":["currencyCode","value","previousValue","series","previousSeries"],"title":"AdCampaignOverviewSpendData"},"AdCampaignPlatform":{"type":"string","enum":["google","facebook","linkedin","x","tiktok","instagram","youtube","bing"],"title":"AdCampaignPlatform"},"AdClickCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"utmSlug":{"type":"string"},"isDeleted":{"type":"boolean"}},"required":["id","name","utmSlug","isDeleted"],"title":"AdClickCampaignData"},"AdClickOutputData":{"type":"object","properties":{"id":{"type":"integer"},"source":{"type":"string"},"platform":{"type":["string","null"]},"clickedAt":{"type":"string"},"utmSource":{"type":["string","null"]},"utmMedium":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"utmTerm":{"type":["string","null"]},"utmContent":{"type":["string","null"]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/AdClickCampaignData"},{"type":"null"}]},"landingPath":{"type":["string","null"]},"hasAdConsent":{"type":"boolean"}},"required":["id","source","platform","clickedAt","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","campaign","landingPath","hasAdConsent"],"title":"AdClickOutputData"},"AdCta":{"type":"string","enum":["apply_now","book_now","download","get_offer","get_quote","learn_more","subscribe","sign_up"],"title":"AdCta"},"AdDailySeriesData":{"type":"object","properties":{"totals":{"$ref":"#/components/schemas/AdMetricTotalsData","description":"Součty za všechny dny."},"days":{"type":"array","items":{"$ref":"#/components/schemas/AdMetricDayData"},"description":"Čísla každého dne."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio naposledy načetlo čísla ze sítě, nebo null."}},"required":["totals","days","lastSyncedAt"],"title":"AdDailySeriesData"},"AdDeploymentChangeSummaryData":{"type":"object","properties":{"rsaGroups":{"type":"integer"},"sitelinks":{"type":"integer"},"callouts":{"type":"integer"},"urls":{"type":"integer"},"keywords":{"type":"integer"},"adGroups":{"type":"integer"},"campaignSettings":{"type":"boolean"},"snippets":{"type":"integer"},"campaignAssets":{"type":"boolean"}},"required":["rsaGroups","sitelinks","callouts","urls","keywords","adGroups","campaignSettings","snippets","campaignAssets"],"title":"AdDeploymentChangeSummaryData"},"AdDeploymentData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo nasazení. Použij ho s cestami ad-deployments."},"name":{"type":"string","description":"Název kampaně v Google Ads."},"mode":{"type":"string","description":"Jak se dostala do Google Ads: manual, api (poslalo ji Fusio) nebo imported."},"status":{"type":"string","description":"Kde kampaň v Google Ads je: draft, exported, validating, publishing, paused, active, failed, reconciliation_required, drifted nebo imported."},"managementState":{"type":"string","description":"managed (Fusio ji smí měnit) nebo read_only (Fusio ji jen čte)."},"market":{"type":"string","description":"Země kampaně, jako dvě písmena."},"language":{"type":"string","description":"Jazyk kampaně, třeba cs."},"currencyCode":{"type":"string","description":"Měna, třeba CZK."},"dailyBudgetAmount":{"type":"string","description":"Kolik smí kampaň utratit za den, jako text třeba \"500.00\"."},"planRevision":{"type":"string","description":"Verze plánu, která se poslala."},"sourceGoogleAdsSearchCampaignId":{"type":["integer","null"],"description":"Číslo kampaně ve Fusiu, ze které vzniklo, nebo null."},"externalCampaignId":{"type":["string","null"],"description":"Číslo kampaně v Google Ads, nebo null, dokud tam není."},"failureReason":{"type":["string","null"],"description":"Proč odeslání selhalo, nebo null."},"servingStatus":{"type":["string","null"],"description":"Co Google Ads říká o zobrazování reklam, nebo null."},"deployedAt":{"type":["string","null"],"description":"Kdy se kampaň dostala do Google Ads, nebo null."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio kampaň naposledy načetlo z Google Ads, nebo null."},"currentPlanRevision":{"type":["string","null"],"description":"Verze plánu ve Fusiu teď. Když se liší od planRevision, něco jsi změnil."},"hasUnsynchronizedChanges":{"type":"boolean","description":"true, když jsi kampaň ve Fusiu změnil a Google Ads to ještě nemá."},"unsynchronizedChangeSummary":{"$ref":"#/components/schemas/AdDeploymentChangeSummaryData","description":"Kolik věcí kterého druhu se změnilo a čeká na odeslání."},"canApplyChanges":{"type":"boolean","description":"true, když můžeš čekající změny poslat přes `ad-deployments.google-ads.apply`."}},"required":["id","name","mode","status","managementState","market","language","currencyCode","dailyBudgetAmount","planRevision","sourceGoogleAdsSearchCampaignId","externalCampaignId","failureReason","servingStatus","deployedAt","lastSyncedAt","currentPlanRevision","hasUnsynchronizedChanges","unsynchronizedChangeSummary","canApplyChanges"],"title":"AdDeploymentData"},"AdDeploymentRemoteStatus":{"type":"string","enum":["enabled","paused"],"title":"AdDeploymentRemoteStatus"},"AdFormat":{"type":"string","enum":["single_image"],"title":"AdFormat"},"AdGenerationDispatchOutputData":{"type":"object","properties":{"runId":{"type":"integer","description":"Číslo úlohy AI. Zeptej se s ním `ai.generation-runs.show`, jak jde."},"action":{"type":"string","description":"Druh úlohy: generate_social_ad."},"status":{"type":"string","description":"queued: úloha čeká na spuštění."}},"required":["runId","action","status"],"title":"AdGenerationDispatchOutputData"},"AdGenerationMode":{"type":"string","enum":["ad","post","variants"],"title":"AdGenerationMode"},"AdImprovementOutputData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo tipu."},"platform":{"type":"string","description":"Reklamní síť."},"type":{"type":"string","description":"Druh tipu: exclude_search_term, budget_lost_impression_share, cost_per_click_above_forecast, low_click_through_rate, high_cost_per_mille, rejected_ad, draft_starting_soon, scheduled_starting_soon, learning_limited, creative_fatigue nebo poor_performing_ad."},"campaignId":{"type":["integer","null"],"description":"Číslo kampaně, nebo null."},"campaignName":{"type":["string","null"],"description":"Název kampaně, nebo null."},"adId":{"type":["integer","null"],"description":"Číslo reklamy, nebo null."},"adName":{"type":["string","null"],"description":"Název reklamy, nebo null."},"adSetId":{"type":["integer","null"],"description":"U tipů pro Meta Ads: číslo sady reklam v tvém plánu. Jinak null."},"searchTerm":{"type":["string","null"],"description":"U exclude_search_term: co lidé hledali. Jinak null."},"clicks":{"type":["integer","null"],"description":"O kolik kliknutí jde, nebo null."},"results":{"type":["string","null"],"description":"U poor_performing_ad: kolik výsledků reklama přinesla. Jinak null."},"amount":{"type":["string","null"],"description":"O kolik peněz jde, nebo null."},"percent":{"type":["string","null"],"description":"O jaký podíl v procentech jde, nebo null."},"currencyCode":{"type":["string","null"],"description":"Měna amount, nebo null."},"eventDate":{"type":["string","null"],"description":"Den, o který jde, nebo null."},"reason":{"type":["string","null"],"description":"Proč Fusio tip dává, nebo null."}},"required":["id","platform","type","campaignId","campaignName","adId","adName","adSetId","searchTerm","clicks","results","amount","percent","currencyCode","eventDate","reason"],"title":"AdImprovementOutputData"},"AdImprovementType":{"type":"string","enum":["exclude_search_term","budget_lost_impression_share","cost_per_click_above_forecast","low_click_through_rate","high_cost_per_mille","rejected_ad","draft_starting_soon","scheduled_starting_soon","learning_limited","creative_fatigue","poor_performing_ad"],"title":"AdImprovementType"},"AdIssueCountsData":{"type":"object","properties":{"google":{"type":"integer","description":"Kolik kampaní Google Ads má problém."},"facebook":{"type":"integer","description":"Kolik Meta kampaní má problém."},"instagram":{"type":"integer","description":"Vždy 0. Meta kampaně se počítají pod facebook."},"linkedin":{"type":"integer","description":"Kolik reklam na LinkedInu má problém."}},"required":["google","facebook","instagram","linkedin"],"title":"AdIssueCountsData"},"AdIssueData":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/AdIssueKind","description":"Co je špatně: rejected, failed, suspended nebo missing_data."},"reason":{"type":["string","null"],"description":"Proč, slovy reklamní sítě, nebo null."},"policyTopics":{"type":"array","items":{"type":"string"},"description":"Pravidla reklamní sítě, která reklama porušila."},"adGroupId":{"type":["integer","null"],"description":"Číslo reklamní sestavy s problémem, nebo null."},"rejectedAdCount":{"type":"integer","description":"Kolik reklam síť zamítla."}},"required":["kind","reason","policyTopics","adGroupId","rejectedAdCount"],"title":"AdIssueData"},"AdIssueKind":{"type":"string","enum":["rejected","failed","suspended","missing_data"],"title":"AdIssueKind"},"AdMetricDayData":{"type":"object","properties":{"date":{"type":"string"},"spend":{"type":"number"},"impressions":{"type":"integer"},"clicks":{"type":"integer"},"conversions":{"type":"number"}},"required":["date","spend","impressions","clicks","conversions"],"title":"AdMetricDayData"},"AdMetricTotalsData":{"type":"object","properties":{"spend":{"type":"number","description":"Kolik se utratilo."},"impressions":{"type":"integer","description":"Kolikrát se reklama ukázala."},"clicks":{"type":"integer","description":"Kolikrát lidé klikli."},"conversions":{"type":"number","description":"Kolik výsledků reklamní síť napočítala."},"currencyCode":{"type":["string","null"],"description":"Měna útraty, třeba CZK, nebo null."}},"required":["spend","impressions","clicks","conversions","currencyCode"],"title":"AdMetricTotalsData"},"AdOverviewData":{"type":"object","properties":{"platform":{"type":"string","description":"Reklamní síť, za kterou čísla jsou."},"currency":{"type":["string","null"],"description":"Měna peněžních čísel, nebo null."},"hasMixedCurrencies":{"type":"boolean","description":"true, když tvoje účty používají víc měn, takže se peněžní součty nesčítají."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio naposledy načetlo čísla ze sítě, nebo null."},"kpis":{"$ref":"#/components/schemas/AdOverviewKpisData","description":"Hlavní čísla: útrata, zobrazení, kliknutí, konverze, leady a obchody, každé i s hodnotou předtím a řadou po dnech."},"funnel":{"$ref":"#/components/schemas/AdOverviewFunnelData","description":"Jak se z kliknutí stali leady a obchody, podle reklam a podle kampaní."},"runningAdCount":{"type":"integer","description":"Kolik reklam teď běží."},"dailyBudgetAmount":{"type":"number","description":"Kolik smí běžící reklamy dohromady utratit za den."},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/SocialAdAccountSummaryData"},"description":"Tvoje reklamní účty na síti."},"ads":{"type":"array","items":{"$ref":"#/components/schemas/SocialAdResultData"},"description":"Čísla každé reklamy."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData","description":"Dny, za které čísla jsou."},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["platform","currency","hasMixedCurrencies","lastSyncedAt","kpis","funnel","runningAdCount","dailyBudgetAmount","accounts","ads","ready","rolledUpAt","range","previousRange","dates"],"title":"AdOverviewData"},"AdOverviewFunnelData":{"type":"object","properties":{"ads":{"type":"array","items":{"$ref":"#/components/schemas/SocialAdLeadSegmentData"}},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/SocialAdLeadSegmentData"}}},"required":["ads","campaigns"],"title":"AdOverviewFunnelData"},"AdOverviewKpisData":{"type":"object","properties":{"spend":{"$ref":"#/components/schemas/OverviewKpiData"},"impressions":{"$ref":"#/components/schemas/OverviewKpiData"},"clicks":{"$ref":"#/components/schemas/OverviewKpiData"},"conversions":{"$ref":"#/components/schemas/OverviewKpiData"},"leads":{"$ref":"#/components/schemas/OverviewKpiData"},"deals":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["spend","impressions","clicks","conversions","leads","deals"],"title":"AdOverviewKpisData"},"AdPendingNetworkChange":{"type":"string","enum":["none","settings","creative"],"title":"AdPendingNetworkChange"},"AdPublicationData":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/PublicationStatus"},"publishAt":{"type":["string","null"]}},"required":["id","status","publishAt"],"title":"AdPublicationData"},"AdState":{"type":"string","enum":["drafted","rejected","approved","published","scheduled","failed"],"title":"AdState"},"AdType":{"type":"string","enum":["post_engagement","website_traffic","lead","search","performance_max","display","video","demand_gen"],"title":"AdType"},"AdsPerformancePlatformData":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/AdCampaignPlatform"},"currencyCode":{"type":["string","null"]},"spend":{"type":"number"},"impressions":{"type":"integer"},"clicks":{"type":"integer"},"conversions":{"type":"number"},"clickThroughRate":{"type":["number","null"]},"costPerConversion":{"type":["number","null"]}},"required":["platform","currencyCode","spend","impressions","clicks","conversions","clickThroughRate","costPerConversion"],"title":"AdsPerformancePlatformData"},"AdsPerformanceRecommendationData":{"type":"object","properties":{"id":{"type":"integer"},"platform":{"$ref":"#/components/schemas/AdCampaignPlatform"},"type":{"$ref":"#/components/schemas/AdImprovementType"},"reason":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","platform","type","reason","createdAt"],"title":"AdsPerformanceRecommendationData"},"AdsPerformanceSnapshotData":{"type":"object","properties":{"periodFrom":{"type":"string"},"periodTo":{"type":"string"},"platforms":{"type":"array","items":{"$ref":"#/components/schemas/AdsPerformancePlatformData"}},"bestAds":{"type":"array","items":{"$ref":"#/components/schemas/AdsPerformanceSubjectData"}},"weakestAds":{"type":"array","items":{"$ref":"#/components/schemas/AdsPerformanceSubjectData"}},"openRecommendations":{"type":"array","items":{"$ref":"#/components/schemas/AdsPerformanceRecommendationData"}},"openRecommendationCount":{"type":"integer","description":"Kolik tipů pro tvoje reklamy na tebe čeká."},"markdown":{"type":"string"}},"required":["periodFrom","periodTo","platforms","bestAds","weakestAds","openRecommendations","openRecommendationCount","markdown"],"title":"AdsPerformanceSnapshotData"},"AdsPerformanceSubjectData":{"type":"object","properties":{"subjectType":{"$ref":"#/components/schemas/AdsPerformanceSubjectType"},"id":{"type":"integer"},"name":{"type":"string"},"platform":{"$ref":"#/components/schemas/AdCampaignPlatform"},"currencyCode":{"type":["string","null"]},"spend":{"type":"number"},"impressions":{"type":"integer"},"clicks":{"type":"integer"},"conversions":{"type":"number"},"clickThroughRate":{"type":"number"}},"required":["subjectType","id","name","platform","currencyCode","spend","impressions","clicks","conversions","clickThroughRate"],"title":"AdsPerformanceSubjectData"},"AdsPerformanceSubjectType":{"type":"string","enum":["ad","google_ads_deployment","meta_ads_deployment"],"title":"AdsPerformanceSubjectType"},"AdsTargetingProfileData":{"type":"object","properties":{"schemaVersion":{"type":"integer"},"canonical":{"$ref":"#/components/schemas/CanonicalAdsTargetingData"},"googleAds":{"$ref":"#/components/schemas/PlatformAdsTargetingData"},"metaAds":{"$ref":"#/components/schemas/PlatformAdsTargetingData"},"linkedInAds":{"$ref":"#/components/schemas/PlatformAdsTargetingData"},"tikTokAds":{"$ref":"#/components/schemas/PlatformAdsTargetingData"}},"required":["schemaVersion","canonical","googleAds","metaAds","linkedInAds","tikTokAds"],"title":"AdsTargetingProfileData"},"AiActionPricesOutputData":{"type":"object","properties":{"prices":{"type":"object","additionalProperties":{"type":"integer"},"description":"Cena v kreditech každé akce AI podle jejího názvu, třeba image-generation (jeden obrázek) nebo campaign-ai-plan (plán celé kampaně)."},"creditBalance":{"type":"number","description":"Kolik AI kreditů má tvá firma teď."}},"required":["prices","creditBalance"],"title":"AiActionPricesOutputData"},"AiAdjustResponseData":{"type":"object","properties":{"toolCalls":{"type":"array","items":{"$ref":"#/components/schemas/AiAdjustToolCallData"}},"summary":{"type":"string"},"appliedCount":{"type":"integer"},"skippedOperations":{}},"required":["toolCalls","summary","appliedCount","skippedOperations"],"title":"AiAdjustResponseData"},"AiAdjustToolCallData":{"type":"object","properties":{"tool":{"type":"string"},"args":{}},"required":["tool","args"],"title":"AiAdjustToolCallData"},"AiCreditEstimateKind":{"type":"string","enum":["google_ad_group","google_texts","social_ad","seo_audit_market","seo_google_ads_search_refresh","worker_instructions","meta_ads_campaign","meta_ads_texts","meta_ads_targets","meta_ads_images","meta_ads_ad_set_ads"],"title":"AiCreditEstimateKind"},"AiCreditEstimateOutputData":{"type":"object","properties":{"minimum":{"type":"integer","description":"Kolik kreditů to obvykle stojí, podle posledních běhů. Aspoň 1 a nikdy nad maximum."},"maximum":{"type":"integer","description":"Kolik kreditů to může stát nejvíc."},"balance":{"type":"number","description":"Kolik AI kreditů má tvá firma teď."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/AiCreditEstimateSourceData"},"description":"Co AI o tvé firmě pro tuhle práci čte."},"parts":{"type":"array","items":{"$ref":"#/components/schemas/AiCreditEstimatePartData"},"description":"Kroky práce s jejich cenami."}},"required":["minimum","maximum","balance","sources","parts"],"title":"AiCreditEstimateOutputData"},"AiCreditEstimatePartData":{"type":"object","properties":{"prompt":{"type":"string","description":"Název kroku."},"maximum":{"type":"integer","description":"Kolik kreditů může krok stát nejvíc."}},"required":["prompt","maximum"],"title":"AiCreditEstimatePartData"},"AiCreditEstimateSourceData":{"type":"object","properties":{"scope":{"type":"string","description":"Část profilu tvé firmy: product, brand_voice, customers, competitors nebo seo_audit."},"isAvailable":{"type":"boolean","description":"true, když máš tu část vyplněnou."}},"required":["scope","isAvailable"],"title":"AiCreditEstimateSourceData"},"AiGenerationRunStatusOutputData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo úlohy."},"kind":{"type":"string","description":"Co úloha dělá: article, email, social_post nebo ad."},"status":{"type":"string","description":"pending (čeká), in_progress (běží), completed (hotovo), failed (nevyšlo) nebo partial (vyšla jen část)."},"step":{"type":["string","null"],"description":"Název posledního kroku, který AI udělala, nebo null."},"label":{"type":["string","null"],"description":"Krátký název úlohy, nebo null."},"entityType":{"type":["string","null"],"description":"Co vzniklo: article, email nebo social_post. U reklam null."},"entityId":{"type":["integer","null"],"description":"Číslo toho, co vzniklo, jakmile je status completed nebo partial. Předtím a u reklam null."},"createdAt":{"type":["string","null"],"description":"Kdy úloha vznikla, v UTC."},"startedAt":{"type":["string","null"],"description":"Kdy úloha začala, v UTC, nebo null."},"finishedAt":{"type":["string","null"],"description":"Kdy úloha skončila, v UTC, nebo null."}},"required":["id","kind","status","step","label","entityType","entityId","createdAt","startedAt","finishedAt"],"title":"AiGenerationRunStatusOutputData"},"AiImageGenerationFormat":{"type":"string","enum":["square","portrait","landscape","portrait_tall","story","widescreen","banner","wide"],"title":"AiImageGenerationFormat"},"AiImageGenerationStatus":{"type":"string","enum":["pending","processing","completed","failed"],"title":"AiImageGenerationStatus"},"AiImageGenerationStatusData":{"type":"object","properties":{"id":{"type":"integer"},"status":{"$ref":"#/components/schemas/AiImageGenerationStatus","description":"Jak práce jde. Začíná jako pending."},"format":{"$ref":"#/components/schemas/AiImageGenerationFormat"},"variantCount":{"type":"integer","description":"Kolik obrázků AI udělá."},"failureReason":{"type":["string","null"]},"processedJobs":{"type":"integer"},"totalJobs":{"type":"integer"},"progress":{"type":"integer","description":"Jak je daleko, od 0 do 100."},"variants":{"type":"array","items":{"$ref":"#/components/schemas/AiImageGenerationVariantOutputData"},"description":"Dosud hotové obrázky."}},"required":["id","status","format","variantCount","failureReason","processedJobs","totalJobs","progress","variants"],"title":"AiImageGenerationStatusData"},"AiImageGenerationVariantOutputData":{"type":"object","properties":{"id":{"type":"integer"},"mimeType":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"},"url":{"type":"string"}},"required":["id","mimeType","width","height","url"],"title":"AiImageGenerationVariantOutputData"},"AlternativesData":{"type":"object","properties":{"alternative":{"type":"string"},"why":{"type":"string"}},"required":["alternative","why"],"title":"AlternativesData"},"AnalyticsCampaignOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"mode":{"$ref":"#/components/schemas/CampaignMode","description":"Jak kampaň běží."},"sentAt":{"type":["string","null"],"description":"Kdy tomuhle člověku odešel první e-mail kampaně."}},"required":["id","name","mode","sentAt"],"title":"AnalyticsCampaignOutputData"},"AresFilterOptionData":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"title":"AresFilterOptionData"},"AresMunicipalityOptionData":{"type":"object","properties":{"code":{"type":"integer"},"level":{"type":"string"},"label":{"type":"string"}},"required":["code","level","label"],"title":"AresMunicipalityOptionData"},"AresRegisterPersonData":{"type":"object","properties":{"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"position":{"type":["string","null"]},"isPrimary":{"type":"boolean"}},"required":["firstName","lastName","position","isPrimary"],"title":"AresRegisterPersonData"},"AresRegistrationsData":{"type":"object","properties":{"vr":{"type":["string","null"]},"res":{"type":["string","null"]},"rzp":{"type":["string","null"]},"dph":{"type":["string","null"]},"ir":{"type":["string","null"]}},"required":["vr","res","rzp","dph","ir"],"title":"AresRegistrationsData"},"AresRegistryCodeData":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":["string","null"]}},"required":["value","label"],"title":"AresRegistryCodeData"},"ArticleAlternateData":{"type":"object","properties":{"locale":{"type":"string"},"slug":{"type":"string"},"languageTag":{"type":"string"},"languageCode":{"type":"string"},"categorySlug":{"type":["string","null"]}},"required":["locale","slug","languageTag","languageCode","categorySlug"],"title":"ArticleAlternateData"},"ArticleBannerCreditData":{"type":"object","properties":{"name":{"type":"string"},"photographerUrl":{"type":"string"},"photoUrl":{"type":"string"}},"required":["name","photographerUrl","photoUrl"],"title":"ArticleBannerCreditData"},"ArticleBannerType":{"type":"string","enum":["photo","text","cutout"],"title":"ArticleBannerType"},"ArticleCategoryColor":{"type":"string","enum":["ai","email","social","strategie","case","navody","trendy","srovnani"],"title":"ArticleCategoryColor"},"ArticleCategoryIcon":{"type":"string","enum":["sparkles","mail","messageCircle","target","trophy","bookOpen","trendingUp","folder","scale"],"title":"ArticleCategoryIcon"},"ArticleCategoryTranslationInputData":{"type":"object","properties":{"id":{"type":["integer","null"]},"locale":{"type":"string"},"name":{"type":["string","null"]},"slug":{"type":["string","null"]},"description":{"type":["string","null"]},"breadcrumbTitle":{"type":["string","null"]},"metaTitle":{"type":["string","null"]},"metaDescription":{"type":["string","null"]},"canonicalUrl":{"type":["string","null"]},"ogTitle":{"type":["string","null"]},"ogDescription":{"type":["string","null"]},"ogImageId":{"type":["integer","null"]}},"required":["id","locale"],"title":"ArticleCategoryTranslationInputData"},"ArticleImagePurpose":{"type":"string","enum":["article_banner","article_content"],"title":"ArticleImagePurpose"},"ArticleIntegrationType":{"type":"string","enum":["webhook","api","hosted"],"title":"ArticleIntegrationType"},"ArticleOverviewCategoryData":{"type":"object","properties":{"id":{"type":["integer","null"]},"name":{"type":["string","null"]},"views":{"type":"integer"}},"required":["id","name","views"],"title":"ArticleOverviewCategoryData"},"ArticleOverviewData":{"type":"object","properties":{"kpis":{"$ref":"#/components/schemas/ArticleOverviewKpisData","description":"Hlavní čísla: zveřejněné články, zobrazení, přečtení, kliknutí a leady."},"bestArticles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOverviewRankItemData"}},"leadArticles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOverviewRankItemData"}},"countByState":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik článků je v každém stavu. Klíč je stav."},"viewsByCategory":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOverviewCategoryData"}},"staleArticles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOverviewStaleItemData"},"description":"Články, které mají méně zobrazení než dřív. Obnov je."},"categories":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOverviewFilterOptionData"}},"locales":{"type":"array","items":{"type":"string"}},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["kpis","bestArticles","leadArticles","countByState","viewsByCategory","staleArticles","categories","locales","ready","rolledUpAt","range","previousRange","dates"],"title":"ArticleOverviewData"},"ArticleOverviewFilterOptionData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"title":"ArticleOverviewFilterOptionData"},"ArticleOverviewKpisData":{"type":"object","properties":{"published":{"$ref":"#/components/schemas/OverviewKpiData"},"views":{"$ref":"#/components/schemas/OverviewKpiData"},"reads":{"$ref":"#/components/schemas/OverviewKpiData"},"clicks":{"$ref":"#/components/schemas/OverviewKpiData"},"leads":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["published","views","reads","clicks","leads"],"title":"ArticleOverviewKpisData"},"ArticleOverviewRankItemData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"count":{"type":"integer"}},"required":["id","title","count"],"title":"ArticleOverviewRankItemData"},"ArticleOverviewStaleItemData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"publishedAt":{"type":"string"},"recentViews":{"type":"integer"},"previousViews":{"type":"integer"}},"required":["id","title","publishedAt","recentViews","previousViews"],"title":"ArticleOverviewStaleItemData"},"ArticleSchemaType":{"type":"string","enum":["Article","NewsArticle","BlogPosting"],"title":"ArticleSchemaType"},"ArticleSiteMode":{"type":"string","enum":["snippet","subdomain","subdirectory"],"title":"ArticleSiteMode"},"ArticleSiteSummaryData":{"type":"object","properties":{"publicId":{"type":"string"},"mode":{"$ref":"#/components/schemas/ArticleSiteMode"},"path":{"type":["string","null"]},"baseUrl":{"type":"string"},"leadFormId":{"type":["integer","null"]},"publicKey":{"type":["string","null"]},"cnameTarget":{"type":["string","null"]},"dnsVerifiedAt":{"type":["string","null"]},"tlsReadyAt":{"type":["string","null"]},"firstSeenAt":{"type":["string","null"]}},"required":["publicId","mode","path","baseUrl","leadFormId","publicKey","cnameTarget","dnsVerifiedAt","tlsReadyAt","firstSeenAt"],"title":"ArticleSiteSummaryData"},"ArticleState":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"],"title":"ArticleState"},"ArticleUrlLocalePatternData":{"type":"object","properties":{"locale":{"type":"string"},"template":{"type":"string"},"categoryFallback":{"type":["string","null"]}},"required":["locale","template","categoryFallback"],"title":"ArticleUrlLocalePatternData"},"AssetBriefData":{"type":"object","properties":{"buyerStage":{"type":["string","null"],"description":"Jak daleko je kupující v nákupu, nebo null."},"painToAddress":{"type":["string","null"],"description":"Potíž kupujícího, o které kus mluví, nebo null."},"proofToCite":{"type":["string","null"],"description":"Důkaz, který kus zmíní, nebo null."},"copyFramework":{"type":["string","null"],"description":"Vzor psaní, který se dodrží, třeba AIDA, nebo null."}},"required":["buyerStage","painToAddress","proofToCite","copyFramework"],"title":"AssetBriefData"},"AssetGenerationOrigin":{"type":"string","enum":["standalone","campaign"],"title":"AssetGenerationOrigin"},"AuthMeOutputData":{"type":"object","properties":{"user":{"anyOf":[{"$ref":"#/components/schemas/UpdateUserData"},{"$ref":"#/components/schemas/EmbedMeUserOutputData"}]},"tenant":{"anyOf":[{"$ref":"#/components/schemas/UpdateTenantData"},{"$ref":"#/components/schemas/SuspendedTenantOutputData"}]},"twoFactorSetupRequired":{"type":"boolean","description":"true, když firma chce dvoufázové přihlášení a tenhle člověk ho ještě nemá."},"membershipSuspension":{"anyOf":[{"$ref":"#/components/schemas/MembershipSuspensionOutputData"},{"type":"null"}],"description":"U klíče je vždy null. Když je vlastník klíče pozastavený, klíč přestane fungovat."}},"required":["user","tenant","twoFactorSetupRequired","membershipSuspension"],"title":"AuthMeOutputData"},"AvailableEntityData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"state":{"type":"string"},"assignedToCampaign":{"type":"boolean","description":"true, když položka už patří ke kampani."},"campaignId":{"type":["integer","null"]},"campaignName":{"type":["string","null"]},"campaignOrigin":{"type":["string","null"]}},"required":["id","name","state","assignedToCampaign","campaignId","campaignName","campaignOrigin"],"title":"AvailableEntityData"},"BoardColumnCountData":{"type":"object","properties":{"status":{"type":"string"},"count":{"type":"integer"}},"required":["status","count"],"title":"BoardColumnCountData"},"BoardSummaryData":{"type":"object","properties":{"columns":{"type":"array","items":{"$ref":"#/components/schemas/BoardColumnCountData"}},"total":{"type":"integer"}},"required":["columns","total"],"title":"BoardSummaryData"},"BrandColorsData":{"type":"object","properties":{"primary":{"type":["string","null"]},"accent":{"type":["string","null"]},"secondary":{"type":["string","null"]},"additional":{"type":"array","items":{"type":"string"}}},"required":["primary","accent","secondary","additional"],"title":"BrandColorsData"},"BrandVoiceOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantSequence":{"type":"integer","description":"Číslo hlasu v rámci tvé firmy."},"name":{"type":"string"},"description":{"type":["string","null"]},"toneDescriptor":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceTone"},{"type":"null"}]},"readingLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceReadingLevel"},{"type":"null"}]},"persona":{"type":["string","null"]},"sampleContent":{"type":["string","null"]},"isDefault":{"type":"boolean","description":"true u hlasu, který AI použije, když žádný nevybereš."},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":"integer"},"phrases":{"description":"Fráze, které se mají používat nebo ne."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"],"description":"Kdy byl hlas odebrán. null u hlasu, který se používá."}},"required":["id","tenantId","tenantSequence","name","description","toneDescriptor","readingLevel","persona","sampleContent","isDefault","derivedFromAnalysisId","createdBy","phrases","createdAt","updatedAt","deletedAt"],"title":"BrandVoiceOutputData"},"BrowserDiscoveryLeadData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo nového leadu."},"profileId":{"type":"integer","description":"Číslo jeho profilu objevení."},"reviewStatus":{"type":"string","description":"Kde je posouzení. Vždy new."}},"required":["leadId","profileId","reviewStatus"],"title":"BrowserDiscoveryLeadData"},"CadenceDueTaskContactData":{"type":"object","properties":{"name":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":["name","linkedinUrl","phone"],"title":"CadenceDueTaskContactData"},"CadenceDueTaskItemData":{"type":"object","properties":{"leadCadenceTaskId":{"type":"integer"},"leadId":{"type":"integer"},"leadName":{"type":["string","null"]},"channel":{"type":"string"},"stepTitle":{"type":"string"},"stepPosition":{"type":"integer"},"dueAt":{"type":["string","null"]},"scheduledAt":{"type":["string","null"]},"body":{"type":["string","null"]},"preparedMessageId":{"type":["integer","null"]},"contact":{"anyOf":[{"$ref":"#/components/schemas/CadenceDueTaskContactData"},{"type":"null"}]},"outreachTask":{"type":"string"}},"required":["leadCadenceTaskId","leadId","leadName","channel","stepTitle","stepPosition","dueAt","scheduledAt","body","preparedMessageId","contact","outreachTask"],"title":"CadenceDueTaskItemData"},"CadenceDueTasksData":{"type":"object","properties":{"toSend":{"type":"array","items":{"$ref":"#/components/schemas/CadenceDueTaskItemData"},"description":"Schválené zprávy na LinkedIn a WhatsApp, jejichž čas odeslání nastal, nejvýš jedna za zápis do kadence: jeho nejdřívější schválená zpráva, a žádná, dokud její čas nenastal. Seřazené podle zápisu. Každá položka má text zprávy v `body`, její `preparedMessageId` a hlavní kontakt leadu."},"toPrepare":{"type":"array","items":{"$ref":"#/components/schemas/CadenceDueTaskItemData"},"description":"Otevřené kroky kadence, které zatím nemají obsah, nejvýš 50, podle termínu, zápisu a pořadí kroků. Nemají `body` ani `preparedMessageId`."}},"required":["toSend","toPrepare"],"title":"CadenceDueTasksData"},"CadenceOutreachResultData":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"integer"},"channel":{"type":"string"},"status":{"type":"string"},"scheduledAt":{"type":["string","null"]},"leadId":{"type":"integer"},"leadCadenceTaskId":{"type":"integer"}},"required":["type","id","channel","status","scheduledAt","leadId","leadCadenceTaskId"],"title":"CadenceOutreachResultData"},"Campaign.Ai.SuggestedCtaData":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":["string","null"]},"suggestedEventName":{"type":["string","null"]},"linksToLeadForm":{"type":"boolean"},"destinationUrl":{"type":["string","null"]},"isPrimary":{"type":"boolean"},"offerRole":{"type":["string","null"]}},"required":["label","description","suggestedEventName","linksToLeadForm","destinationUrl","isPrimary","offerRole"],"title":"Campaign.Ai.SuggestedCtaData"},"CampaignAiPlanApprovalRecommendationData":{"type":"object","properties":{"requiresApproval":{"type":"boolean"},"reasoning":{"type":"string"}},"required":["requiresApproval","reasoning"],"title":"CampaignAiPlanApprovalRecommendationData"},"CampaignAiPlanData":{"type":"object","properties":{"suggestedName":{"type":"string"},"suggestedDescription":{"type":["string","null"]},"mode":{"type":"string"},"durationDays":{"type":"integer"},"phases":{"type":"array","items":{"$ref":"#/components/schemas/CampaignAiPlanPhaseData"}},"destinations":{"type":"array","items":{"$ref":"#/components/schemas/CampaignAiPlanDestinationData"}},"sourcesSuggested":{"type":"array","items":{"$ref":"#/components/schemas/CampaignAiPlanSourceSuggestionData"}},"autonomyRecommendation":{"type":"string"},"approvalRecommendation":{"$ref":"#/components/schemas/CampaignAiPlanApprovalRecommendationData"},"sequence":{"anyOf":[{"$ref":"#/components/schemas/CampaignAiPlanNurtureSequenceData"},{"type":"null"}]},"suggestedCtas":{"type":"array","items":{"$ref":"#/components/schemas/Campaign.Ai.SuggestedCtaData"}},"suggestedLeadForm":{"anyOf":[{"$ref":"#/components/schemas/SuggestedLeadFormData"},{"type":"null"}]},"suggestedEvents":{"type":"array","items":{"$ref":"#/components/schemas/SuggestedEventData"}},"askRatio":{"type":["number","null"]},"profile":{"anyOf":[{"$ref":"#/components/schemas/CampaignProfileData"},{"type":"null"}]},"suggestedAudience":{"anyOf":[{"$ref":"#/components/schemas/SuggestedAudienceData"},{"type":"null"}]}},"required":["suggestedName","suggestedDescription","mode","durationDays","phases","destinations","sourcesSuggested","autonomyRecommendation","approvalRecommendation","sequence","suggestedCtas","suggestedLeadForm","suggestedEvents","askRatio","profile","suggestedAudience"],"title":"CampaignAiPlanData"},"CampaignAiPlanDestinationData":{"type":"object","properties":{"destination":{"type":"string"},"itemsPerGeneration":{"type":"integer"},"recurrenceRule":{"type":["string","null"]},"draftTitleOrSubject":{"type":"string"},"draftOutline":{"type":"string"},"scheduleOffsetDays":{"type":"integer"},"aiRationale":{"type":"string"},"angle":{"type":["string","null"]},"format":{"type":["string","null"]},"buyerStage":{"type":["string","null"]},"hookAngle":{"type":["string","null"]},"painToAddress":{"type":["string","null"]},"proofToCite":{"type":["string","null"]},"copyFramework":{"type":["string","null"]},"tenantAnchor":{"anyOf":[{"$ref":"#/components/schemas/TenantAnchorData"},{"type":"null"}]}},"required":["destination","itemsPerGeneration","recurrenceRule","draftTitleOrSubject","draftOutline","scheduleOffsetDays","aiRationale","angle","format","buyerStage","hookAngle","painToAddress","proofToCite","copyFramework","tenantAnchor"],"title":"CampaignAiPlanDestinationData"},"CampaignAiPlanDispatchOutputData":{"type":"object","properties":{"campaignId":{"type":"integer","description":"Číslo kampaně v konceptu."},"resume":{"type":["boolean","null"],"description":"True, když AI pokračuje od kroku, kde skončila."}},"required":["campaignId","resume"],"title":"CampaignAiPlanDispatchOutputData"},"CampaignAiPlanKnowledgeDocData":{"type":"object","properties":{"title":{"type":"string"},"markdown":{"type":"string"}},"required":["title","markdown"],"title":"CampaignAiPlanKnowledgeDocData"},"CampaignAiPlanNurtureSequenceData":{"type":"object","properties":{"entryEventSlug":{"type":"string"},"template":{"type":"string"},"exitEventSlugs":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/CampaignAiPlanStepData"}},"recommendationRationale":{"type":["string","null"]}},"required":["entryEventSlug","template","exitEventSlugs","steps","recommendationRationale"],"title":"CampaignAiPlanNurtureSequenceData"},"CampaignAiPlanPhaseData":{"type":"object","properties":{"name":{"type":"string"},"startOffsetDays":{"type":"integer"},"endOffsetDays":{"type":"integer"},"focus":{"type":"string"},"buyerStage":{"type":["string","null"]}},"required":["name","startOffsetDays","endOffsetDays","focus","buyerStage"],"title":"CampaignAiPlanPhaseData"},"CampaignAiPlanSourceSuggestionData":{"type":"object","properties":{"uuid":{"type":"string"},"destination":{"type":"string"},"sourceType":{"type":"string"},"name":{"type":"string"},"targetCustomerIds":{"type":"array","items":{"type":"integer"}},"configHint":{"type":"string"},"briefText":{"type":"string"},"urls":{"type":"array","items":{"type":"string"}},"suggestedDocuments":{"type":"array","items":{"$ref":"#/components/schemas/CampaignAiPlanKnowledgeDocData"}},"documentFileIds":{"type":"array","items":{"type":"integer"}},"topicId":{"type":["integer","null"]},"topicProposal":{"anyOf":[{"$ref":"#/components/schemas/CampaignAiPlanSourceTopicProposalData"},{"type":"null"}]},"seedArticleIds":{"type":"array","items":{"type":"integer"}},"seedAngles":{"type":"array","items":{"type":"string"}},"completionHints":{"type":"array","items":{"type":"string"}},"status":{"type":"string"}},"required":["uuid","destination","sourceType","name","targetCustomerIds","configHint","briefText","urls","suggestedDocuments","documentFileIds","topicId","topicProposal","seedArticleIds","seedAngles","completionHints","status"],"title":"CampaignAiPlanSourceSuggestionData"},"CampaignAiPlanSourceTopicProposalData":{"type":"object","properties":{"name":{"type":"string"},"topicType":{"type":"string"},"query":{"type":"string"},"timeRange":{"type":"string"},"language":{"type":"string"},"includeWebsites":{"type":"array","items":{"type":"string"}},"excludeWebsites":{"type":"array","items":{"type":"string"}}},"required":["name","topicType","query","timeRange","language","includeWebsites","excludeWebsites"],"title":"CampaignAiPlanSourceTopicProposalData"},"CampaignAiPlanStage":{"type":"string","enum":["pending","classifying","strategy_burst_push","strategy_evergreen_authority","strategy_evergreen_retention","strategy_nurture_cold","strategy_nurture_warm","strategy_custom","channel_mix","asset_briefs","conversion","merging","completed","failed_classify","failed_strategy","failed_channel_mix","failed_asset_briefs","failed_conversion","profiling","failed_profiling","researching_sources","failed_sources_research","failed_merge"],"title":"CampaignAiPlanStage"},"CampaignAiPlanStepData":{"type":"object","properties":{"sortOrder":{"type":"integer"},"delayHours":{"type":"integer"},"emailSubject":{"type":"string"},"emailBodyOutline":{"type":"string"},"rationale":{"type":"string"},"stepRole":{"type":["string","null"]},"hookAngle":{"type":["string","null"]},"tenantAnchor":{"anyOf":[{"$ref":"#/components/schemas/TenantAnchorData"},{"type":"null"}]}},"required":["sortOrder","delayHours","emailSubject","emailBodyOutline","rationale","stepRole","hookAngle","tenantAnchor"],"title":"CampaignAiPlanStepData"},"CampaignAlertData":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CampaignAlertType"},"destination":{"type":["string","null"]},"percent":{"type":["integer","null"]},"spentCredits":{"type":["integer","null"]},"budgetCredits":{"type":["integer","null"]},"creditBalance":{"type":["number","null"]},"remainingBlueprints":{"type":["integer","null"]},"estimatedDryAt":{"type":["string","null"]}},"required":["type","destination","percent","spentCredits","budgetCredits","creditBalance","remainingBlueprints","estimatedDryAt"],"title":"CampaignAlertData"},"CampaignAlertType":{"type":"string","enum":["credits_exhausted","budget_exhausted","budget_warning","blueprint_depletion","blueprint_exhaustion"],"title":"CampaignAlertType"},"CampaignAngle":{"type":"string","enum":["educational","industry_insights","thought_leadership","brand_story","use_case","promo","contrarian","behind_the_scenes","personal_story","case_study","community_engagement","curated_resources","lead_magnet","comparison","continuity"],"title":"CampaignAngle"},"CampaignApprovalRole":{"type":"string","enum":["primary","backup"],"title":"CampaignApprovalRole"},"CampaignApprovalTimeoutAction":{"type":"string","enum":["skip","publish"],"title":"CampaignApprovalTimeoutAction"},"CampaignApproveResultData":{"type":"object","properties":{"campaignId":{"type":"integer","description":"Číslo kampaně."},"approvedCount":{"type":"integer","description":"Kolik kusů obsahu se schválilo."},"status":{"type":"string","description":"Nový stav kampaně."}},"required":["campaignId","approvedCount","status"],"title":"CampaignApproveResultData"},"CampaignApproverOutputData":{"type":"object","properties":{"userId":{"type":"integer"},"name":{"type":"string"},"role":{"$ref":"#/components/schemas/CampaignApprovalRole"}},"required":["userId","name","role"],"title":"CampaignApproverOutputData"},"CampaignAssetFormat":{"type":"string","enum":["single_post","thread","carousel","reel"],"title":"CampaignAssetFormat"},"CampaignAssetSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"campaignId":{"type":"integer"},"campaignName":{"type":"string"},"destination":{"type":"string"},"assetStatus":{"type":"string"},"aiRationale":{"type":["string","null"]},"aiConfidence":{"type":["number","null"]},"containsClaims":{"type":["boolean","null"]},"containsLinks":{"type":["boolean","null"]},"brandVoiceDriftScore":{"type":["number","null"]},"similarityScore":{"type":["number","null"]},"matchedSimilarAssetType":{"type":["string","null"]},"matchedSimilarAssetId":{"type":["integer","null"]},"matchedApprovalRuleId":{"type":["integer","null"]}},"required":["id","campaignId","campaignName","destination","assetStatus","aiRationale","aiConfidence","containsClaims","containsLinks","brandVoiceDriftScore","similarityScore","matchedSimilarAssetType","matchedSimilarAssetId","matchedApprovalRuleId"],"title":"CampaignAssetSummaryData"},"CampaignAudienceWarmth":{"type":"string","enum":["cold","warm","owned"],"title":"CampaignAudienceWarmth"},"CampaignAutonomyLevel":{"type":"string","enum":["l0_manual","l1_approval","l2_auto_publish","l3_autopilot"],"title":"CampaignAutonomyLevel"},"CampaignBlueprintConsumptionMode":{"type":"string","enum":["mix","strict_fallback","strict_stop"],"title":"CampaignBlueprintConsumptionMode"},"CampaignBriefAnalysisResponseData":{"type":"object","properties":{"extracted":{"$ref":"#/components/schemas/ExtractedData"},"confidence":{"type":"object","additionalProperties":{"type":"number"}},"missingCritical":{"type":"array","items":{"type":"string"}},"missingOptional":{"type":"array","items":{"type":"string"}},"readyToPlan":{"type":"boolean"},"followUpQuestions":{"type":"array","items":{"$ref":"#/components/schemas/FollowUpQuestionData"}},"suggestedName":{"type":["string","null"]},"suggestedDescription":{"type":["string","null"]}},"required":["extracted","confidence","missingCritical","missingOptional","readyToPlan","followUpQuestions","suggestedName","suggestedDescription"],"title":"CampaignBriefAnalysisResponseData"},"CampaignBriefCompositionData":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"title":"CampaignBriefCompositionData"},"CampaignBuyerStage":{"type":"string","enum":["awareness","consideration","decision","retention","implementation"],"title":"CampaignBuyerStage"},"CampaignContentMixData":{"type":"object","properties":{"give":{"type":"integer"},"softAsk":{"type":"integer"},"ask":{"type":"integer"}},"required":["give","softAsk","ask"],"title":"CampaignContentMixData"},"CampaignConversionActionData":{"type":"object","properties":{"id":{"type":"integer"},"conversionActionId":{"type":"integer"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/ConversionActionCategory"},"eventName":{"type":"string"},"isSystem":{"type":"boolean"},"isDeleted":{"type":"boolean"},"countsTowardGoal":{"type":"boolean"},"position":{"type":"integer"}},"required":["id","conversionActionId","name","category","eventName","isSystem","isDeleted","countsTowardGoal","position"],"title":"CampaignConversionActionData"},"CampaignCopyFramework":{"type":"string","enum":["PAS","AIDA","BAB","FAB","STAR","narrative","fact_led"],"title":"CampaignCopyFramework"},"CampaignCtaOfferRole":{"type":"string","enum":["attraction","upsell","downsell","continuity"],"title":"CampaignCtaOfferRole"},"CampaignDestination":{"type":"string","enum":["blog_article","facebook_post","instagram_post","x_post","linkedin_post","email_broadcast","email_sequence"],"title":"CampaignDestination"},"CampaignGenerationSlotOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"campaignId":{"type":"integer"},"destination":{"$ref":"#/components/schemas/CampaignDestination"},"recurrenceRule":{"type":["string","null"]},"oneOffAt":{"type":["string","null"]},"startOffsetDays":{"type":["integer","null"]},"sourceSelectionStrategy":{"$ref":"#/components/schemas/CampaignSourceSelectionStrategy"},"itemsPerGeneration":{"type":"integer"},"active":{"type":"boolean"},"angle":{"anyOf":[{"$ref":"#/components/schemas/CampaignAngle"},{"type":"null"}]},"buyerStage":{"anyOf":[{"$ref":"#/components/schemas/CampaignBuyerStage"},{"type":"null"}]},"preferredFormat":{"anyOf":[{"$ref":"#/components/schemas/CampaignAssetFormat"},{"type":"null"}]},"lastGeneratedAt":{"type":["string","null"]},"nextScheduledAt":{"type":["string","null"]},"sources":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignGenerationSlotSourceData"}},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"remainingBlueprints":{"type":"integer"},"usedBlueprints":{"type":"integer"},"depletionRatio":{"type":["number","null"]},"exhaustedAt":{"type":["string","null"]},"estimatedDryAt":{"type":["string","null"]},"publishingOffAngle":{"type":"boolean"},"blueprintConsumptionMode":{"$ref":"#/components/schemas/CampaignBlueprintConsumptionMode"}},"required":["id","tenantId","campaignId","destination","recurrenceRule","oneOffAt","startOffsetDays","sourceSelectionStrategy","itemsPerGeneration","active","angle","buyerStage","preferredFormat","lastGeneratedAt","nextScheduledAt","sources","createdAt","updatedAt","remainingBlueprints","usedBlueprints","depletionRatio","exhaustedAt","estimatedDryAt","publishingOffAngle","blueprintConsumptionMode"],"title":"CampaignGenerationSlotOutputData"},"CampaignGenerationSlotSourceData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"sourceType":{"$ref":"#/components/schemas/CampaignSourceType"},"brief":{"anyOf":[{"$ref":"#/components/schemas/CampaignBriefCompositionData"},{"type":"null"}]},"nicheTopic":{"type":["string","null"]},"feedUrl":{"type":["string","null"]},"topicId":{"type":["integer","null"]},"sortOrder":{"type":"integer"}},"required":["id","name","sourceType","brief","nicheTopic","feedUrl","topicId","sortOrder"],"title":"CampaignGenerationSlotSourceData"},"CampaignGoal":{"type":"string","enum":["awareness","traffic","leads","sales","retention","custom"],"title":"CampaignGoal"},"CampaignGoalMetricType":{"type":"string","enum":["leads","reach","clicks","conversions","engagement","revenue","custom"],"title":"CampaignGoalMetricType"},"CampaignGoalTargetData":{"type":"object","properties":{"position":{"type":"integer"},"metric":{"$ref":"#/components/schemas/CampaignGoalTargetMetric"},"conversionActionId":{"type":["integer","null"]},"operator":{"$ref":"#/components/schemas/CampaignGoalTargetOperator"},"value":{"type":"number"}},"required":["position","metric","conversionActionId","operator","value"],"title":"CampaignGoalTargetData"},"CampaignGoalTargetGroupData":{"type":"object","properties":{"position":{"type":"integer"},"operator":{"$ref":"#/components/schemas/ConditionGroupOperator"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CampaignGoalTargetData"}}},"required":["position","operator","targets"],"title":"CampaignGoalTargetGroupData"},"CampaignGoalTargetMetric":{"type":"string","enum":["all","money","reach","visits","unsubscribes","conversion_action"],"title":"CampaignGoalTargetMetric"},"CampaignGoalTargetOperator":{"type":"string","enum":["gte","lte"],"title":"CampaignGoalTargetOperator"},"CampaignGoalTargetsData":{"type":"object","properties":{"operator":{"$ref":"#/components/schemas/ConditionGroupOperator"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CampaignGoalTargetData"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/CampaignGoalTargetGroupData"}}},"required":["operator","targets","groups"],"title":"CampaignGoalTargetsData"},"CampaignHashtagStrategy":{"type":"string","enum":["none","minimal","trending","branded"],"title":"CampaignHashtagStrategy"},"CampaignMode":{"type":"string","enum":["burst","evergreen","nurture"],"title":"CampaignMode"},"CampaignOrigin":{"type":"string","enum":["manual","ai","standalone_entity","autopilot_articles","autopilot_emails","autopilot_social_posts"],"title":"CampaignOrigin"},"CampaignOverviewData":{"type":"object","properties":{"kpis":{"$ref":"#/components/schemas/CampaignOverviewKpisData","description":"Hlavní čísla: aktivní kampaně, dosah, kliknutí, leady, obchody a vyhrané obchody. Číslo, které číst nesmíš, je null."},"revenue":{"type":["array","null"],"items":{"$ref":"#/components/schemas/OverviewMoneyKpiData"},"description":"Peníze z vyhraných obchodů, jedna položka pro každou měnu. Bez deals.read je null."},"bestCampaigns":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignOverviewRankItemData"},"description":"Kampaně, které přinesly nejvíc leadů. Bez leads.read je null."},"goals":{"type":"array","items":{"$ref":"#/components/schemas/CampaignOverviewGoalData"},"description":"Jak daleko je každá kampaň se svým hlavním číslem."},"countByOrigin":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik kampaní pochází z každého původu. Klíč je původ."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["kpis","revenue","bestCampaigns","goals","countByOrigin","ready","rolledUpAt","range","previousRange","dates"],"title":"CampaignOverviewData"},"CampaignOverviewGoalData":{"type":"object","properties":{"campaignId":{"type":"integer"},"campaignName":{"type":"string"},"metricType":{"$ref":"#/components/schemas/CampaignGoalMetricType"},"label":{"type":["string","null"]},"target":{"type":"number"},"value":{"type":"number"},"currency":{"type":["string","null"]}},"required":["campaignId","campaignName","metricType","label","target","value","currency"],"title":"CampaignOverviewGoalData"},"CampaignOverviewKpisData":{"type":"object","properties":{"active":{"$ref":"#/components/schemas/OverviewKpiData"},"reach":{"anyOf":[{"$ref":"#/components/schemas/OverviewKpiData"},{"type":"null"}]},"clicks":{"anyOf":[{"$ref":"#/components/schemas/OverviewKpiData"},{"type":"null"}]},"leads":{"anyOf":[{"$ref":"#/components/schemas/OverviewKpiData"},{"type":"null"}]},"deals":{"anyOf":[{"$ref":"#/components/schemas/OverviewKpiData"},{"type":"null"}]},"wonDeals":{"anyOf":[{"$ref":"#/components/schemas/OverviewKpiData"},{"type":"null"}]}},"required":["active","reach","clicks","leads","deals","wonDeals"],"title":"CampaignOverviewKpisData"},"CampaignOverviewRankItemData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"},"leads":{"type":"integer"}},"required":["id","name","status","leads"],"title":"CampaignOverviewRankItemData"},"CampaignOverviewTimelineData":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CampaignOverviewTimelineItemData"},"description":"Kampaně, které v období někdy běží, s jejich začátkem, koncem a počtem kusů obsahu."},"total":{"type":"integer","description":"Kolik kampaní je celkem."}},"required":["items","total"],"title":"CampaignOverviewTimelineData"},"CampaignOverviewTimelineItemData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":["string","null"]},"assetCount":{"type":"integer"}},"required":["id","name","status","startDate","endDate","assetCount"],"title":"CampaignOverviewTimelineItemData"},"CampaignPrePlanEstimateData":{"type":"object","properties":{"planCredits":{"type":"integer"},"assetCredits":{"type":"integer"},"sourceCredits":{"type":"integer"},"firstBatchCredits":{"type":"integer"},"totalCredits":{"type":"integer","description":"Kolik kreditů by stál celý plán."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/CampaignPrePlanEstimateLineData"}}},"required":["planCredits","assetCredits","sourceCredits","firstBatchCredits","totalCredits","lines"],"title":"CampaignPrePlanEstimateData"},"CampaignPrePlanEstimateLineData":{"type":"object","properties":{"destination":{"type":"string"},"assetCredits":{"type":"integer"},"sourceCredits":{"type":"integer"}},"required":["destination","assetCredits","sourceCredits"],"title":"CampaignPrePlanEstimateLineData"},"CampaignProfileCompetitorStanceData":{"type":"object","properties":{"competitorId":{"type":["integer","null"]},"competitorName":{"type":"string"},"tier":{"type":"string"},"fallsShort":{"type":"string"},"ourWedge":{"type":"string"}},"required":["competitorId","competitorName","tier","fallsShort","ourWedge"],"title":"CampaignProfileCompetitorStanceData"},"CampaignProfileData":{"type":"object","properties":{"targetPersona":{"$ref":"#/components/schemas/CampaignProfilePersonaData"},"positioning":{"$ref":"#/components/schemas/CampaignProfilePositioningData"},"switchingForces":{"$ref":"#/components/schemas/CampaignProfileSwitchingForcesData"},"brandVoiceId":{"type":["integer","null"]},"brandVoiceRationale":{"type":"string"},"productId":{"type":["integer","null"]},"productFraming":{"type":"string"},"proofBank":{"type":"array","items":{"$ref":"#/components/schemas/CampaignProfileProofData"}},"selectedCustomerIds":{"type":"array","items":{"type":"integer"}},"selectedCompetitorIds":{"type":"array","items":{"type":"integer"}}},"required":["targetPersona","positioning","switchingForces","brandVoiceId","brandVoiceRationale","productId","productFraming","proofBank","selectedCustomerIds","selectedCompetitorIds"],"title":"CampaignProfileData"},"CampaignProfilePersonaData":{"type":"object","properties":{"role":{"type":"string"},"companyContext":{"type":"string"},"primaryJtbd":{"type":"string"},"topObjections":{"type":"array","items":{"type":"string"}},"keyVocabulary":{"type":"array","items":{"type":"string"}},"confidence":{"type":"string"}},"required":["role","companyContext","primaryJtbd","topObjections","keyVocabulary","confidence"],"title":"CampaignProfilePersonaData"},"CampaignProfilePositioningData":{"type":"object","properties":{"perCompetitor":{"type":"array","items":{"$ref":"#/components/schemas/CampaignProfileCompetitorStanceData"}},"differentiationAngle":{"type":"string"},"avoidList":{"type":"array","items":{"type":"string"}}},"required":["perCompetitor","differentiationAngle","avoidList"],"title":"CampaignProfilePositioningData"},"CampaignProfileProofData":{"type":"object","properties":{"valueTheme":{"type":"string"},"evidence":{"type":"string"}},"required":["valueTheme","evidence"],"title":"CampaignProfileProofData"},"CampaignProfileSwitchingForcesData":{"type":"object","properties":{"push":{"type":"string"},"pull":{"type":"string"},"habit":{"type":"string"},"anxiety":{"type":"string"}},"required":["push","pull","habit","anxiety"],"title":"CampaignProfileSwitchingForcesData"},"CampaignReferenceData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"origin":{"$ref":"#/components/schemas/CampaignOrigin"}},"required":["id","name","origin"],"title":"CampaignReferenceData"},"CampaignSimilarityAction":{"type":"string","enum":["skip","require_approval"],"title":"CampaignSimilarityAction"},"CampaignSocialNetwork":{"type":"string","enum":["facebook","instagram","x","linkedin"],"title":"CampaignSocialNetwork"},"CampaignSourceBlueprintSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"workingTitle":{"type":"string"},"angle":{"type":"string"},"angleType":{"type":["string","null"]},"primaryHook":{"type":"string"},"sourceId":{"type":["integer","null"]},"sourceName":{"type":["string","null"]}},"required":["id","workingTitle","angle","angleType","primaryHook","sourceId","sourceName"],"title":"CampaignSourceBlueprintSummaryData"},"CampaignSourceDocumentOutputData":{"type":"object","properties":{"id":{"type":"integer"},"campaignSourceId":{"type":"integer"},"fileId":{"type":"integer"},"name":{"type":["string","null"]},"extension":{"type":["string","null"]},"size":{"type":["integer","null"]}},"required":["id","campaignSourceId","fileId","name","extension","size"],"title":"CampaignSourceDocumentOutputData"},"CampaignSourceOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"campaignId":{"type":"integer"},"sourceType":{"$ref":"#/components/schemas/CampaignSourceType"},"name":{"type":"string"},"brief":{"anyOf":[{"$ref":"#/components/schemas/CampaignBriefCompositionData"},{"type":"null"}]},"seedAngles":{"type":"array","items":{"type":"string"}},"angleType":{"anyOf":[{"$ref":"#/components/schemas/CampaignAngle"},{"type":"null"}]},"nicheTopic":{"type":["string","null"]},"feedUrl":{"type":["string","null"]},"pollingIntervalMinutes":{"type":["integer","null"]},"topicId":{"type":["integer","null"]},"topicFeedId":{"type":["integer","null"]},"topicPickMode":{"anyOf":[{"$ref":"#/components/schemas/CampaignTopicPickMode"},{"type":"null"}]},"topicPickWindowSize":{"type":["integer","null"]},"lastPolledAt":{"type":["string","null"]},"lastItemHash":{"type":["string","null"]},"keywords":{},"urls":{},"documents":{"type":"array","items":{"$ref":"#/components/schemas/CampaignSourceDocumentOutputData"}},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","campaignId","sourceType","name","brief","seedAngles","angleType","nicheTopic","feedUrl","pollingIntervalMinutes","topicId","topicFeedId","topicPickMode","topicPickWindowSize","lastPolledAt","lastItemHash","keywords","urls","documents","createdAt","updatedAt"],"title":"CampaignSourceOutputData"},"CampaignSourceSelectionStrategy":{"type":"string","enum":["newest","random","round_robin"],"title":"CampaignSourceSelectionStrategy"},"CampaignSourceType":{"type":"string","enum":["brief","url_list","knowledge_base","topic_ref","topic_feed_ref","article_ref"],"title":"CampaignSourceType"},"CampaignStatus":{"type":"string","enum":["draft","approved","scheduled","active","paused","completed","cancelled","archived"],"title":"CampaignStatus"},"CampaignTopicPickMode":{"type":"string","enum":["latest_relevant","newest_unused"],"title":"CampaignTopicPickMode"},"CanonicalAdsTargetingData":{"type":"object","properties":{"locations":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}},"ageRanges":{"type":"array","items":{"type":"string"}},"genders":{"type":"array","items":{"type":"string"}},"interests":{"type":"array","items":{"type":"string"}},"behaviors":{"type":"array","items":{"type":"string"}},"jobTitles":{"type":"array","items":{"type":"string"}},"seniorities":{"type":"array","items":{"type":"string"}},"industries":{"type":"array","items":{"type":"string"}},"companySizes":{"type":"array","items":{"type":"string"}},"purchaseSignals":{"type":"array","items":{"type":"string"}},"searchThemes":{"type":"array","items":{"type":"string"}},"exclusions":{"type":"array","items":{"type":"string"}}},"required":["locations","languages","ageRanges","genders","interests","behaviors","jobTitles","seniorities","industries","companySizes","purchaseSignals","searchThemes","exclusions"],"title":"CanonicalAdsTargetingData"},"CapabilitiesData":{"type":"object","properties":{"capability":{"type":"string"},"description":{"type":"string"}},"required":["capability","description"],"title":"CapabilitiesData"},"CaptionVoice":{"type":"string","enum":["company","mascot"],"title":"CaptionVoice"},"ChildDocumentOutputData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"relationType":{"$ref":"#/components/schemas/DocumentRelationType"},"status":{"$ref":"#/components/schemas/DocumentStatus"}},"required":["id","title","relationType","status"],"title":"ChildDocumentOutputData"},"ClarificationQuestionData":{"type":"object","properties":{"key":{"type":"string","description":"Klíč, pod kterým pošleš odpověď v priorAnswers."},"label":{"type":"string","description":"Krátký název otázky."},"question":{"type":"string","description":"Otázka."},"inputType":{"$ref":"#/components/schemas/FollowUpInputType","description":"Jak odpovědět: single_choice (vyber jednu), multi_choice (vyber několik), text nebo date."},"options":{"type":["array","null"],"items":{"$ref":"#/components/schemas/FollowUpQuestionOptionData"},"description":"Možnosti pro single_choice a multi_choice, nebo null."},"allowSkip":{"type":"boolean","description":"true, když otázku smíš přeskočit."},"suggestedValue":{"type":["string","null"],"description":"Odpověď, kterou AI navrhuje, nebo null."}},"required":["key","label","question","inputType","options","allowSkip","suggestedValue"],"title":"ClarificationQuestionData"},"ClarificationResultData":{"type":"object","properties":{"proceed":{"type":"boolean","description":"true, když AI ví dost; pak je contextBundle hotový. false, když má AI napřed otázky."},"contextBundle":{"anyOf":[{"$ref":"#/components/schemas/ContextBundleData"},{"type":"null"}],"description":"Zadání, které pošleš do generate, když je proceed true, nebo null, když jsou napřed otázky."},"questions":{"type":"array","items":{"$ref":"#/components/schemas/ClarificationQuestionData"},"description":"Otázky AI, když je proceed false. Prázdné, když je proceed true."}},"required":["proceed","contextBundle","questions"],"title":"ClarificationResultData"},"CommunicationPreferenceEmailFormat":{"type":"string","enum":["html","text"],"title":"CommunicationPreferenceEmailFormat"},"CommunicationPreferenceOwnerType":{"type":"string","enum":["contact","lead"],"title":"CommunicationPreferenceOwnerType"},"CompanyAgeBand":{"type":"string","enum":["new","young","established","mature"],"title":"CompanyAgeBand"},"ConditionGroupOperator":{"type":"string","enum":["and","or"],"title":"ConditionGroupOperator"},"ConditionGroupOutputData":{"type":"object","properties":{"id":{"type":["integer","null"]},"position":{"type":"integer"},"operator":{"type":"string"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/ConditionOutputData"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ConditionGroupOutputData"}}},"required":["id","position","operator","conditions","groups"],"title":"ConditionGroupOutputData"},"ConditionOperator":{"type":"string","enum":["equals","not_equals","less_than","greater_than","less_or_equal","greater_or_equal","in","not_in","before","after","within_days","older_than_days"],"title":"ConditionOperator"},"ConditionOutputData":{"type":"object","properties":{"id":{"type":"integer"},"position":{"type":"integer"},"property":{"type":"string"},"customFieldId":{"type":["integer","null"]},"customFieldLabel":{"type":["string","null"]},"operator":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"valueLabels":{"type":"array","items":{}}},"required":["id","position","property","customFieldId","customFieldLabel","operator","values","valueLabels"],"title":"ConditionOutputData"},"ConditionProperty":{"type":"string","enum":["stage","engagement_score","user_id","source","name","city","last_activity_at","created_at","has_email","is_unsubscribed","tags","segments","custom_field","lead_id"],"title":"ConditionProperty"},"ConsentSource":{"type":"string","enum":["mail_provider","preference_center","admin_panel","api","form_submission","crm_import"],"title":"ConsentSource"},"ConsentStatus":{"type":"string","enum":["subscribed","unsubscribed","not_specified"],"title":"ConsentStatus"},"ContactAnalyticsHistoryItemOutputData":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"channel":{"type":["string","null"]},"eventName":{"type":["string","null"]},"campaignName":{"type":["string","null"]},"date":{"type":"string"},"context":{"type":["string","null"]},"url":{"type":["string","null"]},"country":{"type":["string","null"]},"deviceType":{"type":["string","null"]},"trackableId":{"type":"integer"},"trackableType":{"anyOf":[{"$ref":"#/components/schemas/TrackableType"},{"type":"null"}]},"leadFormId":{"type":["integer","null"]},"leadFormName":{"type":["string","null"]},"submissionId":{"type":["integer","null"]},"browser":{"type":["string","null"]},"operatingSystem":{"type":["string","null"]},"locale":{"type":["string","null"]},"referer":{"type":["string","null"]},"path":{"type":["string","null"]},"hostname":{"type":["string","null"]},"origin":{"type":["string","null"]},"utmSource":{"type":["string","null"]},"utmMedium":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"utmTerm":{"type":["string","null"]},"utmContent":{"type":["string","null"]},"clickIdSource":{"type":["string","null"]},"clickIdValue":{"type":["string","null"]},"consentState":{"type":["string","null"]},"ingestSource":{"type":["string","null"]},"result":{"type":["string","null"]},"visitorSessionId":{"type":["integer","null"]},"payload":{"type":["string","null"]},"recipientEmail":{"type":["string","null"]},"deliveryStatus":{"type":["string","null"]},"deliveredAt":{"type":["string","null"]},"bouncedAt":{"type":["string","null"]},"bounceReason":{"type":["string","null"]},"bounceType":{"type":["string","null"]},"bounceCode":{"type":["string","null"]},"smtpCode":{"type":["string","null"]},"unsubscribedAt":{"type":["string","null"]},"unsubscribeReason":{"type":["string","null"]},"spamComplaintAt":{"type":["string","null"]},"envelopeId":{"type":["string","null"]},"sourceId":{"type":"integer"}},"required":["type","source","channel","eventName","campaignName","date","context","url","country","deviceType","trackableId","trackableType","leadFormId","leadFormName","submissionId","browser","operatingSystem","locale","referer","path","hostname","origin","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","clickIdSource","clickIdValue","consentState","ingestSource","result","visitorSessionId","payload","recipientEmail","deliveryStatus","deliveredAt","bouncedAt","bounceReason","bounceType","bounceCode","smtpCode","unsubscribedAt","unsubscribeReason","spamComplaintAt","envelopeId","sourceId"],"title":"ContactAnalyticsHistoryItemOutputData"},"ContactAnalyticsOutputData":{"type":"object","properties":{"stats":{"anyOf":[{"$ref":"#/components/schemas/ContactAnalyticsStatsOutputData"},{"type":"null"}],"description":"Počty odeslaných, otevřených a prokliknutých e-mailů. null, když Fusio pro kontakt ještě žádná čísla nemá."},"history":{"type":"array","items":{"$ref":"#/components/schemas/ContactAnalyticsHistoryItemOutputData"},"description":"Co se dělo s e-maily a na webu, nejnovější první."}},"required":["stats","history"],"title":"ContactAnalyticsOutputData"},"ContactAnalyticsStatsOutputData":{"type":"object","properties":{"totalSent":{"type":"integer"},"totalOpens":{"type":"integer"},"totalClicks":{"type":"integer"},"lastOpenAt":{"type":["string","null"]},"lastClickAt":{"type":["string","null"]},"engagementScore":{"type":"integer","description":"Jak moc člověk reaguje, v bodech. Víc je lepší."},"heatStatus":{"$ref":"#/components/schemas/HeatStatus","description":"Jak je člověk zrovna teplý, podle reakcí."},"frequencyRatio":{"type":"number"},"respondedCampaigns":{"type":"integer"},"totalCampaigns":{"type":"integer"}},"required":["totalSent","totalOpens","totalClicks","lastOpenAt","lastClickAt","engagementScore","heatStatus","frequencyRatio","respondedCampaigns","totalCampaigns"],"title":"ContactAnalyticsStatsOutputData"},"ContactEmailsData":{"type":"object","properties":{"sequences":{"type":"array","items":{"$ref":"#/components/schemas/PrivateOutreachSequenceData"},"description":"Sekvence e-mailů, ve kterých člověk je."},"scheduledEmails":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledPersonalEmailData"},"description":"E-maily naplánované na později."},"drafts":{"type":"array","items":{"$ref":"#/components/schemas/PersonalEmailDraftData"},"description":"Koncepty, které ještě neodešly. Vidíš jen svoje."},"conversations":{"type":"array","items":{"$ref":"#/components/schemas/EmailConversationData"},"description":"E-mailové konverzace s člověkem."},"nextCursor":{"$ref":"#/components/schemas/ContactEmailsNextCursorData","description":"Kde začíná další stránka každé části. null, když už nic dalšího není."}},"required":["sequences","scheduledEmails","drafts","conversations","nextCursor"],"title":"ContactEmailsData"},"ContactEmailsNextCursorData":{"type":"object","properties":{"sequences":{"type":["string","null"]},"scheduledEmails":{"type":["string","null"]},"drafts":{"type":["string","null"]},"conversations":{"type":["string","null"]}},"required":["sequences","scheduledEmails","drafts","conversations"],"title":"ContactEmailsNextCursorData"},"ContactHistoryPageOutputData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LeadHistoryRowData"},"description":"Události, nejnovější první."},"path":{"type":["string","null"]},"per_page":{"type":"integer"},"next_cursor":{"type":["string","null"],"description":"Pošli ho jako cursor a dostaneš další stránku. Na poslední stránce je null."},"next_page_url":{"type":["string","null"]},"prev_cursor":{"type":["string","null"],"description":"Pošli ho jako cursor a vrátíš se o stránku zpátky. Na první stránce je null."},"prev_page_url":{"type":["string","null"]},"typeCounts":{"anyOf":[{"$ref":"#/components/schemas/ContactHistoryTypeCountsData"},{"type":"null"}],"description":"Kolik je událostí každého typu. Jen na první stránce; další stránky mají null."}},"required":["data","path","per_page","next_cursor","next_page_url","prev_cursor","prev_page_url","typeCounts"],"title":"ContactHistoryPageOutputData"},"ContactHistoryTypeCountsData":{"type":"object","properties":{"click":{"type":"integer"},"open":{"type":"integer"},"sent":{"type":"integer"},"web":{"type":"integer"},"booking":{"type":"integer"},"deal":{"type":"integer"},"note":{"type":"integer"},"task":{"type":"integer"},"inquiry":{"type":"integer"},"email":{"type":"integer"},"form":{"type":"integer"},"ad":{"type":"integer"}},"required":["click","open","sent","web","booking","deal","note","task","inquiry","email","form","ad"],"title":"ContactHistoryTypeCountsData"},"ContactOutreachSummaryData":{"type":"object","properties":{"activeSequenceName":{"type":["string","null"]},"currentStep":{"type":["integer","null"]},"stepCount":{"type":["integer","null"]},"nextTouchAt":{"type":["string","null"]},"scheduledCount":{"type":"integer"}},"required":["activeSequenceName","currentStep","stepCount","nextTouchAt","scheduledCount"],"title":"ContactOutreachSummaryData"},"ContactTimeSeriesItemOutputData":{"type":"object","properties":{"date":{"type":"string","description":"Den."},"sent":{"type":"integer","description":"E-maily odeslané ten den."},"opens":{"type":"integer","description":"Otevření ten den."},"clicks":{"type":"integer","description":"Prokliknutí ten den."}},"required":["date","sent","opens","clicks"],"title":"ContactTimeSeriesItemOutputData"},"ContactType":{"type":"string","enum":["company","personal"],"title":"ContactType"},"ContextBundleData":{"type":"object","properties":{"origin":{"$ref":"#/components/schemas/AssetGenerationOrigin","description":"standalone (samostatný kus) nebo campaign (kus pro kampaň)."},"goal":{"type":"string","description":"Co má kus udělat."},"audience":{"type":"string","description":"Pro koho kus je."},"topicOrAngle":{"type":"string","description":"Téma, nebo strana tématu, ze které se kus dívá."},"hookCategory":{"$ref":"#/components/schemas/HookCategory","description":"Jak začátek upoutá pozornost, jedna z hodnot, které druh kusu dovolí."},"formatHint":{"type":["string","null"],"description":"Nápověda k tvaru, třeba seznam nebo příběh, nebo null."},"contentAtom":{"type":"string","description":"Jedna hlavní myšlenka, kterou kus nese."},"campaignSummary":{"type":["string","null"],"description":"Krátké shrnutí kampaně, nebo null."},"sourceDigest":{"type":["string","null"],"description":"Krátké shrnutí podkladů, ze kterých se píše, nebo null."},"recentAssets":{"type":["string","null"],"description":"Co jsi nedávno zveřejnil, aby to AI neopakovala, nebo null."},"audienceWarmth":{"anyOf":[{"$ref":"#/components/schemas/CampaignAudienceWarmth"},{"type":"null"}],"description":"U e-mailů, jak dobře tě lidé znají: cold, warm nebo owned (přihlásili se). U jiných kusů null."},"emailKind":{"type":["string","null"],"description":"U e-mailů: broadcast. U jiných kusů null."},"assetBrief":{"anyOf":[{"$ref":"#/components/schemas/AssetBriefData"},{"type":"null"}],"description":"Extra nápovědy z kampaně, nebo null."},"citableSources":{"description":"Zdroje, které kus smí citovat, každý s title a url."},"sourceMaterial":{"type":["string","null"],"description":"Text, ze kterého se píše, nebo null."},"allowWebResearch":{"type":"boolean","description":"true, když AI smí hledat na webu."},"internalLinkTargets":{"description":"Stránky tvého webu, na které kus smí odkázat, každá s title, url a keyword."},"offerRole":{"type":["string","null"],"description":"Role nabídky: attraction, upsell, downsell nebo continuity, nebo null."},"hashtagStrategy":{"anyOf":[{"$ref":"#/components/schemas/CampaignHashtagStrategy"},{"type":"null"}],"description":"U příspěvků, jak se používají hashtagy: none, minimal, trending nebo branded. U jiných kusů null."},"generateFirstComment":{"type":"boolean","description":"true, když AI napíše i první komentář pod příspěvek."},"firstCommentGuidance":{"type":["string","null"],"description":"Co má první komentář říkat, nebo null."},"ctaUrl":{"type":["string","null"],"description":"Stránka, kam vede tlačítko e-mailu, nebo null."}},"required":["origin","goal","audience","topicOrAngle","hookCategory","formatHint","contentAtom","campaignSummary","sourceDigest","recentAssets","audienceWarmth","emailKind","assetBrief","citableSources","sourceMaterial","allowWebResearch","internalLinkTargets","offerRole","hashtagStrategy","generateFirstComment","firstCommentGuidance","ctaUrl"],"title":"ContextBundleData"},"ContractType":{"type":"string","enum":["subscription","services","nda","dpa","framework","other"],"title":"ContractType"},"ConversionActionCategory":{"type":"string","enum":["lead","meeting","reply","purchase","subscription","deal","visit","other"],"title":"ConversionActionCategory"},"ConversionValueTotalData":{"type":"object","properties":{"currencyCode":{"type":"string"},"amount":{"type":"string"}},"required":["currencyCode","amount"],"title":"ConversionValueTotalData"},"CustomFieldType":{"type":"string","enum":["text","number","date","boolean","select","multi_select"],"title":"CustomFieldType"},"CustomerRevenueData":{"type":"object","properties":{"deals":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ConversionValueTotalData"}},"invoices":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ConversionValueTotalData"}}},"required":["deals","invoices"],"title":"CustomerRevenueData"},"CustomerType":{"type":"string","enum":["business","consumer","both"],"title":"CustomerType"},"CzechRegion":{"type":"string","enum":["Hlavní město Praha","Středočeský kraj","Jihočeský kraj","Plzeňský kraj","Karlovarský kraj","Ústecký kraj","Liberecký kraj","Královéhradecký kraj","Pardubický kraj","Kraj Vysočina","Jihomoravský kraj","Olomoucký kraj","Zlínský kraj","Moravskoslezský kraj"],"title":"CzechRegion"},"DealBillingInterval":{"type":"string","enum":["one_time","monthly","yearly"],"title":"DealBillingInterval"},"DealBoardData":{"type":"object","properties":{"activeCount":{"type":"integer"},"pipelineValues":{"type":"array","items":{"$ref":"#/components/schemas/DealCurrencyValueData"}},"pipelineByStage":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DealPipelineStageData"}}},"required":["activeCount","pipelineValues","pipelineByStage"],"title":"DealBoardData"},"DealClientLinkOutputData":{"type":"object","properties":{"url":{"type":"string"},"leadContactId":{"type":["integer","null"]},"recipientName":{"type":"string"},"recipientEmail":{"type":"string"},"mode":{"$ref":"#/components/schemas/DealClosingMode"},"requiresPayment":{"type":"boolean"},"remindsClient":{"type":"boolean"},"reminderOn":{"type":["string","null"]},"remindedAt":{"type":["string","null"]},"sentAt":{"type":"string"},"lastSentAt":{"type":"string"},"viewedAt":{"type":["string","null"]},"acceptedAt":{"type":["string","null"]},"paymentClaimedAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"invoiceId":{"type":["integer","null"]},"invoiceNumber":{"type":["string","null"]},"signingEnvelopeId":{"type":["integer","null"]},"invoiceFailedAt":{"type":["string","null"]}},"required":["url","leadContactId","recipientName","recipientEmail","mode","requiresPayment","remindsClient","reminderOn","remindedAt","sentAt","lastSentAt","viewedAt","acceptedAt","paymentClaimedAt","paidAt","invoiceId","invoiceNumber","signingEnvelopeId","invoiceFailedAt"],"title":"DealClientLinkOutputData"},"DealClosingCheck":{"type":"string","enum":["items","contact","document","account"],"title":"DealClosingCheck"},"DealClosingCheckOutputData":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/DealClosingCheck"},"isOk":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/DealClosingIssue"}},"documentId":{"type":["integer","null"]},"title":{"type":["string","null"]},"isSigned":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"string"}},"templateId":{"type":["integer","null"]},"productName":{"type":["string","null"]},"contractScope":{"anyOf":[{"$ref":"#/components/schemas/DealProductContractScope"},{"type":"null"}]}},"required":["key","isOk","issues","documentId","title","isSigned","missingFields","templateId","productName","contractScope"],"title":"DealClosingCheckOutputData"},"DealClosingIssue":{"type":"string","enum":["no_items","no_primary_contact","no_contact_email","no_document_version","document_not_ready","missing_fields","missing_client_signature_place","missing_organization_signature_place","no_account","account_currency_mismatch","account_incomplete","fakturoid_account_missing","account_not_from_fakturoid","invoice_supplier_missing","invoice_buyer_missing","invoice_currency_mismatch","invoice_vat_invalid","invoice_issuer_forbidden"],"title":"DealClosingIssue"},"DealClosingMode":{"type":"string","enum":["confirm","sign"],"title":"DealClosingMode"},"DealClosingOutputData":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/DealClosingMode"},"effectiveMode":{"$ref":"#/components/schemas/DealClosingMode"},"isSignForced":{"type":"boolean"},"requiresPayment":{"type":"boolean"},"bankAccountId":{"type":["integer","null"]},"paymentAccount":{"anyOf":[{"$ref":"#/components/schemas/TenantBankAccountOutputData"},{"type":"null"}]},"paymentIban":{"type":["string","null"]},"isReady":{"type":"boolean"},"missingCount":{"type":"integer"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/DealClosingCheckOutputData"}},"recipient":{"anyOf":[{"$ref":"#/components/schemas/DealClosingRecipientOutputData"},{"type":"null"}]},"clientLink":{"anyOf":[{"$ref":"#/components/schemas/DealClientLinkOutputData"},{"type":"null"}]},"hasFakturoid":{"type":"boolean"}},"required":["mode","effectiveMode","isSignForced","requiresPayment","bankAccountId","paymentAccount","paymentIban","isReady","missingCount","checks","recipient","clientLink","hasFakturoid"],"title":"DealClosingOutputData"},"DealClosingRecipientOutputData":{"type":"object","properties":{"leadContactId":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]}},"required":["leadContactId","name","email","phone"],"title":"DealClosingRecipientOutputData"},"DealContactOutputData":{"type":"object","properties":{"leadContactId":{"type":"integer"},"roles":{"type":"array","items":{"$ref":"#/components/schemas/DealContactRole"}},"leadContact":{"$ref":"#/components/schemas/LeadContact.IndexLeadContactData"}},"required":["leadContactId","roles","leadContact"],"title":"DealContactOutputData"},"DealContactRole":{"type":"string","enum":["primary","decision_maker","billing","technical","legal","other"],"title":"DealContactRole"},"DealCurrencyValueData":{"type":"object","properties":{"currency":{"type":"string"},"value":{"type":"string"}},"required":["currency","value"],"title":"DealCurrencyValueData"},"DealForecastData":{"type":"object","properties":{"currency":{"type":"string"},"won":{"type":"string"},"weighted":{"type":"string"},"estimate":{"type":"string"},"bestCase":{"type":"string"}},"required":["currency","won","weighted","estimate","bestCase"],"title":"DealForecastData"},"DealLineItemOutputData":{"type":"object","properties":{"id":{"type":"integer"},"sortOrder":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"string"},"unit":{"type":"string"},"unitPrice":{"type":"string"},"discountPercent":{"type":"string"},"vatRate":{"type":"string"},"net":{"type":"string"},"tax":{"type":"string"},"gross":{"type":"string"},"productId":{"type":["integer","null"]},"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval"},"giftPeriods":{"type":["integer","null"],"description":"Kolik fakturačních cyklů je položka zdarma. null, když dárek nemá."},"listUnitPrice":{"type":["string","null"]}},"required":["id","sortOrder","name","description","quantity","unit","unitPrice","discountPercent","vatRate","net","tax","gross","productId","billingInterval","giftPeriods","listUnitPrice"],"title":"DealLineItemOutputData"},"DealLostReason":{"type":"string","enum":["budget","timing","competitor","no_decision","poor_fit","other"],"title":"DealLostReason"},"DealMoneyTotalsData":{"type":"object","properties":{"net":{"type":"string"},"tax":{"type":"string"},"gross":{"type":"string"}},"required":["net","tax","gross"],"title":"DealMoneyTotalsData"},"DealNoteOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"noteableType":{"anyOf":[{"$ref":"#/components/schemas/NoteableType"},{"type":"null"}]},"noteableId":{"type":"integer"},"body":{"type":"string"},"leadOutreachTouchId":{"type":["integer","null"]},"outreachTouch":{"anyOf":[{"$ref":"#/components/schemas/NoteOutreachTouchData"},{"type":"null"}]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"pinnedAt":{"type":["string","null"]}},"required":["id","tenantId","userId","user","noteableType","noteableId","body","leadOutreachTouchId","outreachTouch","createdAt","updatedAt","pinnedAt"],"title":"DealNoteOutputData"},"DealOutputData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo obchodu."},"leadId":{"type":"integer","description":"Číslo leadu, kterému prodáváš."},"userId":{"type":"integer","description":"Člen, který obchod přidal."},"tenantId":{"type":"integer"},"name":{"type":"string"},"stage":{"$ref":"#/components/schemas/DealStage","description":"Kde obchod je: discovery, qualification, proposal, negotiation, won nebo lost."},"estimatedValue":{"type":["string","null"],"description":"Hodnota, kterou jsi odhadl, jako text. null, když žádnou nemáš."},"winProbability":{"type":"integer","description":"Šance na výhru v procentech."},"currency":{"type":"string"},"priceInputMode":{"$ref":"#/components/schemas/PriceInputMode"},"defaultVatRate":{"type":"string"},"totals":{"$ref":"#/components/schemas/DealMoneyTotalsData","description":"Součet všech položek bez DPH (net), DPH (tax) a s DPH (gross)."},"value":{"type":["string","null"],"description":"Hodnota obchodu: součet s DPH, když má položky, jinak estimatedValue."},"lineItems":{"type":"array","items":{"$ref":"#/components/schemas/DealLineItemOutputData"},"description":"Položky, v pořadí."},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/DealContactOutputData"},"description":"Kontakty obchodu s jejich rolemi."},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentOutputData"},"description":"Dokumenty obchodu."},"requiredDocuments":{"type":"array","items":{"$ref":"#/components/schemas/DocumentOutputData"},"description":"Dokumenty, které musí být podepsané, než obchod vyhraješ."},"expectedCloseDate":{"type":["string","null"]},"closedAt":{"type":["string","null"],"description":"Kdy byl obchod vyhraný nebo prohraný. null, dokud je otevřený."},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/DealLostReason"},{"type":"null"}]},"lostReasonNote":{"type":["string","null"]},"lead":{"$ref":"#/components/schemas/UpdateLeadData","description":"Lead obchodu."},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/DealTaskOutputData"},"description":"Úkoly tvého týmu k obchodu."},"notes":{"type":"array","items":{"$ref":"#/components/schemas/DealNoteOutputData"},"description":"Poznámky k obchodu."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"activityCount":{"type":["integer","null"],"description":"Kolik záznamů má historie obchodu. Počítá je jen tento endpoint; odpovědi na změny posílají null."},"documentsCount":{"type":"integer","description":"Kolik dokumentů obchod má."},"documentKinds":{"type":"array","items":{"$ref":"#/components/schemas/DocumentKind"},"description":"Druhy dokumentů obchodu, každý jednou."},"billingDetailsComplete":{"type":["boolean","null"],"description":"true, když má klient jméno, IČO a celou adresu pro fakturu předplatného Fusio. null u obchodů mimo Fusio."},"hasSubscriptionOrder":{"type":["boolean","null"],"description":"true, když z obchodu vznikla objednávka předplatného. null u obchodů mimo Fusio."},"closing":{"anyOf":[{"$ref":"#/components/schemas/DealClosingOutputData"},{"type":"null"}]},"userName":{"type":["string","null"]},"invoicesCount":{"type":["integer","null"]}},"required":["id","leadId","userId","tenantId","name","stage","estimatedValue","winProbability","currency","priceInputMode","defaultVatRate","totals","value","lineItems","contacts","documents","requiredDocuments","expectedCloseDate","closedAt","lostReason","lostReasonNote","lead","tasks","notes","createdAt","updatedAt","activityCount","documentsCount","documentKinds","billingDetailsComplete","hasSubscriptionOrder","closing","userName","invoicesCount"],"title":"DealOutputData"},"DealOverviewData":{"type":"object","properties":{"defaultCurrency":{"type":"string","description":"Hlavní měna tvé firmy."},"kpis":{"$ref":"#/components/schemas/DealOverviewKpisData","description":"Hlavní čísla: otevřené, vyhrané a prohrané obchody, podíl výher a kolik dní trvá uzavření obchodu."},"pipelineValues":{"type":"array","items":{"$ref":"#/components/schemas/OverviewMoneyKpiData"},"description":"Hodnota otevřených obchodů za každou měnu."},"wonValues":{"type":"array","items":{"$ref":"#/components/schemas/OverviewMoneyKpiData"},"description":"Hodnota vyhraných obchodů za každou měnu."},"lostValues":{"type":"array","items":{"$ref":"#/components/schemas/OverviewMoneyKpiData"},"description":"Hodnota prohraných obchodů za každou měnu."},"pipelineByStage":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DealPipelineStageData"},"description":"Kolik otevřených obchodů je v každé fázi."},"lostReasonCounts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik obchodů se prohrálo z každého důvodu."},"forecast":{"type":"array","items":{"$ref":"#/components/schemas/DealForecastData"},"description":"Co ještě můžeš vyhrát, za každou měnu: vyhrané, vážené šancí, odhadnuté a v nejlepším případě."},"board":{"$ref":"#/components/schemas/DealBoardData","description":"Čísla nástěnky právě teď, nejen za období."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["defaultCurrency","kpis","pipelineValues","wonValues","lostValues","pipelineByStage","lostReasonCounts","forecast","board","ready","rolledUpAt","range","previousRange","dates"],"title":"DealOverviewData"},"DealOverviewKpisData":{"type":"object","properties":{"active":{"$ref":"#/components/schemas/OverviewKpiData"},"won":{"$ref":"#/components/schemas/OverviewKpiData"},"lost":{"$ref":"#/components/schemas/OverviewKpiData"},"winRate":{"$ref":"#/components/schemas/OverviewKpiData"},"averageClosingDays":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["active","won","lost","winRate","averageClosingDays"],"title":"DealOverviewKpisData"},"DealOwnerScope":{"type":"string","enum":["all","mine"],"title":"DealOwnerScope"},"DealPipelineStageData":{"type":"object","properties":{"count":{"type":"integer"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DealCurrencyValueData"}}},"required":["count","values"],"title":"DealPipelineStageData"},"DealProductContractScope":{"type":"string","enum":["once_per_client","per_deal"],"title":"DealProductContractScope"},"DealProductContractTemplateOutputData":{"type":"object","properties":{"documentTemplateId":{"type":"integer"},"title":{"type":"string"},"contractType":{"anyOf":[{"$ref":"#/components/schemas/ContractType"},{"type":"null"}]},"scope":{"$ref":"#/components/schemas/DealProductContractScope"}},"required":["documentTemplateId","title","contractType","scope"],"title":"DealProductContractTemplateOutputData"},"DealProductData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"name":{"type":"string"},"sku":{"type":["string","null"]},"description":{"type":["string","null"]},"unit":{"type":"string"},"unitPrice":{"type":"string","description":"Cena jedné jednotky jako text, třeba 1500.000000."},"currency":{"type":"string"},"vatRate":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval"},"defaultQuantity":{"type":"string"},"defaultDiscountPercent":{"type":"string"},"dealsCount":{"type":"integer","description":"Kolik obchodů produkt používá."},"activeBillingPlansCount":{"type":"integer","description":"Kolik běžících plánů plateb produkt používá."},"contractTemplates":{"type":"array","items":{"$ref":"#/components/schemas/DealProductContractTemplateOutputData"}}},"required":["id","tenantId","name","sku","description","unit","unitPrice","currency","vatRate","isActive","createdAt","updatedAt","billingInterval","defaultQuantity","defaultDiscountPercent"],"title":"DealProductData"},"DealProductDealOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"companyName":{"type":["string","null"],"description":"Název leadu obchodu."},"stage":{"$ref":"#/components/schemas/DealStage"},"totalGross":{"type":"string","description":"Celková částka obchodu s DPH."},"currency":{"type":"string"}},"required":["id","name","companyName","stage","totalGross","currency"],"title":"DealProductDealOutputData"},"DealStage":{"type":"string","enum":["discovery","qualification","proposal","negotiation","won","lost"],"title":"DealStage"},"DealTaskOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"assigneeId":{"type":"integer"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"taskableType":{"$ref":"#/components/schemas/TaskableType"},"taskableId":{"type":"integer"},"noteId":{"type":["integer","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueAt":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/TaskStatus"},"completedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","userId","assigneeId","assignee","taskableType","taskableId","noteId","title","description","dueAt","status","completedAt","createdAt","updatedAt"],"title":"DealTaskOutputData"},"DecisionMakersData":{"type":"object","properties":{"role":{"type":"string"},"department":{"type":["string","null"]}},"required":["role","department"],"title":"DecisionMakersData"},"DetectedAvatarData":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"],"title":"DetectedAvatarData"},"DiscoveryAresLookupData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo leadu."},"registrationNumber":{"type":"string","description":"Uložené IČO."},"vatNumber":{"type":["string","null"],"description":"DIČ, nebo null."},"legalForm":{"type":["string","null"],"description":"Kód právní formy, nebo null."},"czNace":{"type":["string","null"],"description":"Kód CZ-NACE hlavního podnikání, nebo null."},"naceCategory":{"type":["string","null"],"description":"Oblast podnikání, nebo null."},"employeeBand":{"type":["string","null"],"description":"Kolik lidí tam pracuje, nebo null."},"region":{"type":["string","null"],"description":"Kraj, nebo null."},"fitGrade":{"type":"string","description":"Stupeň, jak lead sedí, po nových údajích."},"fitScore":{"type":["integer","null"],"description":"Jak lead sedí, jako číslo, nebo null."}},"required":["leadId","registrationNumber","vatNumber","legalForm","czNace","naceCategory","employeeBand","region","fitGrade","fitScore"],"title":"DiscoveryAresLookupData"},"DiscoveryLeadClaimItemData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo leadu."},"name":{"type":["string","null"],"description":"Název firmy, nebo null."},"website":{"type":["string","null"],"description":"Web, nebo null."},"registrationNumber":{"type":["string","null"],"description":"IČO, nebo null."},"city":{"type":["string","null"],"description":"Město, nebo null."},"discoverySource":{"type":"string","description":"Odkud lead Fusio našlo: ares, eshopy_cz nebo browser."},"browserSource":{"type":["string","null"],"description":"Web, ze kterého lead z prohlížeče pochází, nebo null u ostatních leadů."},"sourceRef":{"type":["string","null"],"description":"Odkaz na zdroj, třeba adresa profilu, nebo null."},"fitScore":{"type":"integer","description":"Jak lead sedí, jako číslo."},"reviewStatus":{"type":"string","description":"Kde je posouzení. Vždy in_review."},"claimedAt":{"type":["string","null"],"description":"Kdy jsi lead převzal, nebo null."},"hasResearchProfile":{"type":"boolean","description":"True, když lead už má výzkumný profil."}},"required":["leadId","name","website","registrationNumber","city","discoverySource","browserSource","sourceRef","fitScore","reviewStatus","claimedAt","hasResearchProfile"],"title":"DiscoveryLeadClaimItemData"},"DiscoveryLeadReviewData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo leadu."},"reviewStatus":{"type":"string","description":"Kde je posouzení. Je to ready_for_approval."},"reviewRecommendation":{"type":"string","description":"Tvoje rada: approve nebo dismiss."},"reviewReason":{"type":"string","description":"Tvůj důvod."},"fitScore":{"type":"integer","description":"Jak lead sedí teď, jako číslo."},"previousFitScore":{"type":"integer","description":"Jak lead seděl před tímto voláním."},"matchedPersonaName":{"type":["string","null"],"description":"Název persony zákazníka, která leadu sedí nejlépe, nebo null."}},"required":["leadId","reviewStatus","reviewRecommendation","reviewReason","fitScore","previousFitScore","matchedPersonaName"],"title":"DiscoveryLeadReviewData"},"DispatchedGenerationRunData":{"type":"object","properties":{"runId":{"type":"integer","description":"Číslo úlohy AI. Zeptej se s ním `ai.generation-runs.show`, jak jde."}},"required":["runId"],"title":"DispatchedGenerationRunData"},"DocumentContentOutputData":{"type":"object","properties":{"size":{"type":"integer"},"revision":{"type":"integer"},"updatedAt":{"type":["string","null"]}},"required":["size","revision","updatedAt"],"title":"DocumentContentOutputData"},"DocumentFileData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer"}},"required":["id","name","extension","mimeType","size"],"title":"DocumentFileData"},"DocumentKind":{"type":"string","enum":["contract","offer","payment_proof","other"],"title":"DocumentKind"},"DocumentOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"fileId":{"type":["integer","null"]},"leadId":{"type":["integer","null"]},"dealId":{"type":["integer","null"]},"kind":{"$ref":"#/components/schemas/DocumentKind"},"title":{"type":"string"},"isTemplate":{"type":"boolean"},"sourceTemplateId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"file":{"anyOf":[{"$ref":"#/components/schemas/DocumentFileData"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/DocumentSourceData"},"capabilities":{"$ref":"#/components/schemas/EntityActionCapabilitiesData"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"tenantSignedAt":{"type":["string","null"]},"tenantSignedByUserId":{"type":["integer","null"]},"clientSignedAt":{"type":["string","null"]},"clientSignedByName":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"contractType":{"anyOf":[{"$ref":"#/components/schemas/ContractType"},{"type":"null"}]},"activeSigningEnvelopeId":{"type":["integer","null"]},"parentDocumentId":{"type":["integer","null"]},"relationType":{"anyOf":[{"$ref":"#/components/schemas/DocumentRelationType"},{"type":"null"}]},"templateRelationType":{"anyOf":[{"$ref":"#/components/schemas/DocumentRelationType"},{"type":"null"}]},"parentDocumentTitle":{"type":["string","null"]},"childDocuments":{"type":"array","items":{"$ref":"#/components/schemas/ChildDocumentOutputData"}},"createdByName":{"type":["string","null"]},"sourceTemplateTitle":{"type":["string","null"]},"content":{"anyOf":[{"$ref":"#/components/schemas/DocumentContentOutputData"},{"type":"null"}]}},"required":["id","tenantId","fileId","leadId","dealId","kind","title","isTemplate","sourceTemplateId","createdBy","file","source","status","tenantSignedAt","tenantSignedByUserId","clientSignedAt","clientSignedByName","createdAt","contractType","activeSigningEnvelopeId","parentDocumentId","relationType","templateRelationType","parentDocumentTitle","childDocuments","createdByName","sourceTemplateTitle","content"],"title":"DocumentOutputData"},"DocumentRelationType":{"type":"string","enum":["amendment","call_off"],"title":"DocumentRelationType"},"DocumentSourceData":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DocumentSourceType"},"leadId":{"type":["integer","null"]},"dealId":{"type":["integer","null"]},"dealName":{"type":["string","null"]}},"required":["type","leadId","dealId","dealName"],"title":"DocumentSourceData"},"DocumentSourceType":{"type":"string","enum":["tenant","lead","deal"],"title":"DocumentSourceType"},"DocumentStatus":{"type":"string","enum":["draft","signed"],"title":"DocumentStatus"},"DraftSourceData":{"type":"object","properties":{"start":{"type":"integer"},"end":{"type":"integer"},"type":{"type":"string"},"label":{"type":"string"},"quote":{"type":["string","null"]},"url":{"type":["string","null"]},"confidence":{"type":["number","null"]},"messageFrameworkId":{"type":["string","null"]}},"required":["start","end","type","label","quote","url","confidence","messageFrameworkId"],"title":"DraftSourceData"},"EmailContactOverrideData":{"type":"object","properties":{"contactId":{"type":"integer"},"isExcluded":{"type":"boolean"}},"required":["contactId","isExcluded"],"title":"EmailContactOverrideData"},"EmailConversationData":{"type":"object","properties":{"id":{"type":"string"},"subject":{"type":["string","null"]},"status":{"type":"string"},"contactId":{"type":["string","null"]},"contactName":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"contactPosition":{"type":["string","null"]},"leadId":{"type":["string","null"]},"leadName":{"type":["string","null"]},"leadStage":{"type":["string","null"]},"userId":{"type":["integer","null"]},"lastMessageAt":{"type":["string","null"]},"unread":{"type":"boolean"},"closedAt":{"type":["string","null"]},"closedByUserName":{"type":["string","null"]},"messagesCount":{"type":"integer"},"stalwartThreadId":{"type":["string","null"]},"senderEmail":{"type":["string","null"]},"senderName":{"type":["string","null"]},"lastMessageDirection":{"type":["string","null"]},"lastMessagePreview":{"type":["string","null"]},"awaitingReply":{"type":"boolean"},"deliveryIssue":{"type":["string","null"]},"runningSequence":{"anyOf":[{"$ref":"#/components/schemas/EmailConversationSequenceSummaryData"},{"type":"null"}]},"nextScheduledAt":{"type":["string","null"]},"assigneeName":{"type":["string","null"]},"signatureExtract":{"anyOf":[{"$ref":"#/components/schemas/SignatureExtractData"},{"type":"null"}]},"isIgnored":{"type":"boolean"},"cadenceLogged":{"type":["boolean","null"]},"channel":{"type":"string"},"waId":{"type":["string","null"]},"whatsappReplyWindowEndsAt":{"type":["string","null"]},"ignoredSenderRuleId":{"type":["string","null"]},"categoryIds":{"type":"array","items":{"type":"string"}},"trashedAt":{"type":["string","null"]},"isFusioReading":{"type":"boolean"},"awayUntil":{"type":["string","null"]},"isUnsubscribed":{"type":"boolean"}},"required":["id","subject","status","contactId","contactName","contactEmail","contactPosition","leadId","leadName","leadStage","userId","lastMessageAt","unread","closedAt","closedByUserName","messagesCount","stalwartThreadId","senderEmail","senderName","lastMessageDirection","lastMessagePreview","awaitingReply","deliveryIssue","runningSequence","nextScheduledAt","assigneeName","signatureExtract","isIgnored","cadenceLogged","channel","waId","whatsappReplyWindowEndsAt","ignoredSenderRuleId","categoryIds","trashedAt","isFusioReading","awayUntil","isUnsubscribed"],"title":"EmailConversationData"},"EmailConversationSequenceSummaryData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"position":{"type":"integer"},"stepCount":{"type":"integer"},"status":{"type":"string"}},"required":["id","name","position","stepCount","status"],"title":"EmailConversationSequenceSummaryData"},"EmailGridTemplateData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"title":"EmailGridTemplateData"},"EmailMessageDirection":{"type":"string","enum":["in","out"],"title":"EmailMessageDirection"},"EmailRecipientContactScope":{"type":"string","enum":["primary","all"],"title":"EmailRecipientContactScope"},"EmailSignatureSource":{"type":"string","enum":["organization","user"],"title":"EmailSignatureSource"},"EmailState":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"],"title":"EmailState"},"EmailTemplateCategory":{"type":"string","enum":["article_newsletter","general_newsletter","promotion","re_engagement","warm_followup","lead_nurture","product_announcement","seasonal_campaign","survey","referral","event_invitation","welcome","onboarding","win_back","transactional","warm_announcement_cta","abandoned_action","general_update","lead_form_confirmation","sequence_opener","sequence_teach","sequence_proof","sequence_objection","sequence_close"],"title":"EmailTemplateCategory"},"EmailTemplateLayout":{"type":"string","enum":["announcement","newsletter","offer","invitation","letter","welcome","feedback","confirmation"],"title":"EmailTemplateLayout"},"EmailTemplateUsage":{"type":"string","enum":["marketing","private_outreach","whatsapp_outreach","invoice"],"title":"EmailTemplateUsage"},"EmbedCampaignDestinationData":{"type":"object","properties":{"id":{"type":"integer"},"destination":{"$ref":"#/components/schemas/CampaignDestination"},"priority":{"type":"integer"}},"required":["id","destination","priority"],"title":"EmbedCampaignDestinationData"},"EmbedMeUserOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"string"}},"permissions":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"isFallbackIdentity":{"type":"boolean"}},"required":["id","name","roles","permissions","scopes","isFallbackIdentity"],"title":"EmbedMeUserOutputData"},"EmployeeBand":{"type":"string","enum":["micro","small","medium","large","enterprise"],"title":"EmployeeBand"},"EngagementSignalClass":{"type":"string","enum":["low","mid","high","sticky","sticky_cleared"],"title":"EngagementSignalClass"},"EngagementSignalKey":{"type":"string","enum":["email_open","email_quick_open","email_click_cta","email_click_link","email_reply","whatsapp_reply","form_submission","soft_bounce_streak","spam_complaint","hard_bounce","unsubscribe","suppression_cleared","web_intent_hand_raiser","web_intent_standard","web_intent_subscription"],"title":"EngagementSignalKey"},"EntityActionCapabilitiesData":{"type":"object","properties":{"canShow":{"type":"boolean"},"canUpdate":{"type":"boolean"},"canDelete":{"type":"boolean"},"canUseTemplate":{"type":"boolean"},"canSign":{"type":"boolean"}},"required":["canShow","canUpdate","canDelete"],"title":"EntityActionCapabilitiesData"},"EntityAssignmentOutputData":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer","description":"Člen, který se o lead stará."},"userFirstName":{"type":["string","null"],"description":"Křestní jméno toho člena."},"userLastName":{"type":["string","null"],"description":"Příjmení toho člena."},"isOwner":{"type":"boolean","description":"Jestli to tenhle člen řeší."},"assignableType":{"type":"string"},"assignableId":{"type":"integer"},"createdAt":{"type":["string","null"],"description":"Kdy člen lead dostal."}},"required":["id","userId","userFirstName","userLastName","isOwner","assignableType","assignableId","createdAt"],"title":"EntityAssignmentOutputData"},"ErrorResponse":{"type":"object","properties":{"status":{"type":"string","const":"error"},"message":{"type":"string"},"errorId":{"type":"string"},"payload":{"type":"object","properties":{"error":{"type":"string"}},"additionalProperties":{}}},"required":["message"],"title":"ErrorResponse"},"ExternalAdAccountDsaRecommendationsData":{"type":"object","properties":{"recommendations":{"type":"array","items":{"type":"string"},"description":"Jména, která můžeš uvést jako příjemce a plátce reklam. Jména uložená u reklamního účtu jsou první."}},"required":["recommendations"],"title":"ExternalAdAccountDsaRecommendationsData"},"ExternalAdAccountInstagramData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo instagramového účtu v reklamní síti."},"username":{"type":"string","description":"Uživatelské jméno na Instagramu."},"pageId":{"type":["string","null"],"description":"Stránka na Facebooku, ke které je účet propojený, nebo null."}},"required":["id","username","pageId"],"title":"ExternalAdAccountInstagramData"},"ExternalAdAccountPageData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo stránky v reklamní síti."},"name":{"type":"string","description":"Název stránky."},"canAdvertise":{"type":"boolean","description":"true, když za tuhle stránku můžou běžet reklamy."}},"required":["id","name","canAdvertise"],"title":"ExternalAdAccountPageData"},"ExternalAdAccountPixelData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo pixelu v reklamní síti."},"name":{"type":["string","null"],"description":"Název pixelu, nebo null."}},"required":["id","name"],"title":"ExternalAdAccountPixelData"},"ExtractedBrandVoiceData":{"type":"object","properties":{"tone":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceTone"},{"type":"null"}],"description":"Tón, který AI našla."},"readingLevel":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceReadingLevel"},{"type":"null"}],"description":"Jak těžké jsou texty na čtení."},"persona":{"type":["string","null"],"description":"Kdo asi mluví."},"preferPhrases":{"type":"array","items":{"type":"string"},"description":"Fráze, které texty rády používají."},"avoidPhrases":{"type":"array","items":{"type":"string"},"description":"Fráze, kterým se texty mají vyhnout."},"description":{"type":["string","null"],"description":"Jak hlas zní."},"rationale":{"type":["string","null"],"description":"Proč si to AI myslí."}},"required":["tone","readingLevel","persona","preferPhrases","avoidPhrases","description","rationale"],"title":"ExtractedBrandVoiceData"},"ExtractedData":{"type":"object","properties":{"goal":{"$ref":"#/components/schemas/CampaignGoal"},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}]},"goalMetricTarget":{"type":["number","null"]},"goalMetricLabel":{"type":["string","null"]},"product":{"type":["string","null"]},"audience":{"type":["string","null"]},"timing":{"$ref":"#/components/schemas/TimingData"},"mode":{"$ref":"#/components/schemas/CampaignMode"},"tone":{"anyOf":[{"$ref":"#/components/schemas/TenantBrandVoiceTone"},{"type":"null"}]},"destinations":{"type":"array","items":{"$ref":"#/components/schemas/CampaignDestination"}},"suggestedCtas":{"type":"array","items":{"$ref":"#/components/schemas/Campaign.Ai.SuggestedCtaData"}}},"required":["goal","goalMetricType","goalMetricTarget","goalMetricLabel","product","audience","timing","mode","tone","destinations","suggestedCtas"],"title":"ExtractedData"},"FileDerivativeData":{"type":"object","properties":{"file":{"$ref":"#/components/schemas/UpdateFileData"},"profile":{"type":["string","null"]},"usageCount":{"type":"integer"},"isInUse":{"type":"boolean"},"usage":{"type":"array","items":{"$ref":"#/components/schemas/FileUsageData"}}},"required":["file","profile","usageCount","isInUse","usage"],"title":"FileDerivativeData"},"FileDetailData":{"type":"object","properties":{"file":{"$ref":"#/components/schemas/UpdateFileData"},"usageCount":{"type":"integer"},"isInUse":{"type":"boolean"},"canDelete":{"type":"boolean","description":"true, když soubor smíš smazat."},"canReplace":{"type":"boolean"},"usage":{"type":"array","items":{"$ref":"#/components/schemas/FileUsageData"},"description":"Kde se soubor používá, třeba v článku."},"derivatives":{"type":"array","items":{"$ref":"#/components/schemas/FileDerivativeData"}}},"required":["file","usageCount","isInUse","canDelete","canReplace","usage","derivatives"],"title":"FileDetailData"},"FileExtensionsData":{"type":"object","properties":{"extensions":{"type":"array","items":{"type":"string"},"description":"Přípony souborů, třeba jpg nebo pdf, nejvýš 200."}},"required":["extensions"],"title":"FileExtensionsData"},"FileUsageData":{"type":"object","properties":{"fileId":{"type":"integer"},"entityType":{"type":"string"},"entityId":{"type":"integer"},"entityName":{"type":"string"},"role":{"type":"string"}},"required":["fileId","entityType","entityId","entityName","role"],"title":"FileUsageData"},"FollowUpInputType":{"type":"string","enum":["single_choice","multi_choice","text","date"],"title":"FollowUpInputType"},"FollowUpQuestionData":{"type":"object","properties":{"field":{"type":"string"},"question":{"type":"string"},"inputType":{"$ref":"#/components/schemas/FollowUpInputType"},"options":{"type":["array","null"],"items":{"$ref":"#/components/schemas/FollowUpQuestionOptionData"}},"allowSkip":{"type":"boolean"},"suggestedValue":{"type":["string","null"]}},"required":["field","question","inputType","options","allowSkip","suggestedValue"],"title":"FollowUpQuestionData"},"FollowUpQuestionOptionData":{"type":"object","properties":{"value":{"type":"string","description":"Hodnota, kterou pošleš jako odpověď."},"label":{"type":"string","description":"Text k zobrazení."}},"required":["value","label"],"title":"FollowUpQuestionOptionData"},"GlossaryData":{"type":"object","properties":{"term":{"type":"string"},"meaning":{"type":"string"}},"required":["term","meaning"],"title":"GlossaryData"},"GoogleAdsCategoryData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"title":"GoogleAdsCategoryData"},"GoogleAdsDeploymentAdData":{"type":"object","properties":{"id":{"type":"string"},"resourceName":{"type":"string"},"status":{"type":"string"},"finalUrls":{"type":"array","items":{"type":"string"}},"headlines":{"type":"array","items":{"type":"string"}},"descriptions":{"type":"array","items":{"type":"string"}},"path1":{"type":["string","null"]},"path2":{"type":["string","null"]}},"required":["id","resourceName","status","finalUrls","headlines","descriptions","path1","path2"],"title":"GoogleAdsDeploymentAdData"},"GoogleAdsDeploymentAssetData":{"type":"object","properties":{"linkResourceName":{"type":"string"},"status":{"type":"string"},"fieldType":{"type":"string","description":"sitelink (další odkaz) nebo callout (krátký text)."},"assetResourceName":{"type":"string"},"name":{"type":["string","null"]},"finalUrls":{"type":"array","items":{"type":"string"}},"linkText":{"type":["string","null"]},"description1":{"type":["string","null"]},"description2":{"type":["string","null"]},"calloutText":{"type":["string","null"]},"ownedByDeployment":{"type":"boolean","description":"true, když ho vytvořilo Fusio."}},"required":["linkResourceName","status","fieldType","assetResourceName","name","finalUrls","linkText","description1","description2","calloutText","ownedByDeployment"],"title":"GoogleAdsDeploymentAssetData"},"GoogleAdsDeploymentCampaignData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo kampaně v Google Ads."},"resourceName":{"type":"string","description":"Celý název kampaně v Google Ads, třeba customers/1/campaigns/2."},"name":{"type":"string","description":"Název kampaně."},"status":{"type":"string","description":"enabled (běží) nebo paused."},"channelType":{"type":"string","description":"Druh kampaně v Google Ads, třeba search."},"biddingStrategyType":{"type":"string","description":"Jak Google přihazuje o kliknutí."},"enhancedCpcEnabled":{"type":"boolean","description":"true, když smí Google zvýšit nabídky u pravděpodobných výsledků."},"dailyBudgetAmount":{"type":"string","description":"Kolik smí kampaň utratit za den."},"currencyCode":{"type":"string","description":"Měna, třeba CZK."},"networks":{"description":"Kde se reklamy ukazují, třeba Google Search a vyhledávací partneři."},"targeting":{"description":"Místa a jazyky kampaně."},"groups":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsDeploymentGroupData"},"description":"Reklamní sestavy, každá se svou reklamou, klíčovými slovy a dalšími odkazy a texty."},"budgetResourceName":{"type":["string","null"],"description":"Celý název rozpočtu v Google Ads, nebo null."},"adScheduleCriteria":{"type":"array","items":{"type":"string"},"description":"Časy v týdnu, kdy se reklamy ukazují. Prázdné, když vždy."}},"required":["id","resourceName","name","status","channelType","biddingStrategyType","enhancedCpcEnabled","dailyBudgetAmount","currencyCode","networks","targeting","groups","budgetResourceName","adScheduleCriteria"],"title":"GoogleAdsDeploymentCampaignData"},"GoogleAdsDeploymentDetailData":{"type":"object","properties":{"deployment":{"$ref":"#/components/schemas/AdDeploymentData","description":"Nasazení, jak ho zná Fusio."},"campaign":{"$ref":"#/components/schemas/GoogleAdsDeploymentCampaignData","description":"Kampaň, jak ji má Google Ads teď."}},"required":["deployment","campaign"],"title":"GoogleAdsDeploymentDetailData"},"GoogleAdsDeploymentGroupData":{"type":"object","properties":{"id":{"type":"string"},"resourceName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","description":"enabled nebo paused."},"ad":{"$ref":"#/components/schemas/GoogleAdsDeploymentAdData","description":"Vyhledávací reklama sestavy."},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsDeploymentKeywordData"},"description":"Klíčová slova sestavy."},"assets":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsDeploymentAssetData"},"description":"Další odkazy a krátké texty sestavy."}},"required":["id","resourceName","name","status","ad","keywords","assets"],"title":"GoogleAdsDeploymentGroupData"},"GoogleAdsDeploymentKeywordData":{"type":"object","properties":{"id":{"type":"string"},"resourceName":{"type":"string"},"status":{"type":"string"},"text":{"type":"string"},"matchType":{"type":"string"},"negative":{"type":"boolean","description":"true u vylučujícího klíčového slova."}},"required":["id","resourceName","status","text","matchType","negative"],"title":"GoogleAdsDeploymentKeywordData"},"GoogleAdsDeploymentPreflightData":{"type":"object","properties":{"enabled":{"type":"boolean","description":"false, když je posílání do Google Ads pro tvou firmu vypnuté."},"canDeploy":{"type":"boolean","description":"true, když můžeš kampaň poslat teď."},"createsPausedCampaign":{"type":"boolean","description":"true: kampaň dorazí do Google Ads pozastavená, takže se nic neutratí, dokud ji nespustíš."},"blockers":{"type":"array","items":{"type":"string"},"description":"Co brání odeslání. Prázdné, když nic."},"adAccountId":{"type":["integer","null"],"description":"Číslo tvého účtu Google Ads ve Fusiu, nebo null."},"customerId":{"type":["string","null"],"description":"Číslo tvého účtu v Google Ads, nebo null."},"currencyCode":{"type":["string","null"],"description":"Měna účtu, nebo null."},"dailyBudgetAmount":{"type":"string","description":"Kolik by kampaň utratila za den."},"planRevision":{"type":"string","description":"Verze plánu. Pošli ji do `google-ads-search-campaigns.google-ads.deploy`."}},"required":["enabled","canDeploy","createsPausedCampaign","blockers","adAccountId","customerId","currencyCode","dailyBudgetAmount","planRevision"],"title":"GoogleAdsDeploymentPreflightData"},"GoogleAdsSearchAdData":{"type":"object","properties":{"headlines":{"description":"Nadpisy reklamy."},"descriptions":{"description":"Popisy reklamy."},"sitelinks":{"description":"Další odkazy pod reklamou, každý s textem, dvěma řádky a adresou."},"callouts":{"description":"Krátké doplňující texty pod reklamou."},"headlinePins":{"description":"Kde musí který nadpis stát: 1, 2, 3 nebo null (vybere Google)."},"descriptionPins":{"description":"Kde musí který popis stát: 1, 2 nebo null (vybere Google)."},"snippets":{"description":"Položky seznamu věcí, které nabízíš."},"path1":{"type":"string","description":"První slovo cesty za tvou doménou."},"path2":{"type":"string","description":"Druhé slovo cesty za tvou doménou."},"snippetHeader":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchSnippetHeader"},{"type":"null"}],"description":"Nadpis seznamu, nebo null, když seznam není."}},"required":["headlines","descriptions","sitelinks","callouts","headlinePins","descriptionPins","snippets","path1","path2","snippetHeader"],"title":"GoogleAdsSearchAdData"},"GoogleAdsSearchAdGroupData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo reklamní sestavy."},"googleAdsSearchCampaignId":{"type":"integer","description":"Číslo kampaně, do které patří."},"name":{"type":"string","description":"Název reklamní sestavy."},"description":{"type":["string","null"],"description":"Poznámka k reklamní sestavě."},"searchIntent":{"type":["string","null"],"description":"Co lidé chtějí, když hledají tahle klíčová slova."},"status":{"type":"string","description":"draft, approved nebo archived."},"priorityScore":{"type":["string","null"],"description":"Jak je reklamní sestava důležitá, od 0 do 999.99."},"rationale":{"type":["string","null"],"description":"Proč je reklamní sestava v kampani."},"researchQuality":{"type":["string","null"],"description":"Jak dobrý byl průzkum klíčových slov: sufficient, partial nebo insufficient. null před průzkumem."},"researchQualityReason":{"type":["string","null"],"description":"Proč průzkum nestačil, třeba limited_candidate_pool nebo low_metric_coverage."},"researchDiagnostics":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchResearchDiagnosticsData"},{"type":"null"}],"description":"Čísla z průzkumu klíčových slov, třeba kolik slov našel a vybral."},"landingPageDecision":{"type":"string","description":"Kam reklama vede: homepage, existing_page, new_landing_page nebo insufficient_data (AI nevěděla)."},"destinationUrl":{"type":["string","null"],"description":"Stránka, kam reklama vede."},"mobileFinalUrl":{"type":["string","null"],"description":"Jiná adresa pro telefony, nebo null."},"verifiedUrls":{"type":"array","items":{"type":"string"},"description":"Stránky tvého webu, kam smí reklama a její odkazy vést."},"searchAd":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchAdData"},{"type":"null"}],"description":"Texty vyhledávací reklamy, nebo null, dokud nejsou napsané."},"searchAdGenerationStatus":{"type":"string","description":"Jak jde AI psaní reklamy: missing, queued, generating, ready nebo failed."},"searchAdGenerationError":{"type":["string","null"],"description":"Proč AI nemohla reklamu napsat, nebo null."},"searchAdGeneratedAt":{"type":["string","null"],"description":"Kdy AI reklamu naposledy napsala, nebo null."},"landingPageFitScore":{"type":["integer","null"],"description":"Jak dobře stránka sedí ke klíčovým slovům, od 0 do 100."},"landingPageReason":{"type":["string","null"],"description":"Proč byla vybrána tahle stránka."},"landingPageBrief":{"type":["string","null"],"description":"Co má nová vstupní stránka říkat."},"forecastImpressions":{"type":["integer","null"],"description":"Kolikrát se podle Googlu reklamy za měsíc ukážou."},"forecastClicks":{"type":["integer","null"],"description":"Kolik kliknutí Google za měsíc čeká."},"forecastCost":{"type":["string","null"],"description":"Kolik to podle Googlu za měsíc stojí."},"forecastAverageCpc":{"type":["string","null"],"description":"Cena jednoho kliknutí, kterou Google čeká."},"forecastedAt":{"type":["string","null"],"description":"Kdy Google odhad udělal, nebo null."},"sortOrder":{"type":"integer","description":"Její místo v kampani, od 0."},"updatedAt":{"type":"string","description":"Kdy se naposledy změnila."},"revision":{"type":"string","description":"Verze reklamní sestavy. Pošli ji jako expectedRevision, když reklamu ukládáš."},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupKeywordData"},"description":"Klíčová slova reklamní sestavy."},"excludedSearchAdTexts":{"$ref":"#/components/schemas/GoogleAdsSearchExcludedAdTextsData","description":"Texty, které AI nesmí napsat znovu."}},"required":["id","googleAdsSearchCampaignId","name","description","searchIntent","status","priorityScore","rationale","researchQuality","researchQualityReason","researchDiagnostics","landingPageDecision","destinationUrl","mobileFinalUrl","verifiedUrls","searchAd","searchAdGenerationStatus","searchAdGenerationError","searchAdGeneratedAt","landingPageFitScore","landingPageReason","landingPageBrief","forecastImpressions","forecastClicks","forecastCost","forecastAverageCpc","forecastedAt","sortOrder","updatedAt","revision","keywords","excludedSearchAdTexts"],"title":"GoogleAdsSearchAdGroupData"},"GoogleAdsSearchAdGroupKeywordData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo klíčového slova."},"googleAdsSearchAdGroupId":{"type":"integer","description":"Číslo reklamní sestavy, do které patří."},"tenantKeywordOpportunityId":{"type":["integer","null"],"description":"SEO příležitost klíčového slova, ze které vzniklo, nebo null."},"keyword":{"type":"string","description":"Klíčové slovo."},"matchType":{"type":"string","description":"exact, phrase nebo broad."},"keywordRole":{"type":"string","description":"positive (reklamy se pro něj ukazují) nebo negative (reklamy se pro něj nikdy neukazují)."},"intent":{"type":["string","null"],"description":"Co lidé chtějí, když ho hledají."},"searchVolume":{"type":["integer","null"],"description":"Kolik lidí ho hledá za měsíc, podle Googlu."},"isVolumeUnknown":{"type":["boolean","null"],"description":"true, když Google neví, kolik lidí ho hledá."},"cpcLow":{"type":["string","null"],"description":"Nízká obvyklá cena jednoho kliknutí."},"cpcHigh":{"type":["string","null"],"description":"Vysoká obvyklá cena jednoho kliknutí."},"currencyCode":{"type":["string","null"],"description":"Měna cen, třeba CZK."},"competitionIndex":{"type":["integer","null"],"description":"Kolik inzerentů o něj stojí, od 0 do 100."},"status":{"type":"string","description":"proposed, approved nebo excluded."},"priorityScore":{"type":["string","null"],"description":"Jak je důležité, od 0 do 999.99."},"budgetFit":{"type":"string","description":"Jestli na něj rozpočet stačí: viable, limited, infeasible nebo unknown."},"rationale":{"type":["string","null"],"description":"Proč je v reklamní sestavě."},"evidenceSource":{"type":["string","null"],"description":"Odkud pochází: google_idea, seo_portfolio nebo deterministic_identity (tvoje jméno nebo jméno konkurenta)."},"isSeoRecommended":{"type":"boolean","description":"true, když ho doporučuje tvůj SEO audit."},"seedFamily":{"type":["string","null"],"description":"Skupina výchozích slov, ze které vyrostlo, nebo null."},"negativeSource":{"type":["string","null"],"description":"Proč je vylučující: business_exclusion, campaign_routing, category_collision nebo review_suggestion. null u pozitivního."},"sortOrder":{"type":"integer","description":"Jeho místo v seznamu, od 0."}},"required":["id","googleAdsSearchAdGroupId","tenantKeywordOpportunityId","keyword","matchType","keywordRole","intent","searchVolume","isVolumeUnknown","cpcLow","cpcHigh","currencyCode","competitionIndex","status","priorityScore","budgetFit","rationale","evidenceSource","isSeoRecommended","seedFamily","negativeSource","sortOrder"],"title":"GoogleAdsSearchAdGroupKeywordData"},"GoogleAdsSearchAdSchedule":{"type":"string","enum":["always","business_hours"],"title":"GoogleAdsSearchAdSchedule"},"GoogleAdsSearchAdSuggestionData":{"type":"object","properties":{"destinationUrl":{"type":"string","description":"Stránka, kam reklama vede."},"searchAd":{"$ref":"#/components/schemas/GoogleAdsSearchAdData"}},"required":["destinationUrl","searchAd"],"title":"GoogleAdsSearchAdSuggestionData"},"GoogleAdsSearchAdTextSource":{"type":"string","enum":["offer","website","keywords","seo_audit","company"],"title":"GoogleAdsSearchAdTextSource"},"GoogleAdsSearchAdTextSuggestionData":{"type":"object","properties":{"text":{"type":"string","description":"Navržený text."},"description1":{"type":["string","null"],"description":"U sitelinks: první řádek pod odkazem. Jinak null."},"description2":{"type":["string","null"],"description":"U sitelinks: druhý řádek pod odkazem. Jinak null."},"finalUrl":{"type":["string","null"],"description":"U sitelinks: stránka, kam odkaz vede. Jinak null."},"source":{"$ref":"#/components/schemas/GoogleAdsSearchAdTextSource","description":"Odkud to AI vzala: offer, website, keywords, seo_audit nebo company."},"matchType":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchKeywordMatchType"},{"type":"null"}],"description":"U klíčových slov: exact, phrase nebo broad. Jinak null."},"reason":{"type":["string","null"],"description":"Proč to AI navrhuje, nebo null."}},"required":["text","description1","description2","finalUrl","source","matchType","reason"],"title":"GoogleAdsSearchAdTextSuggestionData"},"GoogleAdsSearchAdTextSuggestionsData":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/GoogleAdsSearchSuggestionField","description":"Pro co návrhy jsou."},"suggestions":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchAdTextSuggestionData"},"description":"Navržené texty."}},"required":["field","suggestions"],"title":"GoogleAdsSearchAdTextSuggestionsData"},"GoogleAdsSearchBiddingStrategy":{"type":"string","enum":["manual_cpc","maximize_clicks","maximize_conversions","target_cpa"],"title":"GoogleAdsSearchBiddingStrategy"},"GoogleAdsSearchBriefConversionGoalPickOutputData":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/GoogleAdsSearchConversionGoalMode","description":"account nebo own."},"trackingEventIds":{"type":"array","items":{"type":"integer"},"description":"Čísla tvých událostí ve Fusiu pro own. Prázdné pro account."},"reason":{"type":"string","description":"Proč to AI vybrala."}},"required":["mode","trackingEventIds","reason"],"title":"GoogleAdsSearchBriefConversionGoalPickOutputData"},"GoogleAdsSearchBriefLandingPagePickOutputData":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":"string"},"fitScore":{"type":"integer","description":"Jak dobře stránka sedí, od 0 do 100."},"reason":{"type":"string","description":"Proč ji AI vybrala."}},"required":["url","title","fitScore","reason"],"title":"GoogleAdsSearchBriefLandingPagePickOutputData"},"GoogleAdsSearchBriefPicksOutputData":{"type":"object","properties":{"landingPage":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchBriefLandingPagePickOutputData"},{"type":"null"}],"description":"Stránka tvého webu, kterou AI vybrala, nebo null, když žádná nesedí."},"conversionGoal":{"$ref":"#/components/schemas/GoogleAdsSearchBriefConversionGoalPickOutputData","description":"Co by se podle AI mělo počítat jako úspěch."}},"required":["landingPage","conversionGoal"],"title":"GoogleAdsSearchBriefPicksOutputData"},"GoogleAdsSearchBudgetAllocationMode":{"type":"string","enum":["auto","manual"],"title":"GoogleAdsSearchBudgetAllocationMode"},"GoogleAdsSearchCampaignConversionGoalModeData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo kampaně."},"usesOwnConversionGoals":{"type":"boolean","description":"true, když kampaň počítá tvoje vlastní události ve Fusiu."}},"required":["id","usesOwnConversionGoals"],"title":"GoogleAdsSearchCampaignConversionGoalModeData"},"GoogleAdsSearchCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"sourceSeoAuditId":{"type":["integer","null"],"description":"SEO audit, ze kterého kampaň vznikla, nebo null."},"name":{"type":"string"},"utmSlug":{"type":"string","description":"Krátký název, který se používá v UTM odkazech kampaně."},"campaignKind":{"type":"string","description":"brand (hledání tvého jména), non_brand (hledání toho, co prodáváš) nebo competitor (hledání konkurenta)."},"origin":{"type":"string","description":"Jak kampaň vznikla: initial_analysis, manual_ai (požádal jsi AI) nebo manual (udělal jsi ji ty)."},"status":{"type":"string","description":"draft (ještě na ní pracuješ), approved (připravená k odeslání do Google Ads) nebo archived."},"isDetachedFromAccount":{"type":"boolean"},"adAccountId":{"type":["integer","null"]},"adAccountName":{"type":["string","null"]},"viability":{"type":"string","description":"Kolik lidí to hledá: recommended, limited nebo insufficient_demand."},"monthlyBudgetAmount":{"type":["string","null"],"description":"Kolik smí kampaň utratit za měsíc, jako text třeba \"15000.00\"."},"budgetCurrencyCode":{"type":["string","null"]},"budgetAllocationMode":{"type":"string","description":"auto (rozpočet rozdělí Fusio) nebo manual (ty)."},"biddingStrategy":{"type":"string","description":"Jak Google přihazuje: manual_cpc, maximize_clicks, maximize_conversions nebo target_cpa."},"bidLimitAmount":{"type":["string","null"]},"startsOn":{"type":["string","null"]},"endsOn":{"type":["string","null"]},"adSchedule":{"type":"string","description":"Kdy se reklamy ukazují: always nebo business_hours."},"targetsSearchPartners":{"type":"boolean"},"trackingUrlTemplate":{"type":["string","null"]},"businessName":{"type":["string","null"]},"businessLogo":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchLogoData"},{"type":"null"}]},"businessLandscapeLogo":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchLogoData"},{"type":"null"}]},"callPhoneNumber":{"type":["string","null"]},"images":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchImageData"}},"skippedOptionalAssets":{"type":"array","items":{"type":"string"}},"createOnlySettingsLocked":{"type":"boolean"},"targeting":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchTargetingData"},{"type":"null"}],"description":"Kde se reklamy ukazují a v jakém jazyce."},"targetingResearchCurrent":{"type":"boolean"},"rationale":{"type":["string","null"]},"googleFinalUrlSuffix":{"type":"string"},"googleUrlSuffixState":{"type":"string"},"googleUrlSuffixError":{"type":["string","null"]},"usesOwnConversionGoals":{"type":"boolean"},"generationStage":{"type":["string","null"],"description":"Co AI právě dělá, když kampaň staví, třeba researching_keywords. null, když nic nedělá."},"generationBrief":{"type":["string","null"]},"generationError":{"type":["string","null"],"description":"Proč AI nemohla kampaň postavit."},"competitorId":{"type":["integer","null"]},"conversionGoalMode":{"type":"string","description":"account (cíle tvého účtu Google Ads) nebo own (tvoje vlastní události ve Fusiu)."},"ownTrackingEventIds":{"type":"array","items":{"type":"integer"}},"conversionGoalReason":{"type":["string","null"]},"adScheduleReason":{"type":["string","null"]},"isAiGenerated":{"type":"boolean"},"adGroups":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchAdGroupData"},"description":"Reklamní sestavy, každá se svými klíčovými slovy a reklamou."},"latestDeployment":{"anyOf":[{"$ref":"#/components/schemas/AdDeploymentData"},{"type":"null"}],"description":"Poslední odeslání kampaně do Google Ads, nebo null."},"approvalBlockers":{"type":"array","items":{"type":"string"},"description":"Co se musí opravit, než kampaň půjde schválit. Prázdné, když nic."},"issue":{"anyOf":[{"$ref":"#/components/schemas/AdIssueData"},{"type":"null"}],"description":"Problém, který má Google Ads s kampaní, nebo null."},"tenantSequence":{"type":["integer","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","sourceSeoAuditId","name","utmSlug","campaignKind","origin","status","isDetachedFromAccount","adAccountId","adAccountName","viability","monthlyBudgetAmount","budgetCurrencyCode","budgetAllocationMode","biddingStrategy","bidLimitAmount","startsOn","endsOn","adSchedule","targetsSearchPartners","trackingUrlTemplate","businessName","businessLogo","businessLandscapeLogo","callPhoneNumber","images","skippedOptionalAssets","createOnlySettingsLocked","targeting","targetingResearchCurrent","rationale","googleFinalUrlSuffix","googleUrlSuffixState","googleUrlSuffixError","usesOwnConversionGoals","generationStage","generationBrief","generationError","competitorId","conversionGoalMode","ownTrackingEventIds","conversionGoalReason","adScheduleReason","isAiGenerated","adGroups","latestDeployment","approvalBlockers","issue","tenantSequence","createdAt","updatedAt"],"title":"GoogleAdsSearchCampaignData"},"GoogleAdsSearchCampaignKind":{"type":"string","enum":["brand","non_brand","competitor"],"title":"GoogleAdsSearchCampaignKind"},"GoogleAdsSearchCampaignViability":{"type":"string","enum":["recommended","limited","insufficient_demand"],"title":"GoogleAdsSearchCampaignViability"},"GoogleAdsSearchConversionGoalMode":{"type":"string","enum":["account","own"],"title":"GoogleAdsSearchConversionGoalMode"},"GoogleAdsSearchDeploymentMode":{"type":"string","enum":["api","editor_file"],"title":"GoogleAdsSearchDeploymentMode"},"GoogleAdsSearchExcludedAdTextsData":{"type":"object","properties":{"headlines":{"type":"array","items":{"type":"string"}},"descriptions":{"type":"array","items":{"type":"string"}},"sitelinks":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchSitelinkData"}},"callouts":{"type":"array","items":{"type":"string"}}},"required":["headlines","descriptions","sitelinks","callouts"],"title":"GoogleAdsSearchExcludedAdTextsData"},"GoogleAdsSearchForecastPreviewOutputData":{"type":"object","properties":{"forecastImpressions":{"type":["integer","null"],"description":"Kolikrát se reklamy můžou za měsíc ukázat, nebo null."},"forecastClicks":{"type":["integer","null"],"description":"Kolik kliknutí můžou reklamy za měsíc dostat, nebo null."},"forecastCost":{"type":["string","null"],"description":"Kolik to může za měsíc stát, nebo null."},"forecastAverageCpc":{"type":["string","null"],"description":"Cena jednoho kliknutí, kterou čekat, nebo null."}},"required":["forecastImpressions","forecastClicks","forecastCost","forecastAverageCpc"],"title":"GoogleAdsSearchForecastPreviewOutputData"},"GoogleAdsSearchImageData":{"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"ratio":{"type":["string","null"]}},"required":["id","url","width","height","ratio"],"title":"GoogleAdsSearchImageData"},"GoogleAdsSearchKeywordMatchType":{"type":"string","enum":["exact","phrase","broad"],"title":"GoogleAdsSearchKeywordMatchType"},"GoogleAdsSearchKeywordMetricOutputData":{"type":"object","properties":{"keyword":{"type":"string","description":"Klíčové slovo."},"avgMonthlySearches":{"type":["integer","null"],"description":"Kolik lidí ho hledá za měsíc, nebo null, když to Google neví."},"cpcLow":{"type":["number","null"],"description":"Nízká obvyklá cena jednoho kliknutí, nebo null."},"cpcHigh":{"type":["number","null"],"description":"Vysoká obvyklá cena jednoho kliknutí, nebo null."},"competition":{"type":["integer","null"],"description":"Kolik inzerentů o něj stojí, od 0 do 100, nebo null."}},"required":["keyword","avgMonthlySearches","cpcLow","cpcHigh","competition"],"title":"GoogleAdsSearchKeywordMetricOutputData"},"GoogleAdsSearchKeywordRole":{"type":"string","enum":["positive","negative"],"title":"GoogleAdsSearchKeywordRole"},"GoogleAdsSearchLandingPageCheckOutputData":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/GoogleAdsSearchLandingPageCheckStatus","description":"ok (stránka funguje), not_found (404 nebo 410), not_allowed (není na tvém webu) nebo unreachable (neodpovídá nebo tě přesměrovává moc často)."},"httpStatus":{"type":["integer","null"],"description":"HTTP kód, kterým stránka odpověděla, nebo null."},"title":{"type":["string","null"],"description":"Titulek stránky, nebo null."}},"required":["status","httpStatus","title"],"title":"GoogleAdsSearchLandingPageCheckOutputData"},"GoogleAdsSearchLandingPageCheckStatus":{"type":"string","enum":["ok","not_found","not_allowed","unreachable"],"title":"GoogleAdsSearchLandingPageCheckStatus"},"GoogleAdsSearchLandingPageDecision":{"type":"string","enum":["homepage","existing_page","new_landing_page","insufficient_data"],"title":"GoogleAdsSearchLandingPageDecision"},"GoogleAdsSearchLandingPageOutputData":{"type":"object","properties":{"url":{"type":"string","description":"Adresa stránky."},"title":{"type":"string","description":"Titulek stránky."},"isHomepage":{"type":"boolean","description":"true u tvé domovské stránky."}},"required":["url","title","isHomepage"],"title":"GoogleAdsSearchLandingPageOutputData"},"GoogleAdsSearchLogoData":{"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string"}},"required":["id","url"],"title":"GoogleAdsSearchLogoData"},"GoogleAdsSearchOperationData":{"type":"object","properties":{"id":{"type":"string","description":"Kód úlohy, dlouhý text jako 9d1c6c7e-4f0b-4a51-9a3e-2c1f0b7d5e21. Pošli ho do `google-ads-search-operations.show` a uvidíš, jak úloha pokračuje."},"type":{"type":"string","description":"Jaký druh úlohy to je."},"status":{"type":"string","description":"Jak úloha jde: pending, processing, completed nebo failed."},"outcomeCode":{"type":["string","null"],"description":"Jak skončila hotová úloha: created, insufficient_evidence (málo dat na stavbu kampaně) nebo missing_required_context (Fusiu chybí údaje o tvé firmě). null, dokud neskončí."},"outcomeMessage":{"type":["string","null"],"description":"Konec úlohy slovy, nebo null."},"failureCode":{"type":["string","null"],"description":"Proč úloha selhala, jako kód. null, když neselhala."},"failureMessage":{"type":["string","null"],"description":"Proč úloha selhala, slovy. null, když neselhala."},"startedAt":{"type":["string","null"],"description":"Kdy úloha začala, nebo null, dokud čeká."},"finishedAt":{"type":["string","null"],"description":"Kdy úloha skončila, nebo null, dokud běží."},"targeting":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchTargetingData"},{"type":"null"}],"description":"Místa a jazyk, se kterými úloha pracuje, nebo null."},"adAccountId":{"type":["integer","null"],"description":"Číslo účtu Google Ads, se kterým úloha pracuje, nebo null."},"plannerCustomerId":{"type":["string","null"],"description":"Zákazník Google Ads, přes kterého se zjišťují čísla hledání, nebo null."},"budgetCurrencyCode":{"type":["string","null"],"description":"Měna rozpočtu, třeba CZK, nebo null."}},"required":["id","type","status","outcomeCode","outcomeMessage","failureCode","failureMessage","startedAt","finishedAt","targeting","adAccountId","plannerCustomerId","budgetCurrencyCode"],"title":"GoogleAdsSearchOperationData"},"GoogleAdsSearchOverviewCampaignData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo kampaně."},"name":{"type":"string","description":"Název kampaně."},"google":{"$ref":"#/components/schemas/GoogleAdsSearchPerformanceGoogleData","description":"Čísla této kampaně z Google Ads."},"fusio":{"$ref":"#/components/schemas/AdCampaignOverviewFusioData","description":"Co Fusio vidělo na tvém webu z této kampaně."}},"required":["id","name","google","fusio"],"title":"GoogleAdsSearchOverviewCampaignData"},"GoogleAdsSearchOverviewData":{"type":"object","properties":{"campaignOptions":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignOverviewCampaignOptionData"},"description":"Tvoje kampaně, podle kterých můžeš filtrovat."},"totals":{"$ref":"#/components/schemas/GoogleAdsSearchOverviewTotalsData","description":"Součty za období za všechny vybrané kampaně."},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchOverviewCampaignData"},"description":"Stejná čísla za každou vybranou kampaň."},"kpis":{"$ref":"#/components/schemas/GoogleAdsSearchOverviewKpisData","description":"Hlavní čísla: zobrazení, kliknutí, konverze Google, návštěvy, konverze, leady a klienti, každé i s hodnotou předtím a řadou po dnech."},"spend":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignOverviewSpendData"},"description":"Co jsi utratil, jedna položka za každou měnu, i s řadou po dnech."},"acquisition":{"$ref":"#/components/schemas/AdAcquisitionData","description":"Co reklamy přinesly: útratu, leady, klienty a jejich tržby."},"funnel":{"$ref":"#/components/schemas/AdCampaignFunnelData","description":"Kolik návštěvníků se stalo leady, obchody a klienty a kde odešli."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData","description":"Dny, za které čísla jsou."},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["campaignOptions","totals","campaigns","kpis","spend","acquisition","funnel","ready","rolledUpAt","range","previousRange","dates"],"title":"GoogleAdsSearchOverviewData"},"GoogleAdsSearchOverviewKpisData":{"type":"object","properties":{"impressions":{"$ref":"#/components/schemas/OverviewKpiData"},"clicks":{"$ref":"#/components/schemas/OverviewKpiData"},"googleConversions":{"$ref":"#/components/schemas/OverviewKpiData"},"sessions":{"$ref":"#/components/schemas/OverviewKpiData"},"conversions":{"$ref":"#/components/schemas/OverviewKpiData"},"leads":{"$ref":"#/components/schemas/OverviewKpiData"},"customers":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["impressions","clicks","googleConversions","sessions","conversions","leads","customers"],"title":"GoogleAdsSearchOverviewKpisData"},"GoogleAdsSearchOverviewTotalsData":{"type":"object","properties":{"google":{"$ref":"#/components/schemas/GoogleAdsSearchPerformanceGoogleData","description":"Čísla z Google Ads."},"fusio":{"$ref":"#/components/schemas/AdCampaignOverviewFusioData","description":"Co Fusio vidělo na tvém webu."}},"required":["google","fusio"],"title":"GoogleAdsSearchOverviewTotalsData"},"GoogleAdsSearchPerformanceGoogleData":{"type":"object","properties":{"impressions":{"type":"integer"},"clicks":{"type":"integer"},"conversions":{"type":"number"},"money":{},"hasData":{"type":"boolean"},"lastSyncedAt":{"type":["string","null"]},"timezones":{"type":"array","items":{"type":"string"}},"searchImpressionShare":{"type":["number","null"]},"searchBudgetLostImpressionShare":{"type":["number","null"]}},"required":["impressions","clicks","conversions","money","hasData","lastSyncedAt","timezones","searchImpressionShare","searchBudgetLostImpressionShare"],"title":"GoogleAdsSearchPerformanceGoogleData"},"GoogleAdsSearchProfileData":{"type":"object","properties":{"businessName":{"type":["string","null"]},"phoneNumber":{"type":["string","null"]},"logo":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchLogoData"},{"type":"null"}]},"landscapeLogo":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchLogoData"},{"type":"null"}]}},"required":["businessName","phoneNumber","logo","landscapeLogo"],"title":"GoogleAdsSearchProfileData"},"GoogleAdsSearchResearchDiagnosticsData":{"type":"object","properties":{"seedCount":{"type":"integer"},"candidateCount":{"type":"integer"},"eligibleCandidateCount":{"type":"integer"},"selectedKeywordCount":{"type":"integer"},"familyCount":{"type":"integer"},"coveredFamilyCount":{"type":"integer"},"uncoveredFamilies":{"type":"array","items":{"type":"string"}}},"required":["seedCount","candidateCount","eligibleCandidateCount","selectedKeywordCount","familyCount","coveredFamilyCount","uncoveredFamilies"],"title":"GoogleAdsSearchResearchDiagnosticsData"},"GoogleAdsSearchSeoKeywordSetOutputData":{"type":"object","properties":{"key":{"type":"string","description":"Klíč sady. Pošli ho jako sets.key do `seo-audits.google-ads-search-campaign.store`."},"name":{"type":"string","description":"Název sady."},"status":{"type":"string","description":"Kdy ji použít: now, after_page (až bude vstupní stránka hotová) nebo later."},"keywords":{"type":"array","items":{"type":"string"},"description":"Klíčová slova sady."},"matchType":{"type":"string","description":"exact, phrase nebo broad."},"landingUrl":{"type":["string","null"],"description":"Stránka, kam mají reklamy vést, nebo null."},"landingState":{"type":"string","description":"Jak je ta stránka připravená: missing, weak nebo ready."},"findingPriority":{"type":["integer","null"],"description":"Číslo zjištění SEO, ke kterému sada patří, nebo null."},"rationale":{"type":"string","description":"Proč audit sadu doporučuje."},"negativeKeywords":{"type":"array","items":{"type":"string"},"description":"Klíčová slova, u kterých se tyhle reklamy ukazovat nemají."}},"required":["key","name","status","keywords","matchType","landingUrl","landingState","findingPriority","rationale","negativeKeywords"],"title":"GoogleAdsSearchSeoKeywordSetOutputData"},"GoogleAdsSearchSeoRecommendationData":{"type":"object","properties":{"id":{"type":"integer"},"keyword":{"type":"string"},"intent":{"type":["string","null"]},"cluster":{"type":["string","null"]},"priorityRank":{"type":"integer"},"rationale":{"type":["string","null"]},"eligibleForGoogleAdsSearch":{"type":"boolean","description":"true, když může jít do kampaně."},"usedInGoogleAdsSearch":{"type":"boolean","description":"true, když ho už nějaká kampaň používá."},"searchVolume":{"type":["integer","null"]},"cpcLow":{"type":["string","null"]},"cpcHigh":{"type":["string","null"]},"currencyCode":{"type":["string","null"]}},"required":["id","keyword","intent","cluster","priorityRank","rationale","eligibleForGoogleAdsSearch","usedInGoogleAdsSearch","searchVolume","cpcLow","cpcHigh","currencyCode"],"title":"GoogleAdsSearchSeoRecommendationData"},"GoogleAdsSearchSeoRefreshOutputData":{"type":"object","properties":{"operationId":{"type":"string","description":"Kód úlohy, dlouhý text jako 9d1c6c7e-4f0b-4a51-9a3e-2c1f0b7d5e21. Pošli ho do `google-ads-search-operations.show` a uvidíš, jak úloha pokračuje."},"type":{"type":"string","description":"Jaký druh úlohy to je, tady seo_google_ads_search_refresh."},"status":{"type":"string","description":"Jak úloha jde. Začíná jako pending."}},"required":["operationId","type","status"],"title":"GoogleAdsSearchSeoRefreshOutputData"},"GoogleAdsSearchSettingsData":{"type":"object","properties":{"monthlyBudgetAmount":{"type":["string","null"],"description":"Tvůj měsíční rozpočet na všechny kampaně Google Search, nebo null, když jsi ho nenastavil."},"currencyCode":{"type":["string","null"],"description":"Měna rozpočtu, třeba CZK."},"adAccountId":{"type":["integer","null"],"description":"Číslo tvého účtu Google Ads ve Fusiu, nebo null."},"plannerConfigured":{"type":"boolean","description":"true, když se Fusio může ptát Googlu na čísla hledání."},"googleReconnectRequired":{"type":"boolean","description":"true, když musíš Google Ads připojit znovu."},"allocatedMonthlyBudgetAmount":{"type":["string","null"],"description":"Kolik z měsíčního rozpočtu už kampaně používají."},"remainingMonthlyBudgetAmount":{"type":["string","null"],"description":"Kolik z měsíčního rozpočtu je ještě volné."},"deploymentMode":{"$ref":"#/components/schemas/GoogleAdsSearchDeploymentMode","description":"api (Fusio posílá kampaně do Google Ads) nebo editor_file (dostaneš soubor pro Google Ads Editor)."},"profile":{"$ref":"#/components/schemas/GoogleAdsSearchProfileData","description":"Co Fusio ví o tvé firmě pro kampaně."}},"required":["monthlyBudgetAmount","currencyCode","adAccountId","plannerConfigured","googleReconnectRequired","allocatedMonthlyBudgetAmount","remainingMonthlyBudgetAmount","deploymentMode","profile"],"title":"GoogleAdsSearchSettingsData"},"GoogleAdsSearchSharedNegativeKeywordData":{"type":"object","properties":{"text":{"type":"string","description":"Klíčové slovo."},"matchType":{"type":"string","description":"exact, phrase nebo broad."}},"required":["text","matchType"],"title":"GoogleAdsSearchSharedNegativeKeywordData"},"GoogleAdsSearchSharedNegativeKeywordsData":{"type":"object","properties":{"keywords":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchSharedNegativeKeywordData"},"description":"Vylučující klíčová slova společná pro všechny tvoje kampaně."}},"required":["keywords"],"title":"GoogleAdsSearchSharedNegativeKeywordsData"},"GoogleAdsSearchSitelinkData":{"type":"object","properties":{"text":{"type":"string"},"description1":{"type":"string"},"description2":{"type":"string"},"finalUrl":{"type":"string"}},"required":["text","description1","description2","finalUrl"],"title":"GoogleAdsSearchSitelinkData"},"GoogleAdsSearchSnippetHeader":{"type":"string","enum":["brands","amenities","styles","types","destinations","services","courses","neighborhoods","shows","insurance_coverage","degree_programs","featured_hotels","models"],"title":"GoogleAdsSearchSnippetHeader"},"GoogleAdsSearchSuggestionField":{"type":"string","enum":["headlines","descriptions","sitelinks","callouts","snippets","name","keywords","negativeKeywords"],"title":"GoogleAdsSearchSuggestionField"},"GoogleAdsSearchSummaryData":{"type":"object","properties":{"campaignCount":{"type":"integer"},"adGroupCount":{"type":"integer"},"keywordCount":{"type":"integer"}},"required":["campaignCount","adGroupCount","keywordCount"],"title":"GoogleAdsSearchSummaryData"},"GoogleAdsSearchTargetingData":{"type":"object","properties":{"schemaVersion":{"type":"integer"},"scope":{"$ref":"#/components/schemas/GoogleAdsSearchTargetingScope"},"countryCodes":{"type":"array","items":{"type":"string"}},"languageCode":{"type":"string"},"geoTargets":{"type":"array","items":{"$ref":"#/components/schemas/GoogleGeoTargetData"}},"excludedGeoTargets":{"type":"array","items":{"$ref":"#/components/schemas/GoogleGeoTargetData"}},"locationMatching":{"type":"string"}},"required":["schemaVersion","scope","countryCodes","languageCode","geoTargets","excludedGeoTargets","locationMatching"],"title":"GoogleAdsSearchTargetingData"},"GoogleAdsSearchTargetingScope":{"type":"string","enum":["countries","global","locations"],"title":"GoogleAdsSearchTargetingScope"},"GoogleAdsSearchTreeData":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/GoogleAdsSearchSettingsData","description":"Tvoje nastavení Google Search: měsíční rozpočet, měna, reklamní účet a jak jdou kampaně do Google Ads."},"summary":{"$ref":"#/components/schemas/GoogleAdsSearchSummaryData","description":"Kolik máš kampaní, reklamních sestav a klíčových slov."},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchCampaignData"},"description":"Tvoje kampaně, každá se svými reklamními sestavami, klíčovými slovy a reklamami."},"seoRecommendations":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchSeoRecommendationData"},"description":"Klíčová slova, která doporučuje tvůj nejnovější SEO audit, i s čísly hledání od Googlu."},"initialGenerationStatus":{"type":"string","description":"Jak jde první stavba tvých kampaní pomocí AI: idle (nikdy neběžela), pending, processing, completed nebo failed."},"seoRefreshStatus":{"type":"string","description":"Jak jde nejnovější obnova z tvého SEO auditu: idle, pending, processing, completed nebo failed."},"activeOperation":{"anyOf":[{"$ref":"#/components/schemas/GoogleAdsSearchOperationData"},{"type":"null"}],"description":"Úloha, která teď běží, nebo null."}},"required":["settings","summary","campaigns","seoRecommendations","initialGenerationStatus","seoRefreshStatus","activeOperation"],"title":"GoogleAdsSearchTreeData"},"GoogleGeoTargetData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo místa u Googlu. Pošli ho v targeting.geoTargets."},"name":{"type":"string","description":"Název místa."},"countryCode":{"type":"string","description":"Země místa, jako dvě velká písmena."},"targetType":{"type":"string","description":"Jaký druh místa to je, třeba City, Region nebo Country."}},"required":["id","name","countryCode","targetType"],"title":"GoogleGeoTargetData"},"GridAdConnectionData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]}},"required":["id","name"],"title":"GridAdConnectionData"},"GridDealData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"stage":{"$ref":"#/components/schemas/DealStage"},"leadId":{"type":"integer"},"leadName":{"type":"string"},"ownerName":{"type":["string","null"]},"currency":{"type":"string"},"estimatedValue":{"type":["string","null"]},"value":{"type":["string","null"]},"lineItemsGross":{"type":["string","null"]},"winProbability":{"type":"integer"},"expectedCloseDate":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"proformaGross":{"type":["string","null"]},"requiredDocumentIds":{"type":"array","items":{"type":"integer"}},"capabilities":{"$ref":"#/components/schemas/EntityActionCapabilitiesData"},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","name","stage","leadId","leadName","ownerName","currency","estimatedValue","value","lineItemsGross","winProbability","expectedCloseDate","closedAt","proformaGross","requiredDocumentIds","capabilities","createdAt","updatedAt"],"title":"GridDealData"},"GridIndexAdData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/AdType"},"state":{"$ref":"#/components/schemas/AdState","description":"Kde reklama je: drafted, rejected, approved, published, scheduled nebo failed."},"budget":{"type":"number"},"budgetType":{"$ref":"#/components/schemas/AdBudgetType"},"startsAt":{"type":["string","null"]},"endsAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"},"issue":{"anyOf":[{"$ref":"#/components/schemas/AdIssueData"},{"type":"null"}],"description":"Problém reklamy, nebo null, když žádný není."},"pendingNetworkChange":{"$ref":"#/components/schemas/AdPendingNetworkChange","description":"Co čeká na odeslání do reklamní sítě: none, settings nebo creative (texty a obrázek)."},"connection":{"$ref":"#/components/schemas/GridAdConnectionData","description":"Připojení k reklamní síti, s id a name."},"platformName":{"type":["string","null"],"description":"Název reklamní sítě, třeba LinkedIn."},"currencyCode":{"type":["string","null"]},"last30Days":{"anyOf":[{"$ref":"#/components/schemas/AdMetricTotalsData"},{"type":"null"}],"description":"Čísla za posledních 30 dní, nebo null."}},"required":["id","name","type","state","budget","budgetType","startsAt","endsAt","createdAt","updatedAt","issue","pendingNetworkChange","connection","platformName","currencyCode","last30Days"],"title":"GridIndexAdData"},"GridIndexArticleData":{"type":"object","properties":{"id":{"type":"integer"},"tenantSequence":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"state":{"$ref":"#/components/schemas/ArticleState"},"rejectReason":{"type":["string","null"]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignReferenceData"},{"type":"null"}]},"availableLocales":{"type":"array","items":{"type":"string"}},"articleCategoryId":{"type":["integer","null"]},"categorySlug":{"type":["string","null"]},"isVisible":{"type":"boolean"},"isCornerstone":{"type":"boolean"},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"publishedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"},"wordCount":{"type":["integer","null"]},"readingTime":{"type":["integer","null"]},"ownerName":{"type":["string","null"]},"helperNames":{"type":"array","items":{"type":"string"}}},"required":["id","tenantSequence","name","slug","state","rejectReason","campaign","availableLocales","articleCategoryId","categorySlug","isVisible","isCornerstone","publication","publishedAt","createdAt","updatedAt","wordCount","readingTime","ownerName","helperNames"],"title":"GridIndexArticleData"},"GridIndexCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"tenantSequence":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"origin":{"$ref":"#/components/schemas/CampaignOrigin"},"mode":{"$ref":"#/components/schemas/CampaignMode"},"autonomyLevel":{"$ref":"#/components/schemas/CampaignAutonomyLevel"},"goal":{"$ref":"#/components/schemas/CampaignGoal"},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}]},"goalMetricTarget":{"type":["string","null"]},"goalMetricLabel":{"type":["string","null"]},"generationBudgetCredits":{"type":["integer","null"]},"generationSpentCredits":{"type":"integer"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"startAt":{"type":["string","null"]},"endsOn":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"},"destinationsCount":{"type":"integer"},"plannedDestinationsCount":{"type":["integer","null"]},"destinations":{"type":"array","items":{"$ref":"#/components/schemas/EmbedCampaignDestinationData"}}},"required":["id","tenantSequence","name","description","origin","mode","autonomyLevel","goal","goalMetricType","goalMetricTarget","goalMetricLabel","generationBudgetCredits","generationSpentCredits","status","startAt","endsOn","createdAt","updatedAt","destinationsCount","plannedDestinationsCount","destinations"],"title":"GridIndexCampaignData"},"GridIndexDealProductData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"sku":{"type":["string","null"]},"description":{"type":["string","null"]},"unit":{"type":"string"},"unitPrice":{"type":"string"},"currency":{"type":"string"},"vatRate":{"type":"string"},"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval"},"defaultQuantity":{"type":"string"},"defaultDiscountPercent":{"type":"string"},"isActive":{"type":"boolean"},"dealsCount":{"type":"integer"},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","name","sku","description","unit","unitPrice","currency","vatRate","billingInterval","defaultQuantity","defaultDiscountPercent","isActive","dealsCount","createdAt","updatedAt"],"title":"GridIndexDealProductData"},"GridIndexEmailData":{"type":"object","properties":{"id":{"type":"integer"},"tenantSequence":{"type":"integer"},"name":{"type":"string"},"subject":{"type":"string"},"state":{"$ref":"#/components/schemas/EmailState"},"rejectReason":{"type":["string","null"]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignReferenceData"},{"type":"null"}]},"template":{"anyOf":[{"$ref":"#/components/schemas/EmailGridTemplateData"},{"type":"null"}]},"fromEmail":{"type":["string","null"]},"replyTo":{"type":["string","null"]},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"publishedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","tenantSequence","name","subject","state","rejectReason","campaign","template","fromEmail","replyTo","publication","publishedAt","createdAt","updatedAt"],"title":"GridIndexEmailData"},"GridIndexFileData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"alt":{"type":["string","null"]},"slug":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"ratio":{"type":["number","null"]},"path":{"type":"string"},"url":{"type":"string"},"hash":{"type":"string"},"isAiGenerated":{"type":"boolean"},"isImageEdited":{"type":"boolean"},"isCroppable":{"type":"boolean"},"createdAt":{"type":["string","null"]},"isInUse":{"type":"boolean"},"canDelete":{"type":"boolean"}},"required":["id","name","alt","slug","extension","mimeType","size","width","height","ratio","path","url","hash","isAiGenerated","isImageEdited","isCroppable","createdAt","isInUse","canDelete"],"title":"GridIndexFileData"},"GridIndexLeadData":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"countryId":{"type":["integer","null"]},"countryIso":{"type":["string","null"]},"name":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"street":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"stage":{"$ref":"#/components/schemas/LeadStage"},"personType":{"$ref":"#/components/schemas/LeadPersonType"},"source":{"anyOf":[{"$ref":"#/components/schemas/LeadSource"},{"type":"null"}]},"website":{"type":["string","null"]},"firmographicEnrichmentEligibility":{"$ref":"#/components/schemas/LeadFirmographicEnrichmentEligibilityData"},"engagementScore":{"type":"integer"},"heatStatus":{"$ref":"#/components/schemas/HeatStatus"},"countryName":{"type":["string","null"]},"primaryContactName":{"type":["string","null"]},"primaryContactEmail":{"type":["string","null"]},"userName":{"type":["string","null"]},"helperNames":{"type":"array","items":{"type":"string"}},"contactsCount":{"type":"integer"},"segmentsCount":{"type":"integer"},"tagsCount":{"type":"integer"},"pendingChangeCount":{"type":"integer"},"fitScore":{"type":["integer","null"]},"fitGrade":{"$ref":"#/components/schemas/LeadFitGrade"},"fitBasis":{"anyOf":[{"$ref":"#/components/schemas/LeadFitBasis"},{"type":"null"}]},"leadCustomFields":{"type":"array","items":{"$ref":"#/components/schemas/IndexLeadCustomFieldData"}},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Lead.IndexLeadContactData"}},"outreachSummary":{"anyOf":[{"$ref":"#/components/schemas/ContactOutreachSummaryData"},{"type":"null"}]},"hasResearchProfile":{"type":"boolean"},"outreachStatus":{"$ref":"#/components/schemas/LeadOutreachStatus"},"predictedConversion":{"type":["integer","null"]},"predictionFactors":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadPredictionFactorData"}},"capabilities":{"$ref":"#/components/schemas/EntityActionCapabilitiesData"},"origin":{"$ref":"#/components/schemas/LeadOriginData"},"createdAt":{"type":["string","null"]}},"required":["id","tenantId","userId","countryId","countryIso","name","registrationNumber","vatNumber","street","city","zip","stage","personType","source","website","firmographicEnrichmentEligibility","engagementScore","heatStatus","countryName","primaryContactName","primaryContactEmail","userName","helperNames","contactsCount","segmentsCount","tagsCount","pendingChangeCount","fitScore","fitGrade","fitBasis","leadCustomFields","contacts","outreachSummary","hasResearchProfile","outreachStatus","predictedConversion","predictionFactors","createdAt"],"title":"GridIndexLeadData"},"GridIndexSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"batchId":{"type":"integer"},"name":{"type":"string"},"state":{"$ref":"#/components/schemas/SocialPostState"},"tenantSequence":{"type":"integer"},"socialPlatform":{"anyOf":[{"$ref":"#/components/schemas/SocialPostGridPlatformData"},{"type":"null"}]},"tenantOAuthPlatform":{"anyOf":[{"$ref":"#/components/schemas/SocialPostGridAccountData"},{"type":"null"}]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/CampaignReferenceData"},{"type":"null"}]},"sourceArticle":{"anyOf":[{"$ref":"#/components/schemas/SocialPostSourceArticleOutputData"},{"type":"null"}]},"isAwaitingArticle":{"type":"boolean"},"commentsCount":{"type":"integer"},"threadItemsCount":{"type":"integer"},"files":{"type":"array","items":{"$ref":"#/components/schemas/SocialPostGridFileData"}},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"publishedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","batchId","name","state","tenantSequence","socialPlatform","tenantOAuthPlatform","campaign","sourceArticle","isAwaitingArticle","commentsCount","threadItemsCount","files","publication","publishedAt","createdAt","updatedAt"],"title":"GridIndexSocialPostData"},"GridIndexTenantCompetitorData":{"type":"object","properties":{"id":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"name":{"type":"string"},"competitorType":{"anyOf":[{"$ref":"#/components/schemas/TenantCompetitorType"},{"type":"null"}]},"websiteUrl":{"type":["string","null"]},"analyzedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]}},"required":["id","tenantProductId","name","competitorType","websiteUrl","analyzedAt","createdAt"],"title":"GridIndexTenantCompetitorData"},"GridIndexTenantCustomerData":{"type":"object","properties":{"id":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"name":{"type":"string"},"personaTitle":{"type":["string","null"]},"employeeBand":{"type":["string","null"]},"analyzedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]}},"required":["id","tenantProductId","name","personaTitle","employeeBand","analyzedAt","createdAt"],"title":"GridIndexTenantCustomerData"},"GridIndexTenantStrategyData":{"type":"object","properties":{"id":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"name":{"type":"string"},"category":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyCategory"},{"type":"null"}]},"phase":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyPhase"},{"type":"null"}]},"implementationType":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyImplementationType"},{"type":"null"}]},"stage":{"anyOf":[{"$ref":"#/components/schemas/TenantStrategyStage"},{"type":"null"}]},"priorityScore":{"type":["integer","null"]},"effectiveStatus":{"$ref":"#/components/schemas/TenantStrategyStatus"},"targetedPersonaIds":{"type":"array","items":{"type":"integer"}},"targetedCompetitorIds":{"type":"array","items":{"type":"integer"}},"createdAt":{"type":["string","null"]}},"required":["id","tenantProductId","name","category","phase","implementationType","stage","priorityScore","effectiveStatus","targetedPersonaIds","targetedCompetitorIds","createdAt"],"title":"GridIndexTenantStrategyData"},"GridIndexTopicData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"query":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/TopicType"},"frequency":{"$ref":"#/components/schemas/TopicFrequency"},"state":{"$ref":"#/components/schemas/TopicState"},"usedBySocialPostId":{"type":["integer","null"]},"usedByArticleId":{"type":["integer","null"]},"usedByEmailId":{"type":["integer","null"]},"lastCrawledAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":"string"},"ownerName":{"type":["string","null"]},"helperNames":{"type":"array","items":{"type":"string"}}},"required":["id","name","query","type","frequency","state","usedBySocialPostId","usedByArticleId","usedByEmailId","lastCrawledAt","createdAt","updatedAt","ownerName","helperNames"],"title":"GridIndexTopicData"},"HeatStatus":{"type":"string","enum":["cold","warm","hot"],"title":"HeatStatus"},"HookCategory":{"type":"string","enum":["curiosity","story","value","contrarian","social_proof","trigger_event","question","observation","poll","data_led","vivid_story","prediction","data_drop","pattern_interrupt","personal_stake"],"title":"HookCategory"},"ImageDestinationPreferenceOutputData":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/CampaignDestination","description":"Místo, kam obrázky jdou."},"profileId":{"type":["integer","null"],"description":"Číslo presetu, který se tam použije."},"imageShape":{"$ref":"#/components/schemas/ImageShape"},"mascotPresence":{"$ref":"#/components/schemas/MascotPresence"},"mascotBackground":{"$ref":"#/components/schemas/MascotBackground"},"isImageShapeEditable":{"type":"boolean"},"imageOverlay":{"anyOf":[{"$ref":"#/components/schemas/ImageOverlay"},{"type":"null"}]},"imageOverlayPresetId":{"type":["integer","null"]},"imageOverlays":{"type":"array","items":{"$ref":"#/components/schemas/ImageOverlay"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ImageGroupPreferenceOutputData"}}},"required":["destination","profileId","imageShape","mascotPresence","mascotBackground","isImageShapeEditable","imageOverlay","imageOverlayPresetId","imageOverlays","groups"],"title":"ImageDestinationPreferenceOutputData"},"ImageGenerationStyle":{"type":"string","enum":["realistic","photographic","illustration","digital_art","3d_render","flat","minimalist","sketch","custom"],"title":"ImageGenerationStyle"},"ImageGenerationType":{"type":"string","enum":["generic","branded","personal","style_reference"],"title":"ImageGenerationType"},"ImageGroupPreferenceOutputData":{"type":"object","properties":{"goal":{"$ref":"#/components/schemas/ImageOverlayGoal"},"mascotPresence":{"$ref":"#/components/schemas/MascotPresence"},"captionVoice":{"$ref":"#/components/schemas/CaptionVoice"},"mascotBackground":{"$ref":"#/components/schemas/MascotBackground"},"mascotPlace":{"type":["string","null"]},"mascotFriend":{"type":["string","null"]},"isMascotAlone":{"type":"boolean"},"imageOverlay":{"anyOf":[{"$ref":"#/components/schemas/ImageOverlay"},{"type":"null"}]},"imageOverlayPresetId":{"type":["integer","null"]},"instruction":{"type":"string"}},"required":["goal","mascotPresence","captionVoice","mascotBackground","mascotPlace","mascotFriend","isMascotAlone","imageOverlay","imageOverlayPresetId","instruction"],"title":"ImageGroupPreferenceOutputData"},"ImageModelOptionData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo modelu."},"label":{"type":"string","description":"Název modelu."},"credits":{"type":"integer","description":"Kolik kreditů stojí jeden obrázek."},"isDefault":{"type":"boolean","description":"true u modelu, který AI použije, když není vybrán jiný."}},"required":["id","label","credits","isDefault"],"title":"ImageModelOptionData"},"ImageOverlay":{"type":"string","enum":["poster","highlighter","notification","sticker","cover","date","ribbon","band","part","path","cinema","passepartout","none"],"title":"ImageOverlay"},"ImageOverlayGoal":{"type":"string","enum":["sell","teach","story","invite"],"title":"ImageOverlayGoal"},"ImageProfileMascotOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"file":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]}},"required":["id","name","description","file"],"title":"ImageProfileMascotOutputData"},"ImageShape":{"type":"string","enum":["portrait","square","landscape"],"title":"ImageShape"},"ImageStyleAnalysisStatus":{"type":"string","enum":["pending","processing","completed","failed"],"title":"ImageStyleAnalysisStatus"},"InboxReplyResultData":{"type":"object","properties":{"scheduledPersonalEmailId":{"type":"integer"},"inboxTriageId":{"type":"integer"},"leadId":{"type":"integer"},"emailConversationId":{"type":"integer"},"subject":{"type":"string"},"body":{"type":"string"},"status":{"type":"string"}},"required":["scheduledPersonalEmailId","inboxTriageId","leadId","emailConversationId","subject","body","status"],"title":"InboxReplyResultData"},"InboxTriageData":{"type":"object","properties":{"id":{"type":"integer"},"emailConversationId":{"type":"integer"},"leadId":{"type":"integer"},"inboundMessageId":{"type":"integer"},"replyGoal":{"type":["string","null"]},"replyBrief":{"type":["string","null"]},"triagedAt":{"type":"string"},"recommendationId":{"type":["integer","null"]}},"required":["id","emailConversationId","leadId","inboundMessageId","replyGoal","replyBrief","triagedAt","recommendationId"],"title":"InboxTriageData"},"InboxTriagePreviousData":{"type":"object","properties":{"replyGoal":{"type":["string","null"]},"triagedAt":{"type":"string"}},"required":["replyGoal","triagedAt"],"title":"InboxTriagePreviousData"},"InboxTriageQueueContactData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id","name","email"],"title":"InboxTriageQueueContactData"},"InboxTriageQueueData":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InboxTriageQueueItemData"},"description":"Vlákna, která čekají na třídění, nejstarší odpověď první. Každé má poslední zprávy v `thread`, leady spojené s odesílatelem, které smíš spravovat, v `leads` a `previousTriage`, když už se vlákno dřív třídilo."}},"required":["items"],"title":"InboxTriageQueueData"},"InboxTriageQueueItemData":{"type":"object","properties":{"conversationId":{"type":"integer"},"subject":{"type":["string","null"]},"contact":{"$ref":"#/components/schemas/InboxTriageQueueContactData"},"leads":{"type":"array","items":{"$ref":"#/components/schemas/InboxTriageQueueLeadData"}},"latestInboundMessageId":{"type":"integer"},"latestInboundAt":{"type":"string"},"thread":{"type":"array","items":{"$ref":"#/components/schemas/InboxTriageThreadMessageData"}},"previousTriage":{"anyOf":[{"$ref":"#/components/schemas/InboxTriagePreviousData"},{"type":"null"}]}},"required":["conversationId","subject","contact","leads","latestInboundMessageId","latestInboundAt","thread","previousTriage"],"title":"InboxTriageQueueItemData"},"InboxTriageQueueLeadData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"stage":{"type":"string"}},"required":["id","name","stage"],"title":"InboxTriageQueueLeadData"},"InboxTriageThreadMessageData":{"type":"object","properties":{"direction":{"$ref":"#/components/schemas/EmailMessageDirection"},"sentAt":{"type":["string","null"]},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["direction","sentAt","subject","text"],"title":"InboxTriageThreadMessageData"},"IndexContactCustomFieldData":{"type":"object","properties":{"customFieldId":{"type":"integer"},"customFieldLabel":{"type":"string"},"customFieldType":{"$ref":"#/components/schemas/CustomFieldType"},"value":{"type":["string","null"]}},"required":["customFieldId","customFieldLabel","customFieldType","value"],"title":"IndexContactCustomFieldData"},"IndexContactData":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"integer"},"tenantId":{"type":"integer"},"type":{"$ref":"#/components/schemas/ContactType"},"email":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"position":{"type":["string","null"]},"preferredContactChannel":{"anyOf":[{"$ref":"#/components/schemas/PreferredContactChannel"},{"type":"null"}]},"lastActivityAt":{"type":["string","null"]},"emailVerifiedAt":{"type":["string","null"]},"communicationPreference":{"anyOf":[{"$ref":"#/components/schemas/UpdateCommunicationPreferenceData"},{"type":"null"}]},"lead":{"anyOf":[{"$ref":"#/components/schemas/UpdateLeadData"},{"type":"null"}]},"segmentsCount":{"type":"integer"},"tagsCount":{"type":"integer"},"pendingChangeCount":{"type":"integer"},"contactCustomFields":{"type":"array","items":{"$ref":"#/components/schemas/IndexContactCustomFieldData"}},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","userId","tenantId","type","email","firstName","lastName","name","phone","position","preferredContactChannel","lastActivityAt","emailVerifiedAt","communicationPreference","lead","segmentsCount","tagsCount","pendingChangeCount","contactCustomFields","createdAt","updatedAt"],"title":"IndexContactData"},"IndexLeadCustomFieldData":{"type":"object","properties":{"customFieldId":{"type":"integer"},"customFieldLabel":{"type":"string"},"customFieldType":{"$ref":"#/components/schemas/CustomFieldType"},"value":{"type":["string","null"]}},"required":["customFieldId","customFieldLabel","customFieldType","value"],"title":"IndexLeadCustomFieldData"},"IndexLeadResearchProfileData":{"type":"object","properties":{"tenantId":{"type":"integer","description":"Číslo tvé firmy."},"url":{"type":"string","description":"Webová adresa firmy."},"batchId":{"type":["string","null"],"description":"Číslo běhu výzkumu, nebo null."},"companyName":{"type":["string","null"],"description":"Název firmy, nebo null."},"logoIconUrl":{"type":["string","null"],"description":"Adresa malého loga, nebo null."},"logoFullUrl":{"type":["string","null"],"description":"Adresa plného loga, nebo null."},"description":{"type":["string","null"],"description":"Krátký popis firmy, nebo null."},"websiteLanguageId":{"type":["integer","null"],"description":"Jazyk webu, nebo null."},"leadId":{"type":"integer","description":"Číslo leadu."},"sourceFileId":{"type":["integer","null"],"description":"Číslo nahraného zdrojového souboru, nebo null."},"fitScore":{"type":["integer","null"],"description":"Jak lead sedí, nebo null."},"createdAt":{"type":["string","null"],"description":"Kdy se profil vytvořil."},"updatedAt":{"type":["string","null"],"description":"Kdy se profil naposledy změnil."}},"title":"IndexLeadResearchProfileData"},"IndexTaskData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"assigneeId":{"type":"integer"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"taskableType":{"anyOf":[{"$ref":"#/components/schemas/TaskableType"},{"type":"null"}]},"taskableId":{"type":["integer","null"]},"noteId":{"type":["integer","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueAt":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/TaskStatus"},"completedAt":{"type":["string","null"]},"pinnedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"taskableLabel":{"type":["string","null"]},"cadenceStep":{"anyOf":[{"$ref":"#/components/schemas/TaskCadenceStepData"},{"type":"null"}]},"outreachTouchId":{"type":["integer","null"]}},"required":["id","tenantId","userId","assigneeId","assignee","taskableType","taskableId","noteId","title","description","dueAt","status","completedAt","pinnedAt","createdAt","updatedAt","taskableLabel","cadenceStep","outreachTouchId"],"title":"IndexTaskData"},"InsufficientScopeResponse":{"type":"object","properties":{"status":{"type":"string","const":"error"},"message":{"type":"string"},"payload":{"type":"object","properties":{"error":{"type":"string","enum":["insufficient_scope","route_outside_surface"]},"requiredScopes":{"type":"array","items":{"type":"string"}},"route":{"type":"string"}},"required":["error"]}},"required":["status","message","payload"],"title":"InsufficientScopeResponse"},"IntegrationsData":{"type":"object","properties":{"count":{"type":["integer","null"]},"keyIntegrations":{"type":"array","items":{"type":"string"}}},"required":["count","keyIntegrations"],"title":"IntegrationsData"},"InvoiceMailType":{"type":"string","enum":["invoice","pre_due_reminder","first_reminder","second_reminder","final_reminder","thank_you","cancellation","correction","proforma","tax_document","final_invoice"],"title":"InvoiceMailType"},"JobsToBeDoneData":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"}},"required":["kind","label"],"title":"JobsToBeDoneData"},"Lead.IndexLeadContactData":{"type":"object","properties":{"id":{"type":"string"},"leadId":{"type":"string"},"contactId":{"type":"string"},"isPrimary":{"type":"boolean"},"type":{"$ref":"#/components/schemas/ContactType"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"position":{"type":["string","null"]},"lastActivityAt":{"type":["string","null"]},"emailVerifiedAt":{"type":["string","null"]},"communicationPreference":{"anyOf":[{"$ref":"#/components/schemas/UpdateCommunicationPreferenceData"},{"type":"null"}]},"pendingChangeCount":{"type":"integer"},"contactCustomFields":{"type":"array","items":{"$ref":"#/components/schemas/IndexContactCustomFieldData"}},"outreachSummary":{"anyOf":[{"$ref":"#/components/schemas/ContactOutreachSummaryData"},{"type":"null"}]}},"required":["id","leadId","contactId","isPrimary","type","firstName","lastName","name","email","phone","position","lastActivityAt","emailVerifiedAt","communicationPreference","pendingChangeCount","contactCustomFields","outreachSummary"],"title":"Lead.IndexLeadContactData"},"LeadAcquisitionDayData":{"type":"object","properties":{"date":{"type":"string"},"spend":{"type":"array","items":{"$ref":"#/components/schemas/ConversionValueTotalData"}},"leads":{"type":"integer"},"customers":{"type":"integer"},"customerRevenue":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ConversionValueTotalData"}}},"required":["date","spend","leads","customers","customerRevenue"],"title":"LeadAcquisitionDayData"},"LeadAcquisitionSectionData":{"type":"object","properties":{"days":{"type":"array","items":{"$ref":"#/components/schemas/LeadAcquisitionDayData"}},"previousDays":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadAcquisitionDayData"}}},"required":["days","previousDays"],"title":"LeadAcquisitionSectionData"},"LeadAnalyticsAbandonedFieldData":{"type":"object","properties":{"label":{"type":"string"},"status":{"$ref":"#/components/schemas/AbandonedFieldStatus"}},"required":["label","status"],"title":"LeadAnalyticsAbandonedFieldData"},"LeadAnalyticsAbandonedFormData":{"type":"object","properties":{"formId":{"type":"integer"},"formName":{"type":"string"},"startedAt":{"type":"string"},"lastField":{"type":["string","null"]},"filledFields":{"type":"integer"},"totalFields":{"type":"integer"},"contactName":{"type":["string","null"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsAbandonedFieldData"}}},"required":["formId","formName","startedAt","lastField","filledFields","totalFields","contactName","fields"],"title":"LeadAnalyticsAbandonedFormData"},"LeadAnalyticsAdsAcquisitionSourceData":{"type":"object","properties":{"platform":{"type":"string"},"campaignId":{"type":["integer","null"]},"campaignName":{"type":["string","null"]},"spend":{"type":"array","items":{"$ref":"#/components/schemas/ConversionValueTotalData"}},"customers":{"type":"integer"}},"required":["platform","campaignId","campaignName","spend","customers"],"title":"LeadAnalyticsAdsAcquisitionSourceData"},"LeadAnalyticsAdsClickData":{"type":"object","properties":{"click":{"$ref":"#/components/schemas/AdClickOutputData"},"contactName":{"type":["string","null"]}},"required":["click","contactName"],"title":"LeadAnalyticsAdsClickData"},"LeadAnalyticsAdsData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadAnalyticsAdsSummaryData","description":"Kolik bylo prokliků reklam a co Fusio poslalo zpátky reklamním sítím."},"clicks":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsAdsClickData"},"description":"Každý proklik reklamy."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsAdsSourceData"}},"milestones":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsAdsMilestoneData"}},"hasAdConsent":{"type":"boolean","description":"true, když lead souhlasil se sledováním reklam."},"revenue":{"$ref":"#/components/schemas/CustomerRevenueData","description":"Peníze z obchodů a faktur leadu."},"acquisitionSource":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsAdsAcquisitionSourceData"},{"type":"null"}]}},"required":["summary","clicks","sources","milestones","hasAdConsent","revenue","acquisitionSource"],"title":"LeadAnalyticsAdsData"},"LeadAnalyticsAdsMilestoneData":{"type":"object","properties":{"event":{"type":"string"},"detail":{"type":["string","null"]},"occurredAt":{"type":"string"},"status":{"type":"string"},"ineligibleReason":{"type":["string","null"]},"value":{"type":["string","null"]},"currency":{"type":["string","null"]}},"required":["event","detail","occurredAt","status","ineligibleReason","value","currency"],"title":"LeadAnalyticsAdsMilestoneData"},"LeadAnalyticsAdsSourceData":{"type":"object","properties":{"source":{"type":"string"},"platform":{"type":["string","null"]},"campaignId":{"type":["integer","null"]},"campaignName":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"clicks":{"type":"integer"}},"required":["source","platform","campaignId","campaignName","utmCampaign","clicks"],"title":"LeadAnalyticsAdsSourceData"},"LeadAnalyticsAdsSummaryData":{"type":"object","properties":{"clicksTotal":{"type":"integer"},"firstClickAt":{"type":["string","null"]},"conversionsUploaded":{"type":"integer"},"valueTotals":{"type":"array","items":{"$ref":"#/components/schemas/ConversionValueTotalData"}}},"required":["clicksTotal","firstClickAt","conversionsUploaded","valueTotals"],"title":"LeadAnalyticsAdsSummaryData"},"LeadAnalyticsBuyingCommitteeMemberData":{"type":"object","properties":{"leadContactId":{"type":"integer"},"contactId":{"type":"integer"},"name":{"type":"string"},"role":{"type":"string"}},"required":["leadContactId","contactId","name","role"],"title":"LeadAnalyticsBuyingCommitteeMemberData"},"LeadAnalyticsCadenceStepData":{"type":"object","properties":{"enrollmentId":{"type":"integer"},"templateName":{"type":"string"},"stepTitle":{"type":["string","null"]},"dueAt":{"type":["string","null"]}},"required":["enrollmentId","templateName","stepTitle","dueAt"],"title":"LeadAnalyticsCadenceStepData"},"LeadAnalyticsCampaignChannelData":{"type":"object","properties":{"sent":{"type":"integer"},"opens":{"type":"integer"},"clicks":{"type":"integer"}},"required":["sent","opens","clicks"],"title":"LeadAnalyticsCampaignChannelData"},"LeadAnalyticsConversionData":{"type":"object","properties":{"kind":{"type":"string"},"at":{"type":"string"},"formId":{"type":["integer","null"]},"formName":{"type":["string","null"]},"submissionId":{"type":["integer","null"]},"bookingId":{"type":["integer","null"]}},"required":["kind","at","formId","formName","submissionId","bookingId"],"title":"LeadAnalyticsConversionData"},"LeadAnalyticsConversionsData":{"type":"object","properties":{"count":{"type":"integer"},"first":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsConversionData"},{"type":"null"}]},"last":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsConversionData"},{"type":"null"}]}},"required":["count","first","last"],"title":"LeadAnalyticsConversionsData"},"LeadAnalyticsData":{"type":"object","properties":{"stats":{"$ref":"#/components/schemas/LeadAnalyticsStatsData","description":"Počty e-mailů z kampaní a osobních e-mailů i s otevřeními a prokliknutími za celý lead."},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/LeadContactAnalyticsData"},"description":"Stejná čísla pro každý kontakt."},"contactOptions":{"type":"array","items":{"$ref":"#/components/schemas/LeadContactAnalyticsOptionData"},"description":"Kontakty, které můžeš poslat jako contact_id."}},"required":["stats","contacts","contactOptions"],"title":"LeadAnalyticsData"},"LeadAnalyticsDealContactData":{"type":"object","properties":{"contactId":{"type":"integer"},"name":{"type":"string"},"role":{"type":["string","null"]}},"required":["contactId","name","role"],"title":"LeadAnalyticsDealContactData"},"LeadAnalyticsDealData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"stage":{"type":"string"},"value":{"type":["string","null"]},"currency":{"type":"string"},"winProbability":{"type":"integer"},"expectedCloseDate":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"lostReason":{"type":["string","null"]},"createdAt":{"type":"string"},"stageEnteredAt":{"type":"string"},"owner":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsDealOwnerData"},{"type":"null"}]},"origin":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsDealOriginData"},{"type":"null"}]},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsDealContactData"}},"nextTask":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsTaskLinkData"},{"type":"null"}]},"documents":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadAnalyticsDealDocumentData"}},"stageHistory":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsDealStageChangeData"}},"notes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadAnalyticsDealNoteData"}},"notesCount":{"type":["integer","null"]},"openTasks":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadAnalyticsDealTaskData"}},"openTasksCount":{"type":["integer","null"]}},"required":["id","name","stage","value","currency","winProbability","expectedCloseDate","closedAt","lostReason","createdAt","stageEnteredAt","owner","origin","contacts","nextTask","documents","stageHistory","notes","notesCount","openTasks","openTasksCount"],"title":"LeadAnalyticsDealData"},"LeadAnalyticsDealDocumentData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"}},"required":["id","title","kind","status"],"title":"LeadAnalyticsDealDocumentData"},"LeadAnalyticsDealNoteData":{"type":"object","properties":{"id":{"type":"integer"},"excerpt":{"type":"string"},"authorName":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","excerpt","authorName","createdAt"],"title":"LeadAnalyticsDealNoteData"},"LeadAnalyticsDealOriginData":{"type":"object","properties":{"inquiryId":{"type":["integer","null"]},"submissionId":{"type":["integer","null"]}},"required":["inquiryId","submissionId"],"title":"LeadAnalyticsDealOriginData"},"LeadAnalyticsDealOwnerData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"title":"LeadAnalyticsDealOwnerData"},"LeadAnalyticsDealStageChangeData":{"type":"object","properties":{"stage":{"type":"string"},"previousStage":{"type":["string","null"]},"at":{"type":"string"},"userName":{"type":["string","null"]}},"required":["stage","previousStage","at","userName"],"title":"LeadAnalyticsDealStageChangeData"},"LeadAnalyticsDealTaskData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"dueAt":{"type":["string","null"]},"status":{"type":"string"},"assigneeName":{"type":["string","null"]}},"required":["id","title","dueAt","status","assigneeName"],"title":"LeadAnalyticsDealTaskData"},"LeadAnalyticsDealsData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadAnalyticsDealsSummaryData","description":"Otevřené, vyhrané a prohrané obchody i s hodnotou."},"deals":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsDealData"},"description":"Každý obchod s jeho fází, lidmi, úkoly a poznámkami."}},"required":["summary","deals"],"title":"LeadAnalyticsDealsData"},"LeadAnalyticsDealsSummaryData":{"type":"object","properties":{"openCount":{"type":"integer"},"openValue":{"type":["string","null"]},"weightedValue":{"type":["string","null"]},"currency":{"type":["string","null"]},"wonCount":{"type":"integer"},"wonValue":{"type":["string","null"]},"lostCount":{"type":"integer"},"nextExpectedCloseDate":{"type":["string","null"]}},"required":["openCount","openValue","weightedValue","currency","wonCount","wonValue","lostCount","nextExpectedCloseDate"],"title":"LeadAnalyticsDealsSummaryData"},"LeadAnalyticsEmailData":{"type":"object","properties":{"id":{"type":"integer"},"channel":{"type":"string"},"subject":{"type":["string","null"]},"campaignName":{"type":["string","null"]},"sentAt":{"type":"string"},"recipientEmail":{"type":["string","null"]},"contactName":{"type":["string","null"]},"opens":{"type":"integer"},"clicks":{"type":"integer"},"replied":{"type":"boolean"},"bouncedAt":{"type":["string","null"]},"deliveryStatus":{"type":["string","null"]},"conversationId":{"type":["integer","null"]},"unsubscribedAt":{"type":["string","null"]}},"required":["id","channel","subject","campaignName","sentAt","recipientEmail","contactName","opens","clicks","replied","bouncedAt","deliveryStatus","conversationId","unsubscribedAt"],"title":"LeadAnalyticsEmailData"},"LeadAnalyticsEmailsData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadAnalyticsEmailsSummaryData","description":"Kolik e-mailů se odeslalo, doručilo, otevřelo, prokliklo, dostalo odpověď a vrátilo."},"data":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsEmailData"},"description":"E-maily, nejnovější první."},"nextCursor":{"type":["string","null"],"description":"Pošli ho jako cursor a dostaneš další stránku. Na poslední stránce je null."}},"required":["summary","data","nextCursor"],"title":"LeadAnalyticsEmailsData"},"LeadAnalyticsEmailsSummaryData":{"type":"object","properties":{"sent":{"type":"integer"},"delivered":{"type":"integer"},"opened":{"type":"integer"},"clicked":{"type":"integer"},"replied":{"type":"integer"},"bounced":{"type":"integer"}},"required":["sent","delivered","opened","clicked","replied","bounced"],"title":"LeadAnalyticsEmailsSummaryData"},"LeadAnalyticsFormFunnelData":{"type":"object","properties":{"formId":{"type":"integer"},"formName":{"type":"string"},"views":{"type":"integer"},"starts":{"type":"integer"},"submits":{"type":"integer"},"lastActivityAt":{"type":["string","null"]}},"required":["formId","formName","views","starts","submits","lastActivityAt"],"title":"LeadAnalyticsFormFunnelData"},"LeadAnalyticsFormSubmissionData":{"type":"object","properties":{"id":{"type":"integer"},"formId":{"type":"integer"},"formName":{"type":"string"},"createdAt":{"type":"string"},"contact":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsSubmissionContactData"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsSubmissionSourceData"},{"type":"null"}]},"answers":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsSubmissionAnswerData"}},"inquiry":{"anyOf":[{"$ref":"#/components/schemas/LeadHistorySubmissionInquiryData"},{"type":"null"}]},"booking":{"anyOf":[{"$ref":"#/components/schemas/LeadHistorySubmissionBookingData"},{"type":"null"}]},"deal":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsSubmissionDealData"},{"type":"null"}]},"points":{"type":["integer","null"]},"tasks":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadAnalyticsDealTaskData"}}},"required":["id","formId","formName","createdAt","contact","source","answers","inquiry","booking","deal","points","tasks"],"title":"LeadAnalyticsFormSubmissionData"},"LeadAnalyticsFormsData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadAnalyticsFormsSummaryData","description":"Kolik formulářů se odeslalo a co z nich vzniklo."},"byForm":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsFormFunnelData"},"description":"Čísla za každý formulář: zobrazení, začátky a odeslání."},"abandoned":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsAbandonedFormData"},"description":"Formuláře, které lidé leadu začali a neodeslali."},"submissions":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsFormSubmissionData"},"description":"Odeslané formuláře i s odpověďmi."}},"required":["summary","byForm","abandoned","submissions"],"title":"LeadAnalyticsFormsData"},"LeadAnalyticsFormsSummaryData":{"type":"object","properties":{"submissions":{"type":"integer"},"forms":{"type":"integer"},"inquiries":{"type":"integer"},"bookings":{"type":"integer"},"deals":{"type":"integer"},"abandoned":{"type":"integer"}},"required":["submissions","forms","inquiries","bookings","deals","abandoned"],"title":"LeadAnalyticsFormsSummaryData"},"LeadAnalyticsJourneyData":{"type":"object","properties":{"stages":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsJourneyStageData"}},"currentStage":{"anyOf":[{"$ref":"#/components/schemas/LeadJourneyStage"},{"type":"null"}]},"openDealName":{"type":["string","null"]}},"required":["stages","currentStage","openDealName"],"title":"LeadAnalyticsJourneyData"},"LeadAnalyticsJourneyStageData":{"type":"object","properties":{"stage":{"$ref":"#/components/schemas/LeadJourneyStage"},"count":{"type":"integer"},"firstAt":{"type":["string","null"]}},"required":["stage","count","firstAt"],"title":"LeadAnalyticsJourneyStageData"},"LeadAnalyticsOriginData":{"type":"object","properties":{"channel":{"type":"string"},"utmSource":{"type":["string","null"]},"utmMedium":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"referer":{"type":["string","null"]},"landingPath":{"type":["string","null"]},"firstSeenAt":{"type":"string"}},"required":["channel","utmSource","utmMedium","utmCampaign","referer","landingPath","firstSeenAt"],"title":"LeadAnalyticsOriginData"},"LeadAnalyticsOverviewData":{"type":"object","properties":{"firstTouchAt":{"type":["string","null"],"description":"Kdy se lead poprvé objevil."},"lastTouchAt":{"type":["string","null"],"description":"Kdy se s leadem naposledy něco stalo."},"origin":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsOriginData"},{"type":"null"}],"description":"Odkud lead poprvé přišel. null, když to Fusio neví."},"conversions":{"$ref":"#/components/schemas/LeadAnalyticsConversionsData"},"upcoming":{"$ref":"#/components/schemas/LeadAnalyticsUpcomingData","description":"Co je naplánované dál: rezervace, úkoly, další krok kadence a naplánované e-maily."},"pendingOutcomeBookings":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsPendingOutcomeBookingData"}},"journey":{"$ref":"#/components/schemas/LeadAnalyticsJourneyData","description":"Fáze, kterými lead prošel, a kde je teď."},"pinnedNote":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsPinnedNoteData"},{"type":"null"}]},"buyingCommittee":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsBuyingCommitteeMemberData"}}},"required":["firstTouchAt","lastTouchAt","origin","conversions","upcoming","pendingOutcomeBookings","journey","pinnedNote","buyingCommittee"],"title":"LeadAnalyticsOverviewData"},"LeadAnalyticsPendingOutcomeBookingData":{"type":"object","properties":{"id":{"type":"integer"},"startsAtUtc":{"type":"string"},"hostName":{"type":["string","null"]}},"required":["id","startsAtUtc","hostName"],"title":"LeadAnalyticsPendingOutcomeBookingData"},"LeadAnalyticsPersonalChannelData":{"type":"object","properties":{"sent":{"type":"integer"},"opens":{"type":"integer"}},"required":["sent","opens"],"title":"LeadAnalyticsPersonalChannelData"},"LeadAnalyticsPinnedNoteData":{"type":"object","properties":{"id":{"type":"integer"},"excerpt":{"type":"string"},"authorName":{"type":["string","null"]},"pinnedAt":{"type":"string"}},"required":["id","excerpt","authorName","pinnedAt"],"title":"LeadAnalyticsPinnedNoteData"},"LeadAnalyticsRelatedData":{"type":"object","properties":{"matchedBy":{"type":["string","null"],"description":"Co mají leady společné: stejné IČO, nebo stejnou doménu webu či e-mailů. null, když se nic neshodovalo."},"leads":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsRelatedLeadData"},"description":"Příbuzné leady."}},"required":["matchedBy","leads"],"title":"LeadAnalyticsRelatedData"},"LeadAnalyticsRelatedLeadData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"stage":{"type":"string"},"ownerName":{"type":["string","null"]},"dealsCount":{"type":"integer"},"wonDealsCount":{"type":"integer"},"lastActivityAt":{"type":["string","null"]}},"required":["id","name","stage","ownerName","dealsCount","wonDealsCount","lastActivityAt"],"title":"LeadAnalyticsRelatedLeadData"},"LeadAnalyticsStatsData":{"type":"object","properties":{"campaign":{"$ref":"#/components/schemas/LeadAnalyticsCampaignChannelData"},"personal":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsPersonalChannelData"},{"type":"null"}]},"engagementScore":{"type":"integer"},"heatStatus":{"type":"string"},"frequencyRatio":{"type":"number"},"respondedCampaigns":{"type":"integer"},"totalCampaigns":{"type":"integer"}},"required":["campaign","personal","engagementScore","heatStatus","frequencyRatio","respondedCampaigns","totalCampaigns"],"title":"LeadAnalyticsStatsData"},"LeadAnalyticsSubmissionAnswerData":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"title":"LeadAnalyticsSubmissionAnswerData"},"LeadAnalyticsSubmissionContactData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":["string","null"]}},"required":["id","name","email"],"title":"LeadAnalyticsSubmissionContactData"},"LeadAnalyticsSubmissionDealData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"stage":{"type":"string"},"relation":{"type":"string"}},"required":["id","name","stage","relation"],"title":"LeadAnalyticsSubmissionDealData"},"LeadAnalyticsSubmissionSourceData":{"type":"object","properties":{"utmSource":{"type":["string","null"]},"utmMedium":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"referer":{"type":["string","null"]}},"required":["utmSource","utmMedium","utmCampaign","referer"],"title":"LeadAnalyticsSubmissionSourceData"},"LeadAnalyticsTaskLinkData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"dueAt":{"type":["string","null"]}},"required":["id","title","dueAt"],"title":"LeadAnalyticsTaskLinkData"},"LeadAnalyticsTimeSeriesDayData":{"type":"object","properties":{"date":{"type":"string","description":"Den."},"campaignSent":{"type":"integer"},"campaignOpens":{"type":"integer"},"campaignClicks":{"type":"integer"},"personalSent":{"type":"integer"},"personalOpens":{"type":"integer"},"replies":{"type":"integer"},"visits":{"type":"integer","description":"Návštěvy webu ten den."},"pageViews":{"type":"integer"},"formViews":{"type":"integer"},"formStarts":{"type":"integer"},"formSubmits":{"type":"integer","description":"Formuláře odeslané ten den."},"bookings":{"type":"integer"},"adClicks":{"type":"integer"},"steps":{"type":"integer"},"strongSteps":{"type":"integer"},"points":{"type":"integer","description":"Body, které lead ten den dostal."}},"required":["date","campaignSent","campaignOpens","campaignClicks","personalSent","personalOpens","replies","visits","pageViews","formViews","formStarts","formSubmits","bookings","adClicks","steps","strongSteps","points"],"title":"LeadAnalyticsTimeSeriesDayData"},"LeadAnalyticsUpcomingBookingData":{"type":"object","properties":{"id":{"type":"integer"},"startsAtUtc":{"type":"string"},"status":{"type":"string"},"hostName":{"type":["string","null"]}},"required":["id","startsAtUtc","status","hostName"],"title":"LeadAnalyticsUpcomingBookingData"},"LeadAnalyticsUpcomingData":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsUpcomingBookingData"}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsTaskLinkData"}},"cadenceStep":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsCadenceStepData"},{"type":"null"}]},"scheduledEmails":{"type":"integer"}},"required":["bookings","tasks","cadenceStep","scheduledEmails"],"title":"LeadAnalyticsUpcomingData"},"LeadAnalyticsWebActivityCellData":{"type":"object","properties":{"weekday":{"type":"integer"},"hour":{"type":"integer"},"count":{"type":"integer"}},"required":["weekday","hour","count"],"title":"LeadAnalyticsWebActivityCellData"},"LeadAnalyticsWebData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadAnalyticsWebSummaryData","description":"Návštěvy, zobrazení stránek a jak dlouho návštěvy trvaly."},"pages":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsWebPageData"},"description":"Stránky, které si lidé leadu prohlíželi."},"sources":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsWebSourceData"},"description":"Odkud návštěvy přišly."},"activity":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsWebActivityCellData"},"description":"Návštěvy podle dne v týdnu a hodiny."}},"required":["summary","pages","sources","activity"],"title":"LeadAnalyticsWebData"},"LeadAnalyticsWebPageData":{"type":"object","properties":{"path":{"type":"string"},"url":{"type":["string","null"]},"title":{"type":["string","null"]},"views":{"type":"integer"},"lastViewedAt":{"type":"string"}},"required":["path","url","title","views","lastViewedAt"],"title":"LeadAnalyticsWebPageData"},"LeadAnalyticsWebSourceData":{"type":"object","properties":{"channel":{"type":"string"},"visits":{"type":"integer"}},"required":["channel","visits"],"title":"LeadAnalyticsWebSourceData"},"LeadAnalyticsWebSummaryData":{"type":"object","properties":{"visits":{"type":"integer"},"pageViews":{"type":"integer"},"uniquePages":{"type":"integer"},"lastVisitAt":{"type":["string","null"]},"averageVisitDurationSeconds":{"type":["integer","null"]},"measuredVisits":{"type":"integer"},"totalVisitDurationSeconds":{"type":["integer","null"]},"lastPagePath":{"type":["string","null"]},"lastPageTitle":{"type":["string","null"]}},"required":["visits","pageViews","uniquePages","lastVisitAt","averageVisitDurationSeconds","measuredVisits","totalVisitDurationSeconds","lastPagePath","lastPageTitle"],"title":"LeadAnalyticsWebSummaryData"},"LeadBillingAddressData":{"type":"object","properties":{"name":{"type":["string","null"]},"street":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"countryIso":{"type":["string","null"]}},"required":["name","street","city","zip","countryIso"],"title":"LeadBillingAddressData"},"LeadCadenceBouncedStepData":{"type":"object","properties":{"leadCadenceStepId":{"type":"integer"},"deliveryFailedAt":{"type":["string","null"]},"bounceReason":{"type":["string","null"]},"bouncedEmail":{"type":"string"},"contactId":{"type":["integer","null"]}},"required":["leadCadenceStepId","deliveryFailedAt","bounceReason","bouncedEmail","contactId"],"title":"LeadCadenceBouncedStepData"},"LeadCadenceDelayUnit":{"type":"string","enum":["minutes","hours","days"],"title":"LeadCadenceDelayUnit"},"LeadCadenceEnrollmentData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"leadId":{"type":"integer"},"leadCadenceTemplateId":{"type":"integer"},"leadAssigneeId":{"type":"integer","description":"Uživatel, který plán vede."},"userId":{"type":"integer"},"state":{"$ref":"#/components/schemas/LeadCadenceEnrollmentState","description":"Jestli kadence pořád běží."},"template":{"$ref":"#/components/schemas/LeadCadenceTemplateData","description":"Kadence, ve které lead je."},"currentStep":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceStepData"},{"type":"null"}],"description":"Krok, na kterém lead teď je. null, když žádný není."},"currentTask":{"anyOf":[{"$ref":"#/components/schemas/IndexTaskData"},{"type":"null"}]},"startedAt":{"type":"string"},"pausedAt":{"type":["string","null"]},"stoppedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"replyDueAt":{"type":["string","null"]},"stopReason":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceStopReason"},{"type":"null"}]},"stopNote":{"type":["string","null"]},"stopSource":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceStopSourceData"},{"type":"null"}]},"stoppedSequencesCount":{"type":["integer","null"]},"stoppedByUserId":{"type":["integer","null"]},"resolution":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceResolution"},{"type":"null"}]},"resolvedAt":{"type":["string","null"]},"resolvedByUserId":{"type":["integer","null"]},"currentPathId":{"type":["integer","null"]},"leadCadenceReactionId":{"type":["integer","null"]},"resumesAt":{"type":["string","null"]},"outreachAction":{"anyOf":[{"$ref":"#/components/schemas/PrivateOutreachAction"},{"type":"null"}],"description":"Cíl oslovení. null, když nebyl zadaný."},"messageFrameworkId":{"type":["integer","null"],"description":"Rámec zpráv, podle kterého se píšou zprávy plánu. null, když nebyl zadaný."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"scheduledEmails":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceScheduledEmailData"}},"bouncedSteps":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceBouncedStepData"}},"skippedSteps":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceSkippedStepData"}}},"required":["id","tenantId","leadId","leadCadenceTemplateId","leadAssigneeId","userId","state","template","currentStep","currentTask","startedAt","pausedAt","stoppedAt","completedAt","replyDueAt","stopReason","stopNote","stopSource","stoppedSequencesCount","stoppedByUserId","resolution","resolvedAt","resolvedByUserId","currentPathId","leadCadenceReactionId","resumesAt","outreachAction","messageFrameworkId","createdAt","updatedAt","scheduledEmails","bouncedSteps","skippedSteps"],"title":"LeadCadenceEnrollmentData"},"LeadCadenceEnrollmentState":{"type":"string","enum":["active","paused","stopped","completed"],"title":"LeadCadenceEnrollmentState"},"LeadCadenceNoReplyActionData":{"type":"object","properties":{"id":{"type":"integer"},"position":{"type":"integer"},"type":{"$ref":"#/components/schemas/LeadCadenceNoReplyActionType"},"stage":{"anyOf":[{"$ref":"#/components/schemas/LeadStage"},{"type":"null"}]},"tagId":{"type":["integer","null"]},"segmentId":{"type":["integer","null"]},"customFieldId":{"type":["integer","null"]},"emailSequenceId":{"type":["integer","null"]},"startLeadCadenceTemplateId":{"type":["integer","null"]},"value":{"type":["string","null"]}},"required":["id","position","type","stage","tagId","segmentId","customFieldId","emailSequenceId","startLeadCadenceTemplateId","value"],"title":"LeadCadenceNoReplyActionData"},"LeadCadenceNoReplyActionType":{"type":"string","enum":["set_stage","add_tag","add_to_segment","set_custom_field","start_email_sequence","create_task","start_cadence"],"title":"LeadCadenceNoReplyActionType"},"LeadCadenceNoReplyScenarioData":{"type":"object","properties":{"id":{"type":"integer"},"position":{"type":"integer"},"name":{"type":"string"},"conditions":{"anyOf":[{"$ref":"#/components/schemas/ConditionGroupOutputData"},{"type":"null"}]},"actions":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceNoReplyActionData"}}},"required":["id","position","name","conditions","actions"],"title":"LeadCadenceNoReplyScenarioData"},"LeadCadencePathData":{"type":"object","properties":{"id":{"type":"integer"},"kind":{"$ref":"#/components/schemas/LeadCadencePathKind"},"name":{"type":["string","null"]},"position":{"type":"integer"},"stageAfter":{"anyOf":[{"$ref":"#/components/schemas/LeadStage"},{"type":"null"}]}},"required":["id","kind","name","position","stageAfter"],"title":"LeadCadencePathData"},"LeadCadencePathKind":{"type":"string","enum":["main","branch"],"title":"LeadCadencePathKind"},"LeadCadenceReactionAction":{"type":"string","enum":["go_to_path","continue","snooze","postpone_to_date","create_task","end"],"title":"LeadCadenceReactionAction"},"LeadCadenceReactionData":{"type":"object","properties":{"id":{"type":"integer"},"position":{"type":"integer"},"kind":{"$ref":"#/components/schemas/LeadCadenceReactionKind"},"label":{"type":["string","null"]},"action":{"$ref":"#/components/schemas/LeadCadenceReactionAction"},"targetPathId":{"type":["integer","null"]},"snoozeValue":{"type":["integer","null"]},"snoozeUnit":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceDelayUnit"},{"type":"null"}]},"endStage":{"anyOf":[{"$ref":"#/components/schemas/LeadStage"},{"type":"null"}]}},"required":["id","position","kind","label","action","targetPathId","snoozeValue","snoozeUnit","endStage"],"title":"LeadCadenceReactionData"},"LeadCadenceReactionKind":{"type":"string","enum":["interested","not_interested","opt_out","undecided","call_later","out_of_office","question","forwarded","other_supplier","send_offer","custom"],"title":"LeadCadenceReactionKind"},"LeadCadenceResolution":{"type":"string","enum":["interested","not_interested"],"title":"LeadCadenceResolution"},"LeadCadenceRuleAction":{"type":"string","enum":["continue","go_to_step","repeat","go_to_path","end"],"title":"LeadCadenceRuleAction"},"LeadCadenceScheduledEmailData":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"leadCadenceStepId":{"type":"integer"},"scheduledAt":{"type":"string"},"status":{"$ref":"#/components/schemas/ScheduledPersonalEmailStatus"},"failureMessage":{"type":["string","null"]},"emailConversationId":{"type":["integer","null"]}},"required":["id","userId","leadCadenceStepId","scheduledAt","status","failureMessage","emailConversationId"],"title":"LeadCadenceScheduledEmailData"},"LeadCadenceSkippedStepData":{"type":"object","properties":{"leadCadenceStepId":{"type":"integer"},"reason":{"$ref":"#/components/schemas/LeadCadenceStepSkipReason"},"skippedAt":{"type":"string"}},"required":["leadCadenceStepId","reason","skippedAt"],"title":"LeadCadenceSkippedStepData"},"LeadCadenceStepData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"leadCadenceTemplateId":{"type":"integer"},"pathId":{"type":"integer"},"parentStepId":{"type":["integer","null"]},"position":{"type":"integer"},"channel":{"$ref":"#/components/schemas/LeadOutreachChannel"},"title":{"type":"string"},"instructions":{"type":["string","null"]},"delayValue":{"type":"integer"},"delayUnit":{"$ref":"#/components/schemas/LeadCadenceDelayUnit"},"replyWaitValue":{"type":"integer"},"replyWaitUnit":{"$ref":"#/components/schemas/LeadCadenceDelayUnit"},"rules":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceStepRuleData"}},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","leadCadenceTemplateId","pathId","parentStepId","position","channel","title","instructions","delayValue","delayUnit","replyWaitValue","replyWaitUnit","rules","createdAt","updatedAt"],"title":"LeadCadenceStepData"},"LeadCadenceStepRuleData":{"type":"object","properties":{"id":{"type":"integer"},"outcome":{"$ref":"#/components/schemas/LeadOutreachOutcome"},"action":{"$ref":"#/components/schemas/LeadCadenceRuleAction"},"targetStepId":{"type":["integer","null"]},"targetPathId":{"type":["integer","null"]},"repeatAfterValue":{"type":["integer","null"]},"repeatAfterUnit":{"anyOf":[{"$ref":"#/components/schemas/LeadCadenceDelayUnit"},{"type":"null"}]},"repeatMax":{"type":["integer","null"]},"endStage":{"anyOf":[{"$ref":"#/components/schemas/LeadStage"},{"type":"null"}]}},"required":["id","outcome","action","targetStepId","targetPathId","repeatAfterValue","repeatAfterUnit","repeatMax","endStage"],"title":"LeadCadenceStepRuleData"},"LeadCadenceStepSkipReason":{"type":"string","enum":["missing_channel","not_needed"],"title":"LeadCadenceStepSkipReason"},"LeadCadenceStopReason":{"type":"string","enum":["manual","reply","email_reply","meeting_booked","form_submitted","connected","not_interested","unsubscribed","whatsapp_reply","rule_end","opt_out"],"title":"LeadCadenceStopReason"},"LeadCadenceStopSourceData":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/LeadCadenceStopSourceType"},"id":{"type":["integer","null"]},"occurredAt":{"type":"string"},"title":{"type":["string","null"]},"excerpt":{"type":["string","null"]},"touchId":{"type":["integer","null"]},"startsAtUtc":{"type":["string","null"]},"timezone":{"type":["string","null"]},"inquiryId":{"type":["integer","null"]}},"required":["type","id","occurredAt","title","excerpt","touchId","startsAtUtc","timezone","inquiryId"],"title":"LeadCadenceStopSourceData"},"LeadCadenceStopSourceType":{"type":"string","enum":["email_reply","whatsapp_reply","booking","lead_form","touch","unsubscribe"],"title":"LeadCadenceStopSourceType"},"LeadCadenceTemplateData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"isSystem":{"type":"boolean"},"isPrimary":{"type":"boolean"},"purpose":{"$ref":"#/components/schemas/LeadCadenceTemplatePurpose"},"stepCount":{"type":"integer"},"spanDays":{"type":"integer"},"paths":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadencePathData"},"description":"Cesty plánu. `kind` je `main` pro hlavní linii a `branch` pro kroky, které následují po reakci."},"steps":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceStepData"},"description":"Kroky plánu v pořadí, každý s kanálem, odstupem a `pathId`, cestou, ke které patří."},"reactions":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceReactionData"}},"noReplyScenarios":{"type":"array","items":{"$ref":"#/components/schemas/LeadCadenceNoReplyScenarioData"}},"noReplyStage":{"anyOf":[{"$ref":"#/components/schemas/LeadStage"},{"type":"null"}]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]}},"required":["id","tenantId","userId","name","description","isActive","isSystem","isPrimary","purpose","stepCount","spanDays","paths","steps","reactions","noReplyScenarios","noReplyStage","createdAt","updatedAt","deletedAt"],"title":"LeadCadenceTemplateData"},"LeadCadenceTemplatePurpose":{"type":"string","enum":["outreach","follow_up"],"title":"LeadCadenceTemplatePurpose"},"LeadContact.IndexLeadContactData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo propojení. Pošli ho jako leadContact, když chceš propojení změnit nebo odebrat."},"leadId":{"type":"integer"},"contactId":{"type":"integer"},"isPrimary":{"type":"boolean","description":"true pro hlavní kontakt."},"contactName":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"contactType":{"$ref":"#/components/schemas/ContactType"}},"required":["id","leadId","contactId","isPrimary","contactName","contactEmail","contactType"],"title":"LeadContact.IndexLeadContactData"},"LeadContactAnalyticsData":{"type":"object","properties":{"leadContactId":{"type":"string"},"contactId":{"type":"string"},"contactName":{"type":"string"},"contactEmail":{"type":["string","null"]},"isPrimary":{"type":"boolean"},"buyingRole":{"type":["string","null"]},"campaign":{"$ref":"#/components/schemas/LeadAnalyticsCampaignChannelData"},"personal":{"anyOf":[{"$ref":"#/components/schemas/LeadAnalyticsPersonalChannelData"},{"type":"null"}]},"engagementScore":{"type":"integer"},"heatStatus":{"type":"string"},"frequencyRatio":{"type":"number"}},"required":["leadContactId","contactId","contactName","contactEmail","isPrimary","buyingRole","campaign","personal","engagementScore","heatStatus","frequencyRatio"],"title":"LeadContactAnalyticsData"},"LeadContactAnalyticsOptionData":{"type":"object","properties":{"contactId":{"type":"string"},"contactName":{"type":"string"},"contactEmail":{"type":["string","null"]},"engagementScore":{"type":"integer"},"heatStatus":{"type":"string"}},"required":["contactId","contactName","contactEmail","engagementScore","heatStatus"],"title":"LeadContactAnalyticsOptionData"},"LeadContactBuyingRole":{"type":"string","enum":["decision_maker","champion","influencer","user","blocker"],"title":"LeadContactBuyingRole"},"LeadConversionModelStatus":{"type":"string","enum":["collecting","ready","rejected"],"title":"LeadConversionModelStatus"},"LeadConversionModelStatusOutputData":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/LeadConversionModelStatus","description":"collecting (Fusio ještě potřebuje víc rozhodnutých leadů), ready (model funguje) nebo rejected (nebyl dost dobrý)."},"decidedCount":{"type":"integer","description":"Kolik leadů skončilo jako vyhrané nebo prohrané."},"positiveCount":{"type":"integer","description":"Kolik z nich bylo vyhraných."},"requiredDecided":{"type":"integer","description":"Kolik rozhodnutých leadů model potřebuje."},"requiredPerClass":{"type":"integer","description":"Kolik vyhraných a kolik prohraných leadů potřebuje aspoň."},"minimumHoldoutAuc":{"type":"number","description":"Jak dobré musí být skóre testu, aby se model použil, od 0 do 1."},"trainedAt":{"type":["string","null"],"description":"Kdy se model naposledy učil. null před prvním učením."},"holdoutAuc":{"type":["number","null"],"description":"Skóre testu modelu, od 0 do 1. Víc je líp."},"baselineAuc":{"type":["number","null"],"description":"Skóre testu jednoduchého hodnocení, pro srovnání."},"isEntitled":{"type":"boolean","description":"true, když tvůj tarif má předpovědi."},"isPredictionVisible":{"type":"boolean","description":"true, když lidé předpovědi vidí."},"hasModelInForce":{"type":"boolean","description":"true, když se teď nějaký model používá."}},"required":["status","decidedCount","positiveCount","requiredDecided","requiredPerClass","minimumHoldoutAuc","trainedAt","holdoutAuc","baselineAuc","isEntitled","isPredictionVisible","hasModelInForce"],"title":"LeadConversionModelStatusOutputData"},"LeadConversionRatesData":{"type":"object","properties":{"coldToWarm":{"type":"number"},"warmToQualified":{"type":"number"},"qualifiedToClient":{"type":"number"}},"required":["coldToWarm","warmToQualified","qualifiedToClient"],"title":"LeadConversionRatesData"},"LeadDiscoveryBrowserSource":{"type":"string","enum":["instagram","facebook","linkedin","x","google_maps","firmy_cz","web"],"title":"LeadDiscoveryBrowserSource"},"LeadDiscoveryRecommendation":{"type":"string","enum":["approve","dismiss"],"title":"LeadDiscoveryRecommendation"},"LeadDiscoverySource":{"type":"string","enum":["ares","eshopy_cz","browser"],"title":"LeadDiscoverySource"},"LeadDuplicateCheckOutputData":{"type":"object","properties":{"duplicate":{"anyOf":[{"$ref":"#/components/schemas/LeadDuplicateOutputData"},{"type":"null"}],"description":"Lead, který už existuje: jeho číslo, název, IČO, fáze a kdy byl přidán. null, když žádný není."},"field":{"anyOf":[{"$ref":"#/components/schemas/LeadDuplicateField"},{"type":"null"}],"description":"Která hodnota se shodovala: registrationNumber nebo email. null, když se nic neshodovalo."}},"required":["duplicate","field"],"title":"LeadDuplicateCheckOutputData"},"LeadDuplicateField":{"type":"string","enum":["registrationNumber","email"],"title":"LeadDuplicateField"},"LeadDuplicateOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"stage":{"$ref":"#/components/schemas/LeadStage"},"createdAt":{"type":["string","null"]}},"required":["id","name","registrationNumber","stage","createdAt"],"title":"LeadDuplicateOutputData"},"LeadEmailsContactData":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/IndexContactData"},"unsubscribedAt":{"type":["string","null"]},"sequences":{"type":"array","items":{"$ref":"#/components/schemas/PrivateOutreachSequenceData"}},"scheduledEmails":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledPersonalEmailData"}},"drafts":{"type":"array","items":{"$ref":"#/components/schemas/PersonalEmailDraftData"}}},"required":["contact","unsubscribedAt","sequences","scheduledEmails","drafts"],"title":"LeadEmailsContactData"},"LeadEmailsData":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/LeadEmailsSummaryData","description":"Kolik sekvencí běží a e-mailů je naplánovaných pro celý lead a kdy odejde další."},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/LeadEmailsContactData"},"description":"Každý kontakt leadu s jeho sekvencemi, naplánovanými e-maily a koncepty. Vidíš jen svoje koncepty."}},"required":["summary","contacts"],"title":"LeadEmailsData"},"LeadEmailsSummaryData":{"type":"object","properties":{"runningSequences":{"type":"integer"},"scheduledEmails":{"type":"integer"},"nextTouchAt":{"type":["string","null"]}},"required":["runningSequences","scheduledEmails","nextTouchAt"],"title":"LeadEmailsSummaryData"},"LeadEngagementLedgerEntryData":{"type":"object","properties":{"id":{"type":"integer"},"contactId":{"type":"integer"},"signalKey":{"$ref":"#/components/schemas/EngagementSignalKey"},"signalClass":{"$ref":"#/components/schemas/EngagementSignalClass"},"points":{"type":"integer"},"occurredAt":{"type":"string"},"currentWeight":{"type":"number"},"currentPoints":{"type":"number"},"formName":{"type":["string","null"]},"eventName":{"type":["string","null"]}},"required":["id","contactId","signalKey","signalClass","points","occurredAt","currentWeight","currentPoints","formName","eventName"],"title":"LeadEngagementLedgerEntryData"},"LeadEngagementWindowData":{"type":"object","properties":{"windowDays":{"type":"integer"},"limit":{"type":"integer"},"returnedCount":{"type":"integer"},"truncated":{"type":"boolean"}},"required":["windowDays","limit","returnedCount","truncated"],"title":"LeadEngagementWindowData"},"LeadFirmographicCoverageData":{"type":"object","properties":{"resolved":{"type":"integer"},"freemail":{"type":"integer"},"unresolved":{"type":"integer"}},"required":["resolved","freemail","unresolved"],"title":"LeadFirmographicCoverageData"},"LeadFirmographicData":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/LeadFirmographicSource"},"fetchedAt":{"type":["string","null"]},"isActive":{"type":["boolean","null"]},"czNace":{"type":["string","null"]},"czNaceLabel":{"type":["string","null"]},"naceCategory":{"anyOf":[{"$ref":"#/components/schemas/AresFilterOptionData"},{"type":"null"}]},"legalForm":{"anyOf":[{"$ref":"#/components/schemas/AresRegistryCodeData"},{"type":"null"}]},"employeeBand":{"anyOf":[{"$ref":"#/components/schemas/AresRegistryCodeData"},{"type":"null"}]},"region":{"type":["string","null"]},"registeredOn":{"type":["string","null"]},"shareCapital":{"type":["integer","null"]},"businessActivities":{"type":["array","null"],"items":{"type":"string"}},"foundedOn":{"type":["string","null"]},"taxOffice":{"anyOf":[{"$ref":"#/components/schemas/AresRegistryCodeData"},{"type":"null"}]},"registrations":{"anyOf":[{"$ref":"#/components/schemas/AresRegistrationsData"},{"type":"null"}]},"naceCodes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/AresRegistryCodeData"}},"institutionalSector":{"anyOf":[{"$ref":"#/components/schemas/AresRegistryCodeData"},{"type":"null"}]},"deliveryAddress":{"type":["string","null"]},"fileNumber":{"type":["string","null"]},"registryCourt":{"anyOf":[{"$ref":"#/components/schemas/AresRegistryCodeData"},{"type":"null"}]},"registerPeople":{"type":["array","null"],"items":{"$ref":"#/components/schemas/AresRegisterPersonData"}},"czNaceExpired":{"type":"boolean"},"legalFormExpired":{"type":"boolean"}},"required":["source","fetchedAt","isActive","czNace","czNaceLabel","naceCategory","legalForm","employeeBand","region","registeredOn","shareCapital","businessActivities","foundedOn","taxOffice","registrations","naceCodes","institutionalSector","deliveryAddress","fileNumber","registryCourt","registerPeople","czNaceExpired","legalFormExpired"],"title":"LeadFirmographicData"},"LeadFirmographicEnrichmentEligibilityData":{"type":"object","properties":{"eligible":{"type":"boolean","description":"True, když jdou údaje doplnit."},"reason":{"type":["string","null"],"description":"Proč je nejde doplnit, nebo null."}},"required":["eligible","reason"],"title":"LeadFirmographicEnrichmentEligibilityData"},"LeadFirmographicSource":{"type":"string","enum":["ares","ares_form"],"title":"LeadFirmographicSource"},"LeadFitBasis":{"type":"string","enum":["business","consumer"],"title":"LeadFitBasis"},"LeadFitBreakdownData":{"type":"object","properties":{"fitScore":{"type":["integer","null"]},"fitGrade":{"$ref":"#/components/schemas/LeadFitGrade"},"fitBasis":{"anyOf":[{"$ref":"#/components/schemas/LeadFitBasis"},{"type":"null"}]},"personType":{"$ref":"#/components/schemas/LeadPersonType"},"criteria":{"type":"array","items":{"$ref":"#/components/schemas/LeadFitCriterionData"}},"earnedWeight":{"type":"integer"},"possibleWeight":{"type":"integer"},"isAssessed":{"type":"boolean"},"missing":{"anyOf":[{"$ref":"#/components/schemas/LeadFitMissing"},{"type":"null"}]}},"required":["fitScore","fitGrade","fitBasis","personType","criteria","earnedWeight","possibleWeight","isAssessed","missing"],"title":"LeadFitBreakdownData"},"LeadFitCriterionData":{"type":"object","properties":{"key":{"type":"string"},"matched":{"type":"boolean"},"earnedWeight":{"type":"integer"},"possibleWeight":{"type":"integer"}},"required":["key","matched","earnedWeight","possibleWeight"],"title":"LeadFitCriterionData"},"LeadFitGrade":{"type":"string","enum":["A","B","C","unknown"],"title":"LeadFitGrade"},"LeadFitIntentCellData":{"type":"object","properties":{"cell":{"type":"string"},"fitGrade":{"$ref":"#/components/schemas/LeadFitGrade"},"heatStatus":{"$ref":"#/components/schemas/HeatStatus"},"intentLevel":{"type":"integer"},"isMql":{"type":"boolean"},"count":{"type":"integer"}},"required":["cell","fitGrade","heatStatus","intentLevel","isMql","count"],"title":"LeadFitIntentCellData"},"LeadFitMissing":{"type":"string","enum":["company","customers"],"title":"LeadFitMissing"},"LeadFormIntentTierCountsData":{"type":"object","properties":{"handRaiser":{"type":"integer"},"standard":{"type":"integer"},"subscription":{"type":"integer"},"passive":{"type":"integer"},"withoutForm":{"type":"integer"}},"required":["handRaiser","standard","subscription","passive","withoutForm"],"title":"LeadFormIntentTierCountsData"},"LeadFunnelBreakdownData":{"type":"object","properties":{"dimension":{"$ref":"#/components/schemas/LeadFunnelSegmentDimension"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/LeadFunnelRateData"}}},"required":["dimension","rows"],"title":"LeadFunnelBreakdownData"},"LeadFunnelCountData":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":["string","null"]},"count":{"type":"integer"}},"required":["key","name","count"],"title":"LeadFunnelCountData"},"LeadFunnelData":{"type":"object","properties":{"visitors":{"type":"integer"},"leads":{"type":"integer"},"qualified":{"type":"integer"},"withDeal":{"type":"integer"},"won":{"type":"integer"}},"required":["visitors","leads","qualified","withDeal","won"],"title":"LeadFunnelData"},"LeadFunnelRateData":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":["string","null"]},"people":{"type":"integer"},"passed":{"type":"integer"}},"required":["key","name","people","passed"],"title":"LeadFunnelRateData"},"LeadFunnelSegmentDimension":{"type":"string","enum":["channel","device","source","platform","form"],"title":"LeadFunnelSegmentDimension"},"LeadFunnelStep":{"type":"string","enum":["leads","qualified","with_deal","won"],"title":"LeadFunnelStep"},"LeadFunnelStepDetailData":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/LeadFunnelStep"},"composition":{"type":"array","items":{"$ref":"#/components/schemas/LeadFunnelCountData"}},"breakdowns":{"type":"array","items":{"$ref":"#/components/schemas/LeadFunnelBreakdownData"}}},"required":["step","composition","breakdowns"],"title":"LeadFunnelStepDetailData"},"LeadHandoffData":{"type":"object","properties":{"cell":{"type":"string"},"handedOffAt":{"type":"string"},"notifiedAt":{"type":["string","null"]},"notifiedRecipientCount":{"type":"integer"},"firstResponseAt":{"type":["string","null"]},"responseSeconds":{"type":["integer","null"]}},"required":["cell","handedOffAt","notifiedAt","notifiedRecipientCount","firstResponseAt","responseSeconds"],"title":"LeadHandoffData"},"LeadHistoryCadenceStepData":{"type":"object","properties":{"templateName":{"type":["string","null"]},"position":{"type":"integer"},"title":{"type":"string"},"channel":{"type":"string"},"touches":{"type":"array","items":{"$ref":"#/components/schemas/LeadHistoryCadenceTouchData"}}},"required":["templateName","position","title","channel","touches"],"title":"LeadHistoryCadenceStepData"},"LeadHistoryCadenceTouchData":{"type":"object","properties":{"id":{"type":"integer"},"channel":{"$ref":"#/components/schemas/LeadOutreachChannel"},"direction":{"$ref":"#/components/schemas/LeadOutreachDirection"},"outcome":{"$ref":"#/components/schemas/LeadOutreachOutcome"},"occurredAt":{"type":"string"},"note":{"type":["string","null"]},"actorName":{"type":["string","null"]},"contactName":{"type":["string","null"]},"conversationId":{"type":["integer","null"]},"voidedAt":{"type":["string","null"]}},"required":["id","channel","direction","outcome","occurredAt","note","actorName","contactName","conversationId","voidedAt"],"title":"LeadHistoryCadenceTouchData"},"LeadHistoryCommonPathData":{"type":"object","properties":{"channel":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/LeadHistoryCommonPathStepData"}},"visits":{"type":"integer"},"totalVisits":{"type":"integer"}},"required":["channel","steps","visits","totalVisits"],"title":"LeadHistoryCommonPathData"},"LeadHistoryCommonPathStepData":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":["string","null"]}},"required":["path","title"],"title":"LeadHistoryCommonPathStepData"},"LeadHistoryPageOutputData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LeadHistoryRowData"},"description":"Události, nejnovější první."},"path":{"type":["string","null"]},"per_page":{"type":"integer"},"next_cursor":{"type":["string","null"],"description":"Pošli ho jako cursor a dostaneš další stránku. Na poslední stránce je null."},"next_page_url":{"type":["string","null"]},"prev_cursor":{"type":["string","null"],"description":"Pošli ho jako cursor a vrátíš se o stránku zpátky. Na první stránce je null."},"prev_page_url":{"type":["string","null"]},"typeCounts":{"anyOf":[{"$ref":"#/components/schemas/ContactHistoryTypeCountsData"},{"type":"null"}],"description":"Kolik je událostí každého typu. Jen na první stránce; další stránky mají null."},"commonPath":{"anyOf":[{"$ref":"#/components/schemas/LeadHistoryCommonPathData"},{"type":"null"}],"description":"Stránky, které lidé leadu nejčastěji navštěvují za sebou. Jen na první stránce s group_sessions=true; jinak null."}},"required":["data","path","per_page","next_cursor","next_page_url","prev_cursor","prev_page_url","typeCounts","commonPath"],"title":"LeadHistoryPageOutputData"},"LeadHistoryRecordData":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"integer"},"event":{"type":"string"},"title":{"type":["string","null"]},"detail":{"type":["string","null"]},"status":{"type":["string","null"]},"previousStatus":{"type":["string","null"]},"startsAtUtc":{"type":["string","null"]},"actorName":{"type":["string","null"]},"parent":{"anyOf":[{"$ref":"#/components/schemas/LeadHistoryRecordParentData"},{"type":"null"}]}},"required":["kind","id","event","title","detail","status","previousStatus","startsAtUtc","actorName","parent"],"title":"LeadHistoryRecordData"},"LeadHistoryRecordParentData":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"integer"},"label":{"type":["string","null"]}},"required":["kind","id","label"],"title":"LeadHistoryRecordParentData"},"LeadHistoryRowData":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"channel":{"type":["string","null"]},"eventName":{"type":["string","null"]},"campaignName":{"type":["string","null"]},"trackableType":{"anyOf":[{"$ref":"#/components/schemas/TrackableType"},{"type":"null"}]},"trackableId":{"type":["integer","null"]},"date":{"type":["string","null"],"format":"date-time"},"context":{"type":["string","null"]},"url":{"type":["string","null"]},"country":{"type":["string","null"]},"deviceType":{"type":["string","null"]},"leadFormId":{"type":["integer","null"]},"leadFormName":{"type":["string","null"]},"submissionId":{"type":["string","null"]},"browser":{"type":["string","null"]},"operatingSystem":{"type":["string","null"]},"locale":{"type":["string","null"]},"referer":{"type":["string","null"]},"path":{"type":["string","null"]},"hostname":{"type":["string","null"]},"origin":{"type":["string","null"]},"utmSource":{"type":["string","null"]},"utmMedium":{"type":["string","null"]},"utmCampaign":{"type":["string","null"]},"utmTerm":{"type":["string","null"]},"utmContent":{"type":["string","null"]},"clickIdSource":{"type":["string","null"]},"clickIdValue":{"type":["string","null"]},"consentState":{"type":["string","null"]},"ingestSource":{"type":["string","null"]},"result":{"type":["string","null"]},"visitorSessionId":{"type":["integer","null"]},"payload":{"type":["string","null"]},"recipientEmail":{"type":["string","null"]},"deliveryStatus":{"type":["string","null"]},"deliveredAt":{"type":["string","null"],"format":"date-time"},"bouncedAt":{"type":["string","null"],"format":"date-time"},"bounceReason":{"type":["string","null"]},"bounceType":{"type":["string","null"]},"bounceCode":{"type":["string","null"]},"smtpCode":{"type":["string","null"]},"unsubscribedAt":{"type":["string","null"],"format":"date-time"},"unsubscribeReason":{"type":["string","null"]},"spamComplaintAt":{"type":["string","null"],"format":"date-time"},"envelopeId":{"type":["string","null"]},"sourceId":{"type":"integer"},"submission":{"anyOf":[{"$ref":"#/components/schemas/LeadHistorySubmissionData"},{"type":"null"}]},"record":{"anyOf":[{"$ref":"#/components/schemas/LeadHistoryRecordData"},{"type":"null"}]},"cadenceStep":{"anyOf":[{"$ref":"#/components/schemas/LeadHistoryCadenceStepData"},{"type":"null"}]},"session":{"anyOf":[{"$ref":"#/components/schemas/LeadHistoryWebSessionData"},{"type":"null"}]}},"required":["type","source","channel","eventName","campaignName","trackableType","trackableId","date","context","url","country","deviceType","leadFormId","leadFormName","submissionId","browser","operatingSystem","locale","referer","path","hostname","origin","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","clickIdSource","clickIdValue","consentState","ingestSource","result","visitorSessionId","payload","recipientEmail","deliveryStatus","deliveredAt","bouncedAt","bounceReason","bounceType","bounceCode","smtpCode","unsubscribedAt","unsubscribeReason","spamComplaintAt","envelopeId","sourceId","submission","record","cadenceStep","session"],"title":"LeadHistoryRowData"},"LeadHistorySubmissionBookingData":{"type":"object","properties":{"id":{"type":"integer"},"startsAtUtc":{"type":"string"},"status":{"type":"string"}},"required":["id","startsAtUtc","status"],"title":"LeadHistorySubmissionBookingData"},"LeadHistorySubmissionData":{"type":"object","properties":{"id":{"type":"integer"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/LeadAnalyticsSubmissionAnswerData"}},"inquiry":{"anyOf":[{"$ref":"#/components/schemas/LeadHistorySubmissionInquiryData"},{"type":"null"}]},"booking":{"anyOf":[{"$ref":"#/components/schemas/LeadHistorySubmissionBookingData"},{"type":"null"}]}},"required":["id","answers","inquiry","booking"],"title":"LeadHistorySubmissionData"},"LeadHistorySubmissionInquiryData":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","title","status"],"title":"LeadHistorySubmissionInquiryData"},"LeadHistoryWebSessionData":{"type":"object","properties":{"id":{"type":"integer"},"startedAt":{"type":"string"},"endedAt":{"type":"string"},"durationSeconds":{"type":"integer"},"pageViews":{"type":"integer"},"entryPath":{"type":["string","null"]},"channel":{"type":"string"},"deviceType":{"type":["string","null"]},"pages":{"type":"array","items":{"$ref":"#/components/schemas/LeadHistoryWebSessionPageData"}}},"required":["id","startedAt","endedAt","durationSeconds","pageViews","entryPath","channel","deviceType","pages"],"title":"LeadHistoryWebSessionData"},"LeadHistoryWebSessionPageData":{"type":"object","properties":{"id":{"type":"integer"},"path":{"type":"string"},"title":{"type":["string","null"]},"url":{"type":["string","null"]},"occurredAt":{"type":"string"},"secondsOnPage":{"type":["integer","null"]}},"required":["id","path","title","url","occurredAt","secondsOnPage"],"title":"LeadHistoryWebSessionPageData"},"LeadIntentBreakdownData":{"type":"object","properties":{"engagementScore":{"type":"integer"},"heatStatus":{"$ref":"#/components/schemas/HeatStatus"},"classes":{"type":"array","items":{"$ref":"#/components/schemas/LeadIntentClassBreakdownData"}},"sticky":{"$ref":"#/components/schemas/LeadIntentStickyData"},"suppressedRepeats":{"type":"array","items":{"$ref":"#/components/schemas/LeadIntentSuppressedRepeatData"}}},"required":["engagementScore","heatStatus","classes","sticky","suppressedRepeats"],"title":"LeadIntentBreakdownData"},"LeadIntentClassBreakdownData":{"type":"object","properties":{"signalClass":{"$ref":"#/components/schemas/EngagementSignalClass"},"eventCount":{"type":"integer"},"recordedPoints":{"type":"integer"},"currentPoints":{"type":"number"}},"required":["signalClass","eventCount","recordedPoints","currentPoints"],"title":"LeadIntentClassBreakdownData"},"LeadIntentStickyData":{"type":"object","properties":{"suppressed":{"type":"boolean"},"suppressedContactCount":{"type":"integer"},"eventCount":{"type":"integer"},"clearedEventCount":{"type":"integer"},"latestOccurredAt":{"type":["string","null"]}},"required":["suppressed","suppressedContactCount","eventCount","clearedEventCount","latestOccurredAt"],"title":"LeadIntentStickyData"},"LeadIntentSuppressedRepeatData":{"type":"object","properties":{"signalKey":{"type":"string"},"repeatCount":{"type":"integer"}},"required":["signalKey","repeatCount"],"title":"LeadIntentSuppressedRepeatData"},"LeadInterestDayData":{"type":"object","properties":{"date":{"type":"string"},"points":{"type":"integer"}},"required":["date","points"],"title":"LeadInterestDayData"},"LeadJourneyStage":{"type":"string","enum":["visit","form","inquiry","booking","deal","customer"],"title":"LeadJourneyStage"},"LeadLostReason":{"type":"string","enum":["spam","test_submission","duplicate","wrong_contact","job_seeker","vendor_pitch","existing_customer","outside_target_segment","company_too_small","outside_service_area","service_not_offered","no_real_need","not_interested","no_response","no_budget","price_too_high","chose_competitor","already_has_supplier","bad_timing","no_decision_maker","other"],"title":"LeadLostReason"},"LeadNoteOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"noteableType":{"anyOf":[{"$ref":"#/components/schemas/NoteableType"},{"type":"null"}]},"noteableId":{"type":"integer"},"body":{"type":"string"},"leadOutreachTouchId":{"type":["integer","null"]},"outreachTouch":{"anyOf":[{"$ref":"#/components/schemas/NoteOutreachTouchData"},{"type":"null"}]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"pinnedAt":{"type":["string","null"]}},"required":["id","tenantId","userId","user","noteableType","noteableId","body","leadOutreachTouchId","outreachTouch","createdAt","updatedAt","pinnedAt"],"title":"LeadNoteOutputData"},"LeadOriginCountData":{"type":"object","properties":{"origin":{"$ref":"#/components/schemas/LeadOriginData"},"count":{"type":"integer"}},"required":["origin","count"],"title":"LeadOriginCountData"},"LeadOriginData":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/LeadOriginKind"},"key":{"type":"string"},"name":{"type":["string","null"]}},"required":["kind","key","name"],"title":"LeadOriginData"},"LeadOriginKind":{"type":"string","enum":["platform","form","source"],"title":"LeadOriginKind"},"LeadOutreachChannel":{"type":"string","enum":["email","linkedin","instagram","messenger","phone","voice_message","whatsapp","sms","meeting","other","form"],"title":"LeadOutreachChannel"},"LeadOutreachDirection":{"type":"string","enum":["outbound","inbound"],"title":"LeadOutreachDirection"},"LeadOutreachOutcome":{"type":"string","enum":["attempted","sent","connected","replied","no_reply","meeting_booked","not_interested","submitted","unsubscribed","resubscribed","bounced"],"title":"LeadOutreachOutcome"},"LeadOutreachQueueContactData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]}},"required":["id","name","email","phone","linkedinUrl"],"title":"LeadOutreachQueueContactData"},"LeadOutreachQueueItemData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo leadu. Při zápisu leadu do plánu ho pošli jako `{lead}`."},"name":{"type":["string","null"]},"website":{"type":["string","null"]},"stage":{"type":"string"},"fitScore":{"type":["integer","null"],"description":"Jak dobře zájemce odpovídá vašemu ideálnímu zákazníkovi, jako číslo. null, když ještě nemá skóre."},"ownerUserId":{"type":"integer","description":"Ty, jako jeden z lidí, kterým je lead přiřazený. Při zápisu leadu ho pošli jako `leadAssigneeId`."},"primaryContact":{"anyOf":[{"$ref":"#/components/schemas/LeadOutreachQueueContactData"},{"type":"null"}],"description":"Hlavní kontakt leadu, nebo null, když ho lead nemá. `linkedinUrl` je vyplněné, když Fusio lead našlo na LinkedInu."},"suggestedGoal":{"type":"string","description":"Cíl oslovení, kterým začít. U prvního kontaktu vždy `initial_outreach`."},"defaultMessageFrameworkId":{"type":["integer","null"],"description":"Výchozí rámec zpráv tenantu pro navržený cíl. null, když ho tenant nemá."}},"required":["leadId","name","website","stage","fitScore","ownerUserId","primaryContact","suggestedGoal","defaultMessageFrameworkId"],"title":"LeadOutreachQueueItemData"},"LeadOutreachStatus":{"type":"string","enum":["meeting_booked","replied","stopped","no_reply","waiting_reply","active","not_contacted"],"title":"LeadOutreachStatus"},"LeadOutreachTouchOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"leadId":{"type":"integer"},"leadContactId":{"type":["integer","null"]},"taskId":{"type":["integer","null"]},"leadCadenceStepId":{"type":["integer","null"]},"stepPosition":{"type":["integer","null"]},"stepTitle":{"type":["string","null"]},"userId":{"type":["integer","null"]},"userName":{"type":["string","null"]},"userEmail":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/LeadOutreachTouchSource"},"sourceId":{"type":["integer","null"]},"conversationId":{"type":["integer","null"]},"messageSubject":{"type":["string","null"]},"messagePreview":{"type":["string","null"]},"channel":{"$ref":"#/components/schemas/LeadOutreachChannel","description":"Jak ses ozval, třeba e-mailem nebo telefonem."},"direction":{"$ref":"#/components/schemas/LeadOutreachDirection","description":"Kdo se ozval: ty, nebo lead."},"outcome":{"$ref":"#/components/schemas/LeadOutreachOutcome","description":"Jak to dopadlo."},"occurredAt":{"type":"string","description":"Kdy se to stalo."},"note":{"type":["string","null"]},"noteId":{"type":["integer","null"]},"followUpTaskId":{"type":["integer","null"]},"taskCompleted":{"type":"boolean"},"voidedAt":{"type":["string","null"],"description":"Kdy ho někdo označil jako omyl. null, když platí."},"voidedById":{"type":["integer","null"]},"voidReason":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","leadId","leadContactId","taskId","leadCadenceStepId","stepPosition","stepTitle","userId","userName","userEmail","source","sourceId","conversationId","messageSubject","messagePreview","channel","direction","outcome","occurredAt","note","noteId","followUpTaskId","taskCompleted","voidedAt","voidedById","voidReason","createdAt","updatedAt"],"title":"LeadOutreachTouchOutputData"},"LeadOutreachTouchSource":{"type":"string","enum":["manual","email_sent","email_reply","booking","lead_form","unsubscribe","resubscribe","email_bounce","whatsapp_sent","whatsapp_reply","cadence_message"],"title":"LeadOutreachTouchSource"},"LeadOverviewData":{"type":"object","properties":{"kpis":{"$ref":"#/components/schemas/LeadOverviewKpisData","description":"Hlavní čísla, každé i s hodnotou předtím a řadou po dnech."},"countByStage":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik leadů je v každé fázi."},"countBySource":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik leadů přišlo z každého zdroje."},"conversionRates":{"$ref":"#/components/schemas/LeadConversionRatesData","description":"Kolik leadů postoupilo do další fáze, jako podíl od 0 do 1."},"fitIntentMatrix":{"type":"array","items":{"$ref":"#/components/schemas/LeadFitIntentCellData"}},"firmographicCoverage":{"$ref":"#/components/schemas/LeadFirmographicCoverageData"},"tierByForm":{"$ref":"#/components/schemas/LeadFormIntentTierCountsData"},"funnel":{"$ref":"#/components/schemas/LeadFunnelData","description":"Kolik návštěvníků se stalo leady, kvalifikovanými leady, leady s obchodem a klienty."},"funnelDetails":{"type":"array","items":{"$ref":"#/components/schemas/LeadFunnelStepDetailData"}},"countByOrigin":{"type":"array","items":{"$ref":"#/components/schemas/LeadOriginCountData"}},"countByForm":{"type":"array","items":{"$ref":"#/components/schemas/LeadFunnelCountData"}},"wonByOrigin":{"type":"array","items":{"$ref":"#/components/schemas/LeadOriginCountData"}},"acquisition":{"anyOf":[{"$ref":"#/components/schemas/LeadAcquisitionSectionData"},{"type":"null"}]},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["kpis","countByStage","countBySource","conversionRates","fitIntentMatrix","firmographicCoverage","tierByForm","funnel","funnelDetails","countByOrigin","countByForm","wonByOrigin","acquisition","ready","rolledUpAt","range","previousRange","dates"],"title":"LeadOverviewData"},"LeadOverviewKpisData":{"type":"object","properties":{"total":{"$ref":"#/components/schemas/OverviewKpiData"},"mql":{"$ref":"#/components/schemas/OverviewKpiData"},"fitResolved":{"$ref":"#/components/schemas/OverviewKpiData"},"qualified":{"$ref":"#/components/schemas/OverviewKpiData"},"firmographicResolved":{"$ref":"#/components/schemas/OverviewKpiData"},"awaitingContact":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["total","mql","fitResolved","qualified","firmographicResolved","awaitingContact"],"title":"LeadOverviewKpisData"},"LeadPersonType":{"type":"string","enum":["physical","legal"],"title":"LeadPersonType"},"LeadPredictionFactorData":{"type":"object","properties":{"feature":{"type":"string"},"contribution":{"type":"number"}},"required":["feature","contribution"],"title":"LeadPredictionFactorData"},"LeadPredictionVisibilityOutputData":{"type":"object","properties":{"isPredictionVisible":{"type":"boolean","description":"true, když tvůj tarif a nastavení předpovědi dovolí a model je připravený."}},"required":["isPredictionVisible"],"title":"LeadPredictionVisibilityOutputData"},"LeadRegisterLookupStatus":{"type":"string","enum":["processing","completed","not_found","failed"],"title":"LeadRegisterLookupStatus"},"LeadResearchProfileFitAssessmentData":{"type":"object","properties":{"matchedSignals":{"type":"array","items":{"type":"string"}},"reasoning":{"type":"string"}},"required":["matchedSignals","reasoning"],"title":"LeadResearchProfileFitAssessmentData"},"LeadResearchProfileResearchDossierData":{"type":"object","properties":{"tenantId":{"type":"integer"},"url":{"type":"string"},"companyName":{"type":["string","null"],"description":"Název firmy, nebo null."},"logoIconUrl":{"type":["string","null"]},"logoFullUrl":{"type":["string","null"]},"description":{"type":["string","null"]},"websiteLanguageId":{"type":["integer","null"]},"fitScore":{"type":["integer","null"],"description":"Jak lead sedí, nebo null."},"fitAssessment":{"anyOf":[{"$ref":"#/components/schemas/LeadResearchProfileFitAssessmentData"},{"type":"null"}]},"leadId":{"type":"integer","description":"Číslo leadu."},"products":{"type":"array","items":{"$ref":"#/components/schemas/TenantProductData"}},"customers":{"type":"array","items":{"$ref":"#/components/schemas/TenantCustomerData"}},"competitors":{"type":"array","items":{"$ref":"#/components/schemas/TenantCompetitorData"}},"strategies":{"type":"array","items":{"$ref":"#/components/schemas/TenantStrategyData"}},"seoAudit":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditData"},{"type":"null"}]},"keywordOpportunities":{"type":"array","items":{"$ref":"#/components/schemas/TenantKeywordOpportunityData"}},"brandVoice":{"type":"array","items":{"$ref":"#/components/schemas/BrandVoiceOutputData"}},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"profilingTenantId":{"type":["integer","null"]},"profilingTenantName":{"type":["string","null"]},"promotedTenantId":{"type":["integer","null"]},"promotedTenantName":{"type":["string","null"]},"promotedAt":{"type":["string","null"]}},"required":["tenantId","url","companyName","logoIconUrl","logoFullUrl","description","websiteLanguageId","fitScore","fitAssessment","leadId","products","customers","competitors","strategies","seoAudit","keywordOpportunities","brandVoice","createdAt","updatedAt","profilingTenantId","profilingTenantName","promotedTenantId","promotedTenantName","promotedAt"],"title":"LeadResearchProfileResearchDossierData"},"LeadResearchSourceSubmitData":{"type":"object","properties":{"leadId":{"type":"integer","description":"Číslo leadu."},"analysisId":{"type":"integer","description":"Číslo běhu výzkumu, který drží text."},"pagesSaved":{"type":"integer","description":"Kolik stránek se uložilo."},"completedSteps":{"type":"array","items":{"type":"string"},"description":"Kroky výzkumu, které jsou hotové."},"missingSteps":{"type":"array","items":{"type":"string"},"description":"Kroky výzkumu, které ještě chybí."}},"required":["leadId","analysisId","pagesSaved","completedSteps","missingSteps"],"title":"LeadResearchSourceSubmitData"},"LeadScoringCellData":{"type":"object","properties":{"cell":{"type":"string"},"fitGrade":{"$ref":"#/components/schemas/LeadFitGrade"},"heatStatus":{"$ref":"#/components/schemas/HeatStatus"},"intentLevel":{"type":"integer"},"isMql":{"type":"boolean"}},"required":["cell","fitGrade","heatStatus","intentLevel","isMql"],"title":"LeadScoringCellData"},"LeadScoringContactData":{"type":"object","properties":{"contactId":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"isPrimary":{"type":"boolean"},"engagementScore":{"type":"integer"},"heatStatus":{"$ref":"#/components/schemas/HeatStatus"},"suppressed":{"type":"boolean"}},"required":["contactId","name","email","isPrimary","engagementScore","heatStatus","suppressed"],"title":"LeadScoringContactData"},"LeadScoringData":{"type":"object","properties":{"leadId":{"type":"integer"},"fit":{"$ref":"#/components/schemas/LeadFitBreakdownData","description":"Jak dobře lead sedí na tvého ideálního klienta, s každým pravidlem a jeho body."},"firmographic":{"anyOf":[{"$ref":"#/components/schemas/LeadFirmographicData"},{"type":"null"}],"description":"Údaje o firmě z obchodního rejstříku. null, když je Fusio nemá."},"intent":{"$ref":"#/components/schemas/LeadIntentBreakdownData"},"ledger":{"type":"array","items":{"$ref":"#/components/schemas/LeadEngagementLedgerEntryData"}},"ledgerWindow":{"$ref":"#/components/schemas/LeadEngagementWindowData"},"cell":{"$ref":"#/components/schemas/LeadScoringCellData"},"handoff":{"anyOf":[{"$ref":"#/components/schemas/LeadHandoffData"},{"type":"null"}]},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/LeadScoringContactData"}},"interestHistory":{"type":"array","items":{"$ref":"#/components/schemas/LeadInterestDayData"}},"heatThresholds":{"$ref":"#/components/schemas/ScoringHeatThresholdsData"},"gradeThresholds":{"$ref":"#/components/schemas/ScoringGradeThresholdsData"},"peerCells":{"type":"array","items":{"$ref":"#/components/schemas/LeadFitIntentCellData"}},"predictedConversion":{"type":["integer","null"]},"predictionFactors":{"type":["array","null"],"items":{"$ref":"#/components/schemas/LeadPredictionFactorData"}}},"required":["leadId","fit","firmographic","intent","ledger","ledgerWindow","cell","handoff","contacts","interestHistory","heatThresholds","gradeThresholds","peerCells","predictedConversion","predictionFactors"],"title":"LeadScoringData"},"LeadSource":{"type":"string","enum":["web","cold_call","referral","campaign","event","partner","lead_form","ares","eshopy_cz","crm","import","social_discovery"],"title":"LeadSource"},"LeadStage":{"type":"string","enum":["cold","warm","qualified","client","lost"],"title":"LeadStage"},"LeadTaskOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"assigneeId":{"type":"integer"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"taskableType":{"$ref":"#/components/schemas/TaskableType"},"taskableId":{"type":"integer"},"noteId":{"type":["integer","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueAt":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/TaskStatus"},"completedAt":{"type":["string","null"]},"pinnedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"cadenceStep":{"anyOf":[{"$ref":"#/components/schemas/TaskCadenceStepData"},{"type":"null"}]},"outreachTouchId":{"type":["integer","null"]}},"required":["id","tenantId","userId","assigneeId","assignee","taskableType","taskableId","noteId","title","description","dueAt","status","completedAt","pinnedAt","createdAt","updatedAt","cadenceStep","outreachTouchId"],"title":"LeadTaskOutputData"},"LinkedCampaignSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"title":"LinkedCampaignSummaryData"},"LinkedInAdTargetingEntityData":{"type":"object","properties":{"urn":{"type":"string","description":"LinkedIn URN hodnoty."},"facetUrn":{"type":"string","description":"LinkedIn URN jejího druhu."},"name":{"type":"string","description":"Název hodnoty."}},"required":["urn","facetUrn","name"],"title":"LinkedInAdTargetingEntityData"},"LinkedInGeoTypeaheadData":{"type":"object","properties":{"displayText":{"type":"string","description":"Název místa k zobrazení."},"entity":{"type":"string","description":"LinkedIn URN místa."}},"required":["displayText","entity"],"title":"LinkedInGeoTypeaheadData"},"LinkedInTargetingFacetCategoryOutputData":{"type":"object","properties":{"basic_demographics":{"description":"Druhy o lidech, třeba věk a pohlaví. Každá položka přiřadí názvu druhu jeho LinkedIn URN."},"professional_information":{"description":"Druhy o práci, třeba pracovní pozice a dovednosti."},"education":{"description":"Druhy o škole, třeba školy a tituly."},"company_information":{"description":"Druhy o firmách, třeba obor a velikost."},"location":{"description":"Druhy o místech."},"social_behavioral":{"description":"Druhy o zájmech a skupinách."},"advanced_targeting":{"description":"Další druhy, třeba tvoje vlastní publika."}},"title":"LinkedInTargetingFacetCategoryOutputData"},"MascotBackground":{"type":"string","enum":["auto","real","drawn","plain"],"title":"MascotBackground"},"MascotDescriptionOutputData":{"type":"object","properties":{"description":{"type":"string","description":"Jak maskot vypadá, napsané AI."},"personality":{"type":"string","description":"Jak se maskot chová, napsané AI."}},"required":["description","personality"],"title":"MascotDescriptionOutputData"},"MascotPresence":{"type":"string","enum":["main","small","none"],"title":"MascotPresence"},"MembershipSuspenderOutputData":{"type":"object","properties":{"name":{"type":"string"},"roleName":{"type":["string","null"]}},"required":["name","roleName"],"title":"MembershipSuspenderOutputData"},"MembershipSuspensionOutputData":{"type":"object","properties":{"suspendedAt":{"type":"string"},"reason":{"type":["string","null"]},"suspendedBy":{"anyOf":[{"$ref":"#/components/schemas/MembershipSuspenderOutputData"},{"type":"null"}]},"otherMemberships":{"type":"array","items":{"$ref":"#/components/schemas/OtherMembershipOutputData"}}},"required":["suspendedAt","reason","suspendedBy","otherMemberships"],"title":"MembershipSuspensionOutputData"},"MessageFrameworkExampleData":{"type":"object","properties":{"situation":{"type":"string"},"message":{"type":"string"},"rating":{"type":"string"},"whyBad":{"type":["string","null"]}},"required":["situation","message","rating","whyBad"],"title":"MessageFrameworkExampleData"},"MessageFrameworkOutputData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"goals":{"type":"array","items":{"type":"string"},"description":"Cíle oslovení, pro které lze rámec použít."},"preconditions":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/MessageFrameworkStepData"}},"rules":{"type":"array","items":{"type":"string"}},"examples":{"type":"array","items":{"$ref":"#/components/schemas/MessageFrameworkExampleData"}},"tenantProductId":{"type":["string","null"]},"valueTheme":{"type":["string","null"]},"differentiators":{"type":"array","items":{"type":"string"}},"proofRefs":{"type":"array","items":{"$ref":"#/components/schemas/MessageFrameworkProofRefData"}},"cta":{"type":["string","null"]},"isOfferCustomized":{"type":"boolean"},"isOfferStale":{"type":"boolean"},"isSystem":{"type":"boolean","description":"Jestli rámec poskytuje Fusio, a ne tenant."},"basedOnId":{"type":["string","null"]},"defaultForGoals":{"type":"array","items":{"type":"string"},"description":"Cíle, pro které je tento rámec výchozí v tenantu."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","name","description","goals","preconditions","steps","rules","examples","tenantProductId","valueTheme","differentiators","proofRefs","cta","isOfferCustomized","isOfferStale","isSystem","basedOnId","defaultForGoals","createdAt","updatedAt"],"title":"MessageFrameworkOutputData"},"MessageFrameworkProofRefData":{"type":"object","properties":{"type":{"type":"string"},"ref":{"type":"string"}},"required":["type","ref"],"title":"MessageFrameworkProofRefData"},"MessageFrameworkStepData":{"type":"object","properties":{"name":{"type":"string"},"instruction":{"type":"string"},"example":{"type":["string","null"]}},"required":["name","instruction","example"],"title":"MessageFrameworkStepData"},"MetaAdsAdCardData":{"type":"object","properties":{"position":{"type":"integer"},"fileId":{"type":["integer","null"]},"mediaType":{"type":["string","null"]},"thumbnailFileId":{"type":["integer","null"]},"thumbnailUrl":{"type":["string","null"],"description":"Adresa náhledu videa, nebo null."},"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"destinationUrl":{"type":["string","null"]},"url":{"type":["string","null"],"description":"Adresa obrázku nebo videa karty, nebo null."}},"required":["position","fileId","mediaType","thumbnailFileId","thumbnailUrl","headline","description","destinationUrl","url"],"title":"MetaAdsAdCardData"},"MetaAdsAdData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"},"position":{"type":"integer"},"source":{"type":"string","description":"new (nová reklama) nebo existing_post (příspěvek z tvé stránky nebo profilu)."},"format":{"type":["string","null"],"description":"single_image, single_video nebo carousel, nebo null."},"destinationUrl":{"type":["string","null"]},"displayLink":{"type":["string","null"]},"callToAction":{"type":["string","null"]},"urlTags":{"type":["string","null"]},"generationStatus":{"type":"string","description":"Jak AI dělá obrázky reklamy: missing, queued, generating, ready nebo failed."},"concept":{"type":["string","null"],"description":"Krátký nápad reklamy od AI, nebo null."},"angle":{"type":["string","null"],"description":"Hlavní myšlenka reklamy od AI, nebo null."},"persona":{"type":["string","null"],"description":"Koho má reklama oslovit, podle AI, nebo null."},"hook":{"type":["string","null"],"description":"Co hned upoutá pozornost, podle AI, nebo null."},"look":{"type":["string","null"],"description":"Jak má vypadat obrázek reklamy, podle AI, nebo null."},"revision":{"type":"string","description":"Verze reklamy. Pošli ji jako expectedRevision, když reklamu měníš."},"sourcePostPlatform":{"type":["string","null"]},"sourcePostExternalId":{"type":["string","null"]},"sourcePostPreviewText":{"type":["string","null"]},"sourcePostPreviewImageUrl":{"type":["string","null"]},"texts":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdTextData"},"description":"Texty reklamy: primary_text, headline a description."},"media":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdMediaData"},"description":"Obrázky nebo videa reklamy: feed (čtverec nebo na šířku) a vertical (na výšku)."},"cards":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdCardData"},"description":"Karty reklamy carousel. U jiných formátů prázdné."},"updatedAt":{"type":["string","null"]}},"required":["id","name","status","position","source","format","destinationUrl","displayLink","callToAction","urlTags","generationStatus","concept","angle","persona","hook","look","revision","sourcePostPlatform","sourcePostExternalId","sourcePostPreviewText","sourcePostPreviewImageUrl","texts","media","cards","updatedAt"],"title":"MetaAdsAdData"},"MetaAdsAdFormat":{"type":"string","enum":["single_image","single_video","carousel"],"title":"MetaAdsAdFormat"},"MetaAdsAdMediaData":{"type":"object","properties":{"slot":{"type":"string"},"fileId":{"type":"integer"},"mediaType":{"type":"string"},"thumbnailFileId":{"type":["integer","null"]},"url":{"type":"string","description":"Adresa obrázku nebo videa."},"thumbnailUrl":{"type":["string","null"],"description":"Adresa náhledu videa, nebo null."}},"required":["slot","fileId","mediaType","thumbnailFileId","url","thumbnailUrl"],"title":"MetaAdsAdMediaData"},"MetaAdsAdReviewIssueData":{"type":"object","properties":{"code":{"type":"string","description":"Kód problému od Meta Ads."},"level":{"type":"string","description":"Kde to Meta našla, třeba AD."},"summary":{"type":"string","description":"Krátký text od Meta Ads."},"body":{"type":["string","null"],"description":"Delší text od Meta Ads, nebo null."}},"required":["code","level","summary","body"],"title":"MetaAdsAdReviewIssueData"},"MetaAdsAdSetAudienceData":{"type":"object","properties":{"externalAudienceId":{"type":"string"},"name":{"type":"string"},"subtype":{"type":"string"},"mode":{"type":"string"}},"required":["externalAudienceId","name","subtype","mode"],"title":"MetaAdsAdSetAudienceData"},"MetaAdsAdSetData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer"},"optimizationGoal":{"type":"string","description":"O co se Meta za peníze snaží, třeba reach nebo quality_lead. Řídí se cílem kampaně."},"billingEvent":{"type":"string"},"budgetType":{"type":["string","null"]},"budgetAmount":{"type":["string","null"],"description":"Rozpočet sady jako text, nebo null, když rozpočet drží kampaň."},"advantageAudienceEnabled":{"type":"boolean","description":"true, když Meta smí oslovit i lidi mimo tvoje cílení, když to pomůže."},"ageMin":{"type":"integer"},"ageMax":{"type":"integer"},"gender":{"type":"string","description":"Koho oslovit: all, male nebo female."},"advantagePlacementsEnabled":{"type":"boolean","description":"true, když Meta vybírá, kde se reklamy ukážou. false, když se ukážou jen v placements."},"frequencyCapImpressions":{"type":["integer","null"]},"frequencyCapDays":{"type":["integer","null"]},"attributionWindow":{"type":"string","description":"Jak dlouho po kliknutí nebo zhlédnutí se výsledek ještě počítá: click_1d, click_7d nebo click_7d_view_1d."},"audienceSizeLower":{"type":["integer","null"],"description":"Spodní hranice posledního odhadu, kolik lidí sada osloví, nebo null."},"audienceSizeUpper":{"type":["integer","null"],"description":"Horní hranice posledního odhadu, kolik lidí sada osloví, nebo null."},"audienceEstimatedAt":{"type":["string","null"],"description":"Kdy vznikl poslední odhad, nebo null."},"audienceHypothesis":{"type":["string","null"],"description":"Proč AI vybrala tyto lidi, nebo null."},"placementsReason":{"type":["string","null"],"description":"Proč AI vybrala tato místa pro reklamy, nebo null."},"status":{"type":"string"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetLocationData"},"description":"Místa, která se mají oslovit nebo vynechat."},"targets":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetTargetData"},"description":"Zájmy, chování a demografie, které se mají oslovit."},"languages":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetLanguageData"},"description":"Jazyky, kterými lidé musí mluvit. Prázdné znamená jakýkoli jazyk."},"audiences":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetAudienceData"},"description":"Tvoje vlastní publika v Meta Ads, která se mají oslovit nebo vynechat."},"placements":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetPlacementData"},"description":"Místa, kde se reklamy ukážou, když je nevybírá Meta."},"ads":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdData"},"description":"Reklamy sady."}},"required":["id","name","position","optimizationGoal","billingEvent","budgetType","budgetAmount","advantageAudienceEnabled","ageMin","ageMax","gender","advantagePlacementsEnabled","frequencyCapImpressions","frequencyCapDays","attributionWindow","audienceSizeLower","audienceSizeUpper","audienceEstimatedAt","audienceHypothesis","placementsReason","status","locations","targets","languages","audiences","placements","ads"],"title":"MetaAdsAdSetData"},"MetaAdsAdSetLanguageData":{"type":"object","properties":{"localeKey":{"type":"integer"},"name":{"type":"string"}},"required":["localeKey","name"],"title":"MetaAdsAdSetLanguageData"},"MetaAdsAdSetLocationData":{"type":"object","properties":{"kind":{"type":"string"},"externalKey":{"type":"string"},"name":{"type":"string"},"radiusKm":{"type":["integer","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"mode":{"type":"string"}},"required":["kind","externalKey","name","radiusKm","latitude","longitude","mode"],"title":"MetaAdsAdSetLocationData"},"MetaAdsAdSetPlacementData":{"type":"object","properties":{"publisherPlatform":{"type":"string"},"position":{"type":"string"}},"required":["publisherPlatform","position"],"title":"MetaAdsAdSetPlacementData"},"MetaAdsAdSetTargetData":{"type":"object","properties":{"kind":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"graphField":{"type":["string","null"]},"source":{"type":"string"}},"required":["kind","externalId","name","graphField","source"],"title":"MetaAdsAdSetTargetData"},"MetaAdsAdSource":{"type":"string","enum":["new","existing_post"],"title":"MetaAdsAdSource"},"MetaAdsAdTextData":{"type":"object","properties":{"kind":{"type":"string"},"position":{"type":"integer"},"text":{"type":"string"}},"required":["kind","position","text"],"title":"MetaAdsAdTextData"},"MetaAdsAdTextKind":{"type":"string","enum":["primary_text","headline","description"],"title":"MetaAdsAdTextKind"},"MetaAdsAdTextSuggestionData":{"type":"object","properties":{"text":{"type":"string","description":"Navržený text."}},"required":["text"],"title":"MetaAdsAdTextSuggestionData"},"MetaAdsAdTextSuggestionsData":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/MetaAdsAdTextKind","description":"Pro co návrhy jsou: primary_text, headline nebo description."},"suggestions":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdTextSuggestionData"},"description":"Navržené texty."}},"required":["kind","suggestions"],"title":"MetaAdsAdTextSuggestionsData"},"MetaAdsAttributionWindow":{"type":"string","enum":["click_1d","click_7d","click_7d_view_1d"],"title":"MetaAdsAttributionWindow"},"MetaAdsAudienceData":{"type":"object","properties":{"externalId":{"type":"string","description":"Kód publika v Meta Ads. Pošli ho jako externalAudienceId v audiences sady."},"name":{"type":"string"},"subtype":{"type":"string","description":"custom (tvůj vlastní seznam) nebo lookalike (lidé podobní tvému seznamu)."},"sizeLower":{"type":["integer","null"],"description":"Spodní hranice, kolik lidí publikum má, nebo null."},"sizeUpper":{"type":["integer","null"],"description":"Horní hranice, kolik lidí publikum má, nebo null."},"usable":{"type":"boolean","description":"true, když už Meta umí publiku ukazovat reklamy."}},"required":["externalId","name","subtype","sizeLower","sizeUpper","usable"],"title":"MetaAdsAudienceData"},"MetaAdsAudienceEstimateData":{"type":"object","properties":{"available":{"type":"boolean","description":"true, když Meta odhad dala. false, když nemohla."},"lower":{"type":["integer","null"],"description":"Spodní hranice odhadu, nebo null."},"upper":{"type":["integer","null"],"description":"Horní hranice odhadu, nebo null."},"estimatedAt":{"type":["string","null"],"description":"Kdy odhad vznikl, nebo null."}},"required":["available","lower","upper","estimatedAt"],"title":"MetaAdsAudienceEstimateData"},"MetaAdsAudienceSubtype":{"type":"string","enum":["custom","lookalike"],"title":"MetaAdsAudienceSubtype"},"MetaAdsBidStrategy":{"type":"string","enum":["lowest_cost","cost_cap","bid_cap","min_roas"],"title":"MetaAdsBidStrategy"},"MetaAdsBriefPicksData":{"type":"object","properties":{"landingPage":{"anyOf":[{"$ref":"#/components/schemas/AdBriefLandingPagePickData"},{"type":"null"}],"description":"Stránka tvého webu, kterou AI vybrala, nebo null, když žádná nesedí."},"objective":{"$ref":"#/components/schemas/MetaAdsObjective","description":"Cíl, který AI vybrala: awareness, traffic, engagement, leads nebo sales. Když jsi nějaký poslal, je to ten tvůj."},"objectiveReason":{"type":"string","description":"Proč AI cíl vybrala."},"destination":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDestination"},{"type":"null"}],"description":"Kam lidé po kliknutí půjdou: website, instant_form nebo on_post. null, když cíl žádné místo nemá."},"conversionEvent":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsConversionEvent"},{"type":"null"}],"description":"Událost pixelu, která se má podle AI počítat jako výsledek, třeba purchase, nebo null."},"conversionEventReason":{"type":["string","null"],"description":"Proč AI událost vybrala, nebo null."},"specialAdCategory":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsSpecialAdCategory"},{"type":"null"}],"description":"Zvláštní kategorie, když je zadání o úvěrech, práci, bydlení, financích nebo hazardu: credit, employment, housing, financial_products_services nebo online_gambling_and_gaming. Jinak null."},"accountPixelExternalId":{"type":["string","null"],"description":"Pixel Meta tvého reklamního účtu, nebo null."}},"required":["landingPage","objective","objectiveReason","destination","conversionEvent","conversionEventReason","specialAdCategory","accountPixelExternalId"],"title":"MetaAdsBriefPicksData"},"MetaAdsBudgetType":{"type":"string","enum":["daily","lifetime"],"title":"MetaAdsBudgetType"},"MetaAdsCallToAction":{"type":"string","enum":["learn_more","shop_now","buy_now","order_now","book_now","sign_up","subscribe","apply_now","contact_us","get_quote","get_offer","download","inquire_now","request_time","buy_tickets","donate_now","get_started","see_more","watch_more","listen_now","no_button"],"title":"MetaAdsCallToAction"},"MetaAdsCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"tenantSequence":{"type":["integer","null"],"description":"Číslo kampaně v rámci tvé firmy."},"name":{"type":"string"},"utmSlug":{"type":"string","description":"Krátký název, který se používá v UTM odkazech kampaně."},"origin":{"type":"string","description":"Jak kampaň vznikla: manual (udělal jsi ji ty) nebo manual_ai (požádal jsi AI)."},"status":{"type":"string","description":"draft (ještě na ní pracuješ), approved (připravená k nahrání do Meta Ads) nebo archived."},"detachedStatus":{"type":["string","null"],"description":"Stav, který kampaň měla, než jsi vybral jiný reklamní účet, nebo null. Vrátí se, když ten účet zase vybereš."},"objective":{"type":"string","description":"Čeho chce kampaň dosáhnout: awareness, traffic, engagement, leads nebo sales."},"destination":{"type":["string","null"],"description":"Kam lidé jdou po kliknutí: website, instant_form (formulář přímo ve Facebooku nebo Instagramu) nebo on_post (samotný příspěvek). null, když cíl žádné místo nemá."},"specialAdCategory":{"type":["string","null"],"description":"Zvláštní kategorie pro reklamy o úvěrech, práci, bydlení, financích nebo hazardu: credit, employment, housing, financial_products_services nebo online_gambling_and_gaming. Jinak null. Takové reklamy jdou cílit méně."},"campaignBudgetEnabled":{"type":"boolean","description":"true, když má kampaň jeden rozpočet pro všechny sady. false, když má každá sada svůj rozpočet."},"budgetType":{"type":"string","description":"daily (rozpočet na jeden den) nebo lifetime (na celou dobu běhu)."},"budgetAmount":{"type":["string","null"],"description":"Rozpočet kampaně jako text třeba \"500.00\", nebo null."},"budgetCurrencyCode":{"type":["string","null"],"description":"Měna rozpočtu, třeba CZK."},"bidStrategy":{"type":"string","description":"Jak Meta přihazuje: lowest_cost, cost_cap, bid_cap nebo min_roas."},"bidAmount":{"type":["string","null"],"description":"Příhoz nebo strop ceny jako text třeba \"25.00\". null, když ho strategie nepotřebuje."},"roasFloor":{"type":["string","null"],"description":"Nejnižší návratnost peněz pro min_roas, jako text třeba \"2.5000\". U jiných strategií null."},"startsAt":{"type":["string","null"],"description":"Kdy kampaň začne, nebo null."},"endsAt":{"type":["string","null"],"description":"Kdy kampaň skončí, nebo null, když běží bez konce."},"conversionPixelExternalId":{"type":["string","null"],"description":"Meta Pixel, který počítá výsledky, nebo null."},"conversionEvent":{"type":["string","null"],"description":"Událost pixelu, která se počítá jako výsledek, třeba purchase nebo lead. null, když ji cíl nepotřebuje."},"leadFormId":{"type":["integer","null"],"description":"Číslo formuláře pro instant_form, nebo null."},"creativeEnhancementsEnabled":{"type":"boolean","description":"true, když Meta smí trochu upravit vzhled reklam, aby fungovaly lépe."},"generationStage":{"type":["string","null"],"description":"Co AI právě dělá, když kampaň staví, třeba writing_ads. null, když nic nedělá."},"generationError":{"type":["string","null"],"description":"Proč AI nemohla kampaň postavit, nebo null."},"adAccountId":{"type":["integer","null"],"description":"Číslo tvého reklamního účtu Meta ve Fusiu, nebo null."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"adSets":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdSetData"},"description":"Sady reklam, každá se svým cílením a reklamami."},"blockers":{"type":"array","items":{"type":"string"},"description":"Co se musí opravit, než kampaň půjde schválit, jako kódy třeba missing_meta_account. Prázdné, když nic."},"checks":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsCheckData"},"description":"Tipy, které by kampaň zlepšily. Schválení nebrání."},"deployment":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDeploymentSummaryData"},{"type":"null"}],"description":"Jak je na tom kampaň v Meta Ads, nebo null, když jsi ji do Meta Ads ještě nenahrál."}},"required":["id","tenantSequence","name","utmSlug","origin","status","detachedStatus","objective","destination","specialAdCategory","campaignBudgetEnabled","budgetType","budgetAmount","budgetCurrencyCode","bidStrategy","bidAmount","roasFloor","startsAt","endsAt","conversionPixelExternalId","conversionEvent","leadFormId","creativeEnhancementsEnabled","generationStage","generationError","adAccountId","createdAt","updatedAt","adSets","blockers","checks","deployment"],"title":"MetaAdsCampaignData"},"MetaAdsCheckData":{"type":"object","properties":{"code":{"type":"string","description":"O čem tip je, jako kód třeba too_few_ads."},"level":{"type":"string","description":"Jak vážný tip je. Zatím vždy warning."},"adSetId":{"type":["integer","null"],"description":"Sada, které se tip týká, nebo null."},"adId":{"type":["integer","null"],"description":"Reklama, které se tip týká, nebo null."}},"required":["code","level","adSetId","adId"],"title":"MetaAdsCheckData"},"MetaAdsConversionEvent":{"type":"string","enum":["purchase","lead","complete_registration","contact","schedule","submit_application","start_trial","subscribe","add_to_cart","add_to_wishlist","initiated_checkout","add_payment_info","content_view","search","customize_product","donate","find_location"],"title":"MetaAdsConversionEvent"},"MetaAdsDemographicField":{"type":"string","enum":["life_events","industries","income","family_statuses","education_statuses","education_schools","education_majors","work_positions","work_employers"],"title":"MetaAdsDemographicField"},"MetaAdsDeploymentAdData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo řádku reklamy. Pošli ho jako targetId do `meta-ads-deployments.status`."},"sourceAdId":{"type":["integer","null"],"description":"Číslo reklamy ve Fusiu, ze které vznikla, nebo null."},"externalAdId":{"type":["string","null"],"description":"Číslo reklamy v Meta Ads, nebo null, dokud tam není."},"externalCreativeId":{"type":["string","null"],"description":"Číslo vzhledu reklamy v Meta Ads, nebo null."},"remoteStatus":{"type":["string","null"],"description":"Stav v Meta Ads: active, paused, archived nebo deleted, nebo null."},"effectiveStatus":{"type":["string","null"],"description":"Co Meta říká o zobrazování reklamy, nebo null."},"reviewStatus":{"type":["string","null"],"description":"Co říká kontrola v Meta Ads: pending, approved, rejected nebo with_issues. null před kontrolou."},"userPaused":{"type":"boolean","description":"true, když jsi tuhle reklamu pozastavil sám. Spuštění kampaně ji nechá pozastavenou."},"issues":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAdReviewIssueData"},"description":"Co Meta na reklamě našla špatně. Prázdné, když nic."}},"required":["id","sourceAdId","externalAdId","externalCreativeId","remoteStatus","effectiveStatus","reviewStatus","userPaused","issues"],"title":"MetaAdsDeploymentAdData"},"MetaAdsDeploymentAdSetData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo řádku sady. Pošli ho jako targetId do `meta-ads-deployments.status`."},"sourceAdSetId":{"type":["integer","null"],"description":"Číslo sady ve Fusiu, ze které vznikla, nebo null."},"externalAdSetId":{"type":["string","null"],"description":"Číslo sady v Meta Ads, nebo null, dokud tam není."},"remoteStatus":{"type":["string","null"],"description":"Stav v Meta Ads: active, paused, archived nebo deleted, nebo null."},"effectiveStatus":{"type":["string","null"],"description":"Co Meta říká o zobrazování sady, nebo null."},"learningStage":{"type":["string","null"],"description":"Jak daleko je Meta s učením: learning, success nebo fail. null, když to Meta neřekne."},"userPaused":{"type":"boolean","description":"true, když jsi tuhle sadu pozastavil sám. Spuštění kampaně ji nechá pozastavenou."},"ads":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsDeploymentAdData"},"description":"Reklamy sady v Meta Ads."}},"required":["id","sourceAdSetId","externalAdSetId","remoteStatus","effectiveStatus","learningStage","userPaused","ads"],"title":"MetaAdsDeploymentAdSetData"},"MetaAdsDeploymentChangeSummaryData":{"type":"object","properties":{"campaign":{"type":"boolean","description":"true, když se změnila samotná kampaň."},"adSetsCreated":{"type":"integer","description":"Kolik nových sad čeká na vytvoření."},"adSetsUpdated":{"type":"integer","description":"Kolik sad se změnilo."},"adSetsRemoved":{"type":"integer","description":"Kolik sad jsi odebral."},"adsCreated":{"type":"integer","description":"Kolik nových reklam čeká na vytvoření."},"adsUpdated":{"type":"integer","description":"Kolik reklam se změnilo."},"creativesReplaced":{"type":"integer","description":"Kolik reklam dostane nové obrázky, videa nebo texty."},"adsRemoved":{"type":"integer","description":"Kolik reklam jsi odebral."},"leadForm":{"type":"boolean","description":"true, když se změnil formulář."},"total":{"type":"integer","description":"Všechny změny dohromady."}},"required":["campaign","adSetsCreated","adSetsUpdated","adSetsRemoved","adsCreated","adsUpdated","creativesReplaced","adsRemoved","leadForm","total"],"title":"MetaAdsDeploymentChangeSummaryData"},"MetaAdsDeploymentData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo nahrání. Použij ho s adresami meta-ads-deployments."},"campaignId":{"type":"integer","description":"Číslo kampaně ve Fusiu, ze které vzniklo."},"status":{"type":"string","description":"Jak daleko je nahrávání: draft, validating, publishing, paused, active, failed, reconciliation_required (Fusio musí zkontrolovat, co má Meta) nebo drifted (Meta má něco jiného než Fusio)."},"mode":{"type":"string","description":"Jak se dostalo do Meta Ads. Vždy api (poslalo ho Fusio)."},"managementState":{"type":"string","description":"managed (Fusio ho smí měnit) nebo read_only (Fusio ho jen čte)."},"progressStep":{"type":["string","null"],"description":"Krok, na kterém nahrávání je. Je to media, lead_form, validate, campaign, ad_sets, ads nebo completed. null, dokud nahrávání nezačne. Po dokončení zůstane completed. Po selhání zůstane poslední krok."},"planRevision":{"type":"string","description":"Verze plánu, která se poslala."},"currentPlanRevision":{"type":"string","description":"Verze plánu ve Fusiu teď. Když se liší od planRevision, něco jsi změnil."},"hasUnsynchronizedChanges":{"type":"boolean","description":"true, když jsi kampaň ve Fusiu změnil a Meta to ještě nemá."},"changeSummary":{"$ref":"#/components/schemas/MetaAdsDeploymentChangeSummaryData","description":"Kolik věcí kterého druhu se změnilo a čeká na nahrání."},"canApplyChanges":{"type":"boolean","description":"true, když můžeš čekající změny nahrát přes `meta-ads-deployments.apply`."},"learningRestartWarnings":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsLearningWarningData"},"description":"Změny, po kterých se Meta musí učit znovu. Dokud seznam není prázdný, pošli `confirmLearningRestart` true."},"idempotencyKey":{"type":"string","description":"Klíč, se kterým se nahrávání poslalo."},"externalCampaignId":{"type":["string","null"],"description":"Číslo kampaně v Meta Ads, nebo null, dokud tam není."},"remoteStatus":{"type":["string","null"],"description":"Stav v Meta Ads: active, paused, archived nebo deleted. null, dokud Meta kampaň nemá."},"effectiveStatus":{"type":["string","null"],"description":"Co Meta říká o zobrazování kampaně, třeba active, campaign_paused nebo with_issues, nebo null."},"currencyCode":{"type":"string","description":"Měna, třeba CZK."},"failureCode":{"type":["string","null"],"description":"Proč se poslední nahrávání nepovedlo, jako kód třeba upload_interrupted, campaign_not_approved nebo generic. null, když nic neselhalo."},"failureReason":{"type":["string","null"],"description":"Krátké vysvětlení v tvém jazyce, proč se poslední nahrávání nepovedlo, nebo null."},"deployedAt":{"type":["string","null"],"description":"Kdy se kampaň dostala do Meta Ads, nebo null."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio kampaň naposledy načetlo z Meta Ads, nebo null."},"adSets":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsDeploymentAdSetData"},"description":"Sady v Meta Ads, každá se svými reklamami."}},"required":["id","campaignId","status","mode","managementState","progressStep","planRevision","currentPlanRevision","hasUnsynchronizedChanges","changeSummary","canApplyChanges","learningRestartWarnings","idempotencyKey","externalCampaignId","remoteStatus","effectiveStatus","currencyCode","failureCode","failureReason","deployedAt","lastSyncedAt","adSets"],"title":"MetaAdsDeploymentData"},"MetaAdsDeploymentLevel":{"type":"string","enum":["campaign","ad_set","ad"],"title":"MetaAdsDeploymentLevel"},"MetaAdsDeploymentPreflightData":{"type":"object","properties":{"enabled":{"type":"boolean","description":"true, když je nahrávání kampaní do Meta Ads zapnuté."},"canDeploy":{"type":"boolean","description":"true, když nahrávání nic nebrání."},"createsPausedCampaign":{"type":"boolean","description":"Vždy true. Kampaň dorazí do Meta Ads pozastavená, takže nic neutratí."},"blockers":{"type":"array","items":{"type":"string"},"description":"Co se musí opravit před nahráním, jako kódy třeba missing_meta_account, feature_disabled, meta_ads_sandbox_account_required nebo plan_incomplete. Prázdné, když nic."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsCheckData"},"description":"Tipy, které by kampaň zlepšily. Nahrání nebrání. Kód leadgen_subscription_failed znamená, že Meta možná nepošle do Fusia nové kontakty z formulářů."},"adAccountId":{"type":["integer","null"],"description":"Číslo tvého reklamního účtu Meta ve Fusiu, nebo null."},"externalAccountId":{"type":["string","null"],"description":"Číslo reklamního účtu v Meta Ads, třeba act_123, nebo null."},"currencyCode":{"type":["string","null"],"description":"Měna reklamního účtu, třeba CZK, nebo null."},"planRevision":{"type":"string","description":"Verze plánu. Pošli ji jako planRevision do `meta-ads-campaigns.meta-ads.deploy`."}},"required":["enabled","canDeploy","createsPausedCampaign","blockers","warnings","adAccountId","externalAccountId","currencyCode","planRevision"],"title":"MetaAdsDeploymentPreflightData"},"MetaAdsDeploymentSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string","description":"Jak daleko je nahrávání, třeba publishing, active, paused nebo failed."},"remoteStatus":{"type":["string","null"],"description":"Stav v Meta Ads: active, paused, archived nebo deleted. null, dokud Meta kampaň nemá."},"progressStep":{"type":["string","null"],"description":"Krok, na kterém nahrávání je, třeba media nebo ads. null, dokud nahrávání nezačne. Po dokončení zůstane completed. Po selhání zůstane poslední krok."},"hasUnsynchronizedChanges":{"type":"boolean","description":"true, když jsi kampaň změnil a Meta změny ještě nemá."},"pendingChangeCount":{"type":"integer","description":"Kolik změn ještě čeká na nahrání do Meta Ads."},"failureCode":{"type":["string","null"],"description":"Proč se poslední nahrávání nepovedlo, jako kód třeba upload_interrupted, campaign_not_approved nebo generic. null, když nic neselhalo."},"failureReason":{"type":["string","null"],"description":"Krátké vysvětlení v tvém jazyce, proč se poslední nahrávání nepovedlo, nebo null."}},"required":["id","status","remoteStatus","progressStep","hasUnsynchronizedChanges","pendingChangeCount","failureCode","failureReason"],"title":"MetaAdsDeploymentSummaryData"},"MetaAdsDestination":{"type":"string","enum":["website","instant_form","on_post"],"title":"MetaAdsDestination"},"MetaAdsGender":{"type":"string","enum":["all","male","female"],"title":"MetaAdsGender"},"MetaAdsImageSource":{"type":"string","enum":["library","generate","mixed"],"title":"MetaAdsImageSource"},"MetaAdsLeadData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo kontaktu ve Fusiu. Pošli ho do `meta-ads-leads.retry`."},"status":{"type":"string","description":"pending (čeká na načtení), ingested (je ve Fusiu), rejected (potřebuje tvou opravu) nebo failed (načtení selhalo). Kontakt ve stavu failed zkoušíme znovu sami, celkem nejvýš pět pokusů. Při recipients_missing ho znovu nezkoušíme. Po pěti pokusech nebo u recipients_missing ho pošli do `meta-ads-leads.retry`."},"lastError":{"type":["string","null"],"description":"Proč se kontakt nenačetl, nebo null. Třeba target_form_missing, validation_failed, page_unavailable, meta_reconnect_required, graph_failed, submission_failed, recipients_missing nebo answers_unmapped."},"errorField":{"type":["string","null"],"description":"Pole tvého formuláře, které neprošlo, nebo null."},"attempts":{"type":"integer","description":"Kolikrát se načtení nepovedlo."},"externalLeadId":{"type":"string","description":"Číslo kontaktu na platformě Meta."},"leadCreatedAt":{"type":"string","description":"Kdy člověk formulář na platformě Meta vyplnil."},"formName":{"type":["string","null"],"description":"Název formuláře Meta, nebo null."},"campaignId":{"type":["integer","null"],"description":"Číslo kampaně Meta, ze které kontakt přišel, nebo null."},"leadId":{"type":["integer","null"],"description":"Číslo kontaktu v CRM, nebo null."},"inquiryId":{"type":["integer","null"],"description":"Číslo poptávky, nebo null."},"ingestedAt":{"type":["string","null"],"description":"Kdy se kontakt načetl do Fusia, nebo null."}},"required":["id","status","lastError","errorField","attempts","externalLeadId","leadCreatedAt","formName","campaignId","leadId","inquiryId","ingestedAt"],"title":"MetaAdsLeadData"},"MetaAdsLeadFormData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo formuláře. Pošli ho jako leadFormId kampaně."},"name":{"type":"string"},"status":{"type":"string","description":"active (kampaně ho můžou použít) nebo archived."},"formType":{"type":"string","description":"more_volume (víc odpovědí) nebo higher_intent (méně, ale jistějších odpovědí), nebo null."},"introHeadline":{"type":["string","null"]},"introText":{"type":["string","null"]},"privacyPolicyUrl":{"type":"string","description":"Adresa tvých zásad ochrany osobních údajů."},"thankYouTitle":{"type":["string","null"]},"thankYouText":{"type":["string","null"]},"thankYouUrl":{"type":["string","null"]},"phoneOtpVerification":{"type":"string","description":"Jestli lidé potvrzují telefon kódem: disabled, optional nebo required. Nikdy není null."},"tenantLeadFormId":{"type":["integer","null"],"description":"Tvůj formulář ve Fusiu, kam odpovědi přijdou, nebo null."},"questions":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsLeadFormQuestionData"},"description":"Otázky formuláře podle pořadí."}},"required":["id","name","status","formType","introHeadline","introText","privacyPolicyUrl","thankYouTitle","thankYouText","thankYouUrl","phoneOtpVerification","tenantLeadFormId","questions"],"title":"MetaAdsLeadFormData"},"MetaAdsLeadFormQuestionData":{"type":"object","properties":{"id":{"type":"integer"},"position":{"type":"integer"},"kind":{"type":"string","description":"full_name, email, phone, city, company_name, job_title nebo custom (tvoje vlastní otázka s možnostmi)."},"label":{"type":["string","null"],"description":"Text vlastní otázky, nebo null."},"options":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsLeadFormQuestionOptionData"},"description":"Možnosti vlastní otázky. U jiných druhů prázdné."}},"required":["id","position","kind","label","options"],"title":"MetaAdsLeadFormQuestionData"},"MetaAdsLeadFormQuestionKind":{"type":"string","enum":["full_name","email","phone","city","company_name","job_title","custom"],"title":"MetaAdsLeadFormQuestionKind"},"MetaAdsLeadFormQuestionOptionData":{"type":"object","properties":{"position":{"type":"integer"},"label":{"type":"string"}},"required":["position","label"],"title":"MetaAdsLeadFormQuestionOptionData"},"MetaAdsLeadFormType":{"type":"string","enum":["more_volume","higher_intent"],"title":"MetaAdsLeadFormType"},"MetaAdsLearningWarningData":{"type":"object","properties":{"code":{"type":"string","description":"Co donutí Meta Ads učit se znovu: targeting_change, optimization_change, creative_swap nebo budget_change_large."},"adSetId":{"type":["integer","null"],"description":"Číslo sady ve Fusiu, které se to týká, nebo null."},"adId":{"type":["integer","null"],"description":"Číslo reklamy ve Fusiu, které se to týká, nebo null."}},"required":["code","adSetId","adId"],"title":"MetaAdsLearningWarningData"},"MetaAdsLocationKind":{"type":"string","enum":["country","region","city","zip","custom_radius"],"title":"MetaAdsLocationKind"},"MetaAdsMediaType":{"type":"string","enum":["image","video"],"title":"MetaAdsMediaType"},"MetaAdsObjective":{"type":"string","enum":["awareness","traffic","engagement","leads","sales"],"title":"MetaAdsObjective"},"MetaAdsOperationData":{"type":"object","properties":{"id":{"type":"string","description":"Kód úlohy, dlouhý text třeba 9d1c6c7e-4f0b-4a51-9a3e-2c1f0b7d5e21."},"type":{"type":"string","description":"Jaký druh úlohy to je: manual_generation, retry_generation nebo audience_refresh."},"status":{"type":"string","description":"Jak úloha běží: pending, processing, completed nebo failed."},"outcomeCode":{"type":["string","null"],"description":"Jak hotová úloha skončila, jako kód. Před koncem null."},"outcomeMessage":{"type":["string","null"],"description":"Konec úlohy slovy, nebo null."},"failureCode":{"type":["string","null"],"description":"Proč úloha selhala, jako kód. null, když neselhala."},"failureMessage":{"type":["string","null"],"description":"Proč úloha selhala, slovy. null, když neselhala."},"startedAt":{"type":["string","null"],"description":"Kdy úloha začala, nebo null, dokud čeká."},"finishedAt":{"type":["string","null"],"description":"Kdy úloha skončila, nebo null, dokud běží."},"campaignId":{"type":["integer","null"],"description":"Kampaň, na které úloha pracuje, nebo null."},"adAccountId":{"type":["integer","null"],"description":"Číslo reklamního účtu Meta, se kterým úloha pracuje, nebo null."},"budgetCurrencyCode":{"type":["string","null"],"description":"Měna rozpočtu, třeba CZK, nebo null."}},"required":["id","type","status","outcomeCode","outcomeMessage","failureCode","failureMessage","startedAt","finishedAt","campaignId","adAccountId","budgetCurrencyCode"],"title":"MetaAdsOperationData"},"MetaAdsOverviewCampaignData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo kampaně."},"name":{"type":"string","description":"Název kampaně."},"meta":{"$ref":"#/components/schemas/MetaAdsPerformanceMetaData","description":"Čísla této kampaně z Meta Ads. Dosah uvidíš pro stejná období jako v součtech."},"fusio":{"$ref":"#/components/schemas/AdCampaignOverviewFusioData","description":"Co Fusio vidělo na tvém webu z této kampaně."}},"required":["id","name","meta","fusio"],"title":"MetaAdsOverviewCampaignData"},"MetaAdsOverviewData":{"type":"object","properties":{"campaignOptions":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignOverviewCampaignOptionData"},"description":"Tvoje kampaně, podle kterých můžeš filtrovat."},"totals":{"$ref":"#/components/schemas/MetaAdsOverviewTotalsData","description":"Součty za období za všechny vybrané kampaně."},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsOverviewCampaignData"},"description":"Stejná čísla za každou vybranou kampaň."},"kpis":{"$ref":"#/components/schemas/MetaAdsOverviewKpisData","description":"Hlavní čísla: zobrazení, kliknutí na odkaz, výsledky, návštěvy, konverze, leady a klienti, každé i s hodnotou předtím a řadou po dnech. Výsledky jsou prázdné, když kampaně v období chtějí různé druhy výsledků. U výsledků chybí hodnota předtím, když období předtím mělo jiný druh. Konverze jsou prázdné, dokud nepřijdou cíle pro Meta Ads."},"spend":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignOverviewSpendData"},"description":"Co jsi utratil, jedna položka za každou měnu, i s řadou po dnech."},"acquisition":{"$ref":"#/components/schemas/AdAcquisitionData","description":"Co reklamy přinesly: útratu, leady, klienty a jejich tržby."},"funnel":{"$ref":"#/components/schemas/AdCampaignFunnelData","description":"Kolik návštěvníků se stalo leady, obchody a klienty a kde odešli. Uvidíš to i za každou reklamu."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData","description":"Dny, za které čísla jsou."},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["campaignOptions","totals","campaigns","kpis","spend","acquisition","funnel","ready","rolledUpAt","range","previousRange","dates"],"title":"MetaAdsOverviewData"},"MetaAdsOverviewKpisData":{"type":"object","properties":{"impressions":{"$ref":"#/components/schemas/OverviewKpiData"},"linkClicks":{"$ref":"#/components/schemas/OverviewKpiData"},"results":{"$ref":"#/components/schemas/OverviewKpiData"},"sessions":{"$ref":"#/components/schemas/OverviewKpiData"},"conversions":{"$ref":"#/components/schemas/OverviewKpiData"},"leads":{"$ref":"#/components/schemas/OverviewKpiData"},"customers":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["impressions","linkClicks","results","sessions","conversions","leads","customers"],"title":"MetaAdsOverviewKpisData"},"MetaAdsOverviewTotalsData":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/MetaAdsPerformanceMetaData","description":"Čísla z Meta Ads, za Facebook a Instagram."},"fusio":{"$ref":"#/components/schemas/AdCampaignOverviewFusioData","description":"Co Fusio vidělo na tvém webu."}},"required":["meta","fusio"],"title":"MetaAdsOverviewTotalsData"},"MetaAdsPerformanceMetaData":{"type":"object","properties":{"impressions":{"type":"integer","description":"Kolikrát lidé reklamy viděli."},"reach":{"type":["integer","null"],"description":"Kolik různých lidí reklamy vidělo. Jen pro jednu kampaň a období posledních 7, 30 nebo 90 dní, nebo stejně dlouhé období předtím. Jinak null."},"frequency":{"type":["number","null"],"description":"Kolikrát průměrně viděl reklamy jeden člověk. null, když je dosah null."},"clicks":{"type":"integer","description":"Všechna kliknutí na reklamy."},"linkClicks":{"type":"integer","description":"Kliknutí, která vedla na tvůj web nebo formulář."},"results":{"type":["string","null"],"description":"Výsledky, které spočítala Meta, třeba leady nebo návštěvy webu. null, když vybrané kampaně v období chtějí různé druhy výsledků."},"resultType":{"type":["string","null"],"description":"Co je jeden výsledek, třeba lead. null, když to není jeden druh."},"leads":{"type":"integer","description":"Kolik leadů spočítala Meta."},"purchases":{"type":"integer","description":"Kolik nákupů spočítala Meta."},"videoThruplays":{"type":"integer","description":"Kolikrát lidé dokoukali video do konce, nebo aspoň 15 sekund."},"money":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsPerformanceMoneyData"},"description":"Co jsi utratil, jedna položka za každou měnu."},"hasData":{"type":"boolean","description":"false, dokud Meta ještě nenahrála žádná čísla."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio naposledy dostalo čísla z Meta Ads."},"timezones":{"type":"array","items":{"type":"string"},"description":"Časová pásma tvých reklamních účtů. Meta v nich počítá dny."}},"required":["impressions","reach","frequency","clicks","linkClicks","results","resultType","leads","purchases","videoThruplays","money","hasData","lastSyncedAt","timezones"],"title":"MetaAdsPerformanceMetaData"},"MetaAdsPerformanceMoneyData":{"type":"object","properties":{"currencyCode":{"type":"string","description":"Měna."},"spend":{"type":"string","description":"Co jsi v téhle měně utratil."},"purchaseValue":{"type":"string","description":"Hodnota nákupů, které spočítala Meta."}},"required":["currencyCode","spend","purchaseValue"],"title":"MetaAdsPerformanceMoneyData"},"MetaAdsPhoneOtpVerification":{"type":"string","enum":["disabled","optional","required"],"title":"MetaAdsPhoneOtpVerification"},"MetaAdsPlacementPosition":{"type":"string","enum":["feed","right_hand_column","marketplace","story","search","instream_video","facebook_reels","facebook_reels_overlay","profile_feed","notification","stream","reels","ig_search","profile_reels","classic","rewarded_video"],"title":"MetaAdsPlacementPosition"},"MetaAdsPostData":{"type":"object","properties":{"id":{"type":"string","description":"Kód příspěvku v Meta Ads. Pošli ho jako sourcePostExternalId reklamy."},"platform":{"type":"string"},"text":{"type":["string","null"],"description":"Text příspěvku, nebo null."},"imageUrl":{"type":["string","null"],"description":"Adresa obrázku příspěvku, nebo null."},"createdAt":{"type":["string","null"]},"mediaType":{"type":["string","null"]},"eligible":{"type":["boolean","null"],"description":"true, když příspěvek jde propagovat. false, když ne. null, když to Meta neřekla."},"ineligibleReason":{"type":["string","null"],"description":"Proč příspěvek nejde propagovat, slovy, nebo null."}},"required":["id","platform","text","imageUrl","createdAt","mediaType","eligible","ineligibleReason"],"title":"MetaAdsPostData"},"MetaAdsPublisherPlatform":{"type":"string","enum":["facebook","instagram","audience_network"],"title":"MetaAdsPublisherPlatform"},"MetaAdsSettingsData":{"type":"object","properties":{"monthlyBudgetAmount":{"type":["string","null"],"description":"Tvůj měsíční rozpočet pro všechny kampaně v Meta Ads, nebo null, když ho nemáš nastavený."},"budgetCurrencyCode":{"type":["string","null"],"description":"Měna rozpočtu, třeba CZK, nebo null."},"adAccountId":{"type":["integer","null"],"description":"Číslo tvého reklamního účtu Meta ve Fusiu, nebo null."},"accountComplete":{"type":"boolean","description":"true, když má reklamní účet vše, co kampaně potřebují."},"reconnectRequired":{"type":"boolean","description":"true, když musíš Meta Ads připojit znovu."},"allocatedMonthlyBudgetAmount":{"type":["string","null"],"description":"Kolik z měsíčního rozpočtu už kampaně používají."},"remainingMonthlyBudgetAmount":{"type":["string","null"],"description":"Kolik z měsíčního rozpočtu je ještě volné."},"deploymentEnabled":{"type":"boolean","description":"true, když už Fusio umí posílat kampaně do Meta Ads."},"minimumAudienceSize":{"type":"integer","description":"Nejmenší publikum, ze kterého se Meta umí učit, v lidech. Výchozí je 100000."}},"required":["monthlyBudgetAmount","budgetCurrencyCode","adAccountId","accountComplete","reconnectRequired","allocatedMonthlyBudgetAmount","remainingMonthlyBudgetAmount","deploymentEnabled","minimumAudienceSize"],"title":"MetaAdsSettingsData"},"MetaAdsSpecialAdCategory":{"type":"string","enum":["credit","employment","housing","financial_products_services","online_gambling_and_gaming"],"title":"MetaAdsSpecialAdCategory"},"MetaAdsSummaryData":{"type":"object","properties":{"campaignCount":{"type":"integer"},"adSetCount":{"type":"integer"},"adCount":{"type":"integer"}},"required":["campaignCount","adSetCount","adCount"],"title":"MetaAdsSummaryData"},"MetaAdsTargetKind":{"type":"string","enum":["interest","behavior","demographic"],"title":"MetaAdsTargetKind"},"MetaAdsTargetSource":{"type":"string","enum":["ai","user"],"title":"MetaAdsTargetSource"},"MetaAdsTargetSuggestionData":{"type":"object","properties":{"adSetId":{"type":"integer","description":"Číslo sady, pro kterou návrh je."},"kind":{"$ref":"#/components/schemas/MetaAdsTargetKind","description":"Jaké je to cílení: interest, behavior nebo demographic."},"externalId":{"type":"string","description":"Kód cílení u Meta Ads. Pošli ho jako externalId v targets sady."},"graphField":{"anyOf":[{"$ref":"#/components/schemas/MetaAdsDemographicField"},{"type":"null"}],"description":"U demographic: skupina u Meta Ads, kam patří, třeba life_events nebo income. Jinak null."},"name":{"type":"string","description":"Název cílení u Meta Ads, anglicky."},"localizedName":{"type":["string","null"],"description":"Název v tvém jazyce, nebo null."},"path":{"type":["string","null"],"description":"Kde je v seznamu Meta Ads, třeba \"Interests > Fitness\", nebo null."},"audienceSizeLower":{"type":["integer","null"],"description":"Spodní hranice, kolik lidí osloví, nebo null."},"audienceSizeUpper":{"type":["integer","null"],"description":"Horní hranice, kolik lidí osloví, nebo null."},"reason":{"type":"string","description":"Proč to AI navrhuje."}},"required":["adSetId","kind","externalId","graphField","name","localizedName","path","audienceSizeLower","audienceSizeUpper","reason"],"title":"MetaAdsTargetSuggestionData"},"MetaAdsTargetingMode":{"type":"string","enum":["include","exclude"],"title":"MetaAdsTargetingMode"},"MetaAdsTargetingOptionData":{"type":"object","properties":{"type":{"type":"string","description":"Co ta možnost je: interest, behavior, location nebo language. U demographic je to skupina u Meta: life_events, industries, income, family_statuses, education_statuses, education_schools, education_majors, work_positions nebo work_employers. Pošli ji jako graphField cíle."},"externalId":{"type":"string","description":"Kód možnosti v Meta Ads. Pošli ho v targets, locations nebo languages sady."},"name":{"type":"string","description":"Název možnosti, jak ho ukazuje Meta."},"path":{"type":"array","items":{"type":"string"},"description":"Kde možnost leží v seznamu Meta Ads, shora dolů, třeba Zájmy a Jóga."},"audienceSizeLower":{"type":["integer","null"],"description":"Spodní hranice, kolik lidí možnost má, nebo null."},"audienceSizeUpper":{"type":["integer","null"],"description":"Horní hranice, kolik lidí možnost má, nebo null."},"locationKind":{"type":["string","null"],"description":"U místa: country, region, city nebo zip. Jinak null."},"countryCode":{"type":["string","null"],"description":"U místa: jeho země jako dvě velká písmena. Jinak null."}},"required":["type","externalId","name","path","audienceSizeLower","audienceSizeUpper","locationKind","countryCode"],"title":"MetaAdsTargetingOptionData"},"MetaAdsTargetingSearchType":{"type":"string","enum":["interest","behavior","demographic","location","language"],"title":"MetaAdsTargetingSearchType"},"MetaAdsTreeData":{"type":"object","properties":{"settings":{"$ref":"#/components/schemas/MetaAdsSettingsData","description":"Tvoje nastavení Meta Ads: měsíční rozpočet, měna a reklamní účet."},"summary":{"$ref":"#/components/schemas/MetaAdsSummaryData","description":"Kolik máš kampaní, sad a reklam."},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsCampaignData"},"description":"Tvoje kampaně, každá se svými sadami a reklamami."}},"required":["settings","summary","campaigns"],"title":"MetaAdsTreeData"},"MunicipalityLevel":{"type":"string","enum":["obec","city_district"],"title":"MunicipalityLevel"},"NaceCodeData":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"title":"NaceCodeData"},"NoteOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserSummaryData"},{"type":"null"}]},"noteableType":{"anyOf":[{"$ref":"#/components/schemas/NoteableType"},{"type":"null"}]},"noteableId":{"type":"integer"},"body":{"type":"string"},"leadOutreachTouchId":{"type":["integer","null"]},"outreachTouch":{"anyOf":[{"$ref":"#/components/schemas/NoteOutreachTouchData"},{"type":"null"}]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"pinnedAt":{"type":["string","null"]}},"required":["id","tenantId","userId","user","noteableType","noteableId","body","leadOutreachTouchId","outreachTouch","createdAt","updatedAt","pinnedAt"],"title":"NoteOutputData"},"NoteOutreachTouchData":{"type":"object","properties":{"id":{"type":"integer"},"leadCadenceStepId":{"type":["integer","null"]},"stepPosition":{"type":["integer","null"]},"stepTitle":{"type":["string","null"]},"channel":{"$ref":"#/components/schemas/LeadOutreachChannel"}},"required":["id","leadCadenceStepId","stepPosition","stepTitle","channel"],"title":"NoteOutreachTouchData"},"NoteableType":{"type":"string","enum":["lead","deal","lead_contact"],"title":"NoteableType"},"ObjectionsData":{"type":"object","properties":{"objection":{"type":"string"},"response":{"type":"string"}},"required":["objection","response"],"title":"ObjectionsData"},"OptionAdData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionAdData"},"OptionArticleData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionArticleData"},"OptionBadgeData":{"type":"object","properties":{"label":{"type":"string"},"tone":{"$ref":"#/components/schemas/OptionBadgeTone"}},"required":["label","tone"],"title":"OptionBadgeData"},"OptionBadgeTone":{"type":"string","enum":["muted"],"title":"OptionBadgeTone"},"OptionCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionCampaignData"},"OptionContactData":{"type":"object","properties":{"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"position":{"type":["string","null"]},"leadId":{"type":["string","null"]},"leadName":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/ContactType"},"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["email","phone","position","leadId","leadName","type","id","label","description","badge","disabled","disabledReason"],"title":"OptionContactData"},"OptionDealData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionDealData"},"OptionDealProductData":{"type":"object","properties":{"sku":{"type":["string","null"]},"productDescription":{"type":["string","null"]},"unit":{"type":"string"},"unitPrice":{"type":"string"},"currency":{"type":"string"},"vatRate":{"type":"string"},"billingInterval":{"$ref":"#/components/schemas/DealBillingInterval"},"defaultQuantity":{"type":"string"},"defaultDiscountPercent":{"type":"string"},"isActive":{"type":"boolean"},"acceptsGift":{"type":"boolean"},"isCatalog":{"type":"boolean"},"catalogItemType":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionCatalogItemType"},{"type":"null"}]},"contractTemplates":{"type":"array","items":{"$ref":"#/components/schemas/DealProductContractTemplateOutputData"}},"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["sku","productDescription","unit","unitPrice","currency","vatRate","billingInterval","defaultQuantity","defaultDiscountPercent","isActive","acceptsGift","isCatalog","catalogItemType","contractTemplates","id","label","description","badge","disabled","disabledReason"],"title":"OptionDealProductData"},"OptionEmailData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionEmailData"},"OptionFileData":{"type":"object","properties":{"mimeType":{"type":"string"},"extension":{"type":"string"},"size":{"type":"integer"},"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["mimeType","extension","size","id","label","description","badge","disabled","disabledReason"],"title":"OptionFileData"},"OptionLeadData":{"type":"object","properties":{"stage":{"$ref":"#/components/schemas/LeadStage"},"primaryContactEmail":{"type":["string","null"]},"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["stage","primaryContactEmail","id","label","description","badge","disabled","disabledReason"],"title":"OptionLeadData"},"OptionSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionSocialPostData"},"OptionTopicData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"description":{"type":["string","null"]},"badge":{"anyOf":[{"$ref":"#/components/schemas/OptionBadgeData"},{"type":"null"}]},"disabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]}},"required":["id","label","description","badge","disabled","disabledReason"],"title":"OptionTopicData"},"OtherMembershipOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"roleName":{"type":["string","null"]},"logoUrl":{"type":["string","null"]}},"required":["id","name","slug","roleName","logoUrl"],"title":"OtherMembershipOutputData"},"OverviewKpiData":{"type":"object","properties":{"value":{"type":["number","null"]},"previousValue":{"type":["number","null"]},"series":{"type":"array","items":{}},"previousSeries":{"type":"array","items":{}}},"required":["value","previousValue","series","previousSeries"],"title":"OverviewKpiData"},"OverviewMoneyKpiData":{"type":"object","properties":{"currency":{"type":"string"},"value":{"type":"string"},"previousValue":{"type":["string","null"]},"series":{},"previousSeries":{}},"required":["currency","value","previousValue","series","previousSeries"],"title":"OverviewMoneyKpiData"},"OverviewRangeData":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"title":"OverviewRangeData"},"PainsData":{"type":"object","properties":{"pain":{"type":"string"},"verbatimQuote":{"type":["string","null"]}},"required":["pain","verbatimQuote"],"title":"PainsData"},"PersonalEmailDraftData":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"channel":{"type":"string"},"name":{"type":["string","null"]},"contactId":{"type":["string","null"]},"contactName":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"emailConversationId":{"type":["string","null"]},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"includeOptOut":{"type":"boolean"},"scheduledAt":{"type":["string","null"]},"outreachAction":{"type":["string","null"]},"leadId":{"type":["string","null"]},"messageFrameworkId":{"type":["string","null"]},"tenantProductId":{"type":["string","null"]},"brandVoiceId":{"type":["string","null"]},"updatedAt":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/PersonalEmailDraftStepData"}},"sources":{"type":"array","items":{"$ref":"#/components/schemas/DraftSourceData"}},"angleLabel":{"type":["string","null"]}},"required":["id","kind","channel","name","contactId","contactName","contactEmail","emailConversationId","subject","body","includeOptOut","scheduledAt","outreachAction","leadId","messageFrameworkId","tenantProductId","brandVoiceId","updatedAt","steps","sources","angleLabel"],"title":"PersonalEmailDraftData"},"PersonalEmailDraftStepData":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"title":{"type":["string","null"]},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"delayValue":{"type":"integer"},"delayUnit":{"type":"string"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/DraftSourceData"}},"messageFrameworkId":{"type":["string","null"]},"angleLabel":{"type":["string","null"]}},"required":["id","position","title","subject","body","delayValue","delayUnit","sources","messageFrameworkId","angleLabel"],"title":"PersonalEmailDraftStepData"},"PlatformAdsTargetingData":{"type":"object","properties":{"recommendedSignals":{"type":"array","items":{"type":"string"}},"excludedSignals":{"type":"array","items":{"type":"string"}},"searchThemes":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"string"}}},"required":["recommendedSignals","excludedSignals","searchThemes","notes"],"title":"PlatformAdsTargetingData"},"PreferredContactChannel":{"type":"string","enum":["email","phone","whatsapp"],"title":"PreferredContactChannel"},"PriceInputMode":{"type":"string","enum":["net","gross"],"title":"PriceInputMode"},"PricingTiersData":{"type":"object","properties":{"tier":{"type":"string"},"price":{"type":["string","null"]},"inclusions":{"type":"array","items":{"type":"string"}},"billing":{"type":["string","null"]}},"required":["tier","price","inclusions","billing"],"title":"PricingTiersData"},"PrivateOutreachAction":{"type":"string","enum":["initial_outreach","book_meeting","revive_conversation","followup_new_value","followup_proof","objection_response","breakup_email","meeting_recap","negotiation","upsell"],"title":"PrivateOutreachAction"},"PrivateOutreachSequenceData":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"contactName":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"leadId":{"type":["string","null"]},"emailConversationId":{"type":["string","null"]},"outreachAction":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"stopReason":{"type":["string","null"]},"includeOptOut":{"type":"boolean"},"startedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"stoppedAt":{"type":["string","null"]},"currentPosition":{"type":"integer"},"stepCount":{"type":"integer"},"nextScheduledAt":{"type":["string","null"]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/PrivateOutreachSequenceStepData"}}},"required":["id","contactId","contactName","contactEmail","leadId","emailConversationId","outreachAction","name","status","stopReason","includeOptOut","startedAt","completedAt","stoppedAt","currentPosition","stepCount","nextScheduledAt","steps"],"title":"PrivateOutreachSequenceData"},"PrivateOutreachSequenceStepData":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"title":{"type":["string","null"]},"subject":{"type":"string"},"body":{"type":"string"},"delayValue":{"type":"integer"},"delayUnit":{"type":"string"},"status":{"type":"string"},"scheduledAt":{"type":["string","null"]},"sentAt":{"type":["string","null"]},"messageId":{"type":["string","null"]},"failureMessage":{"type":["string","null"]}},"required":["id","position","title","subject","body","delayValue","delayUnit","status","scheduledAt","sentAt","messageId","failureMessage"],"title":"PrivateOutreachSequenceStepData"},"ProofMetricsData":{"type":"object","properties":{"metric":{"type":"string"},"value":{"type":"string"}},"required":["metric","value"],"title":"ProofMetricsData"},"PublicTenantArticleAuthorData":{"type":"object","properties":{"id":{"type":"integer"},"slug":{"type":"string"},"type":{"$ref":"#/components/schemas/TenantArticleAuthorType"},"name":{"type":"string"},"jobTitle":{"type":["string","null"]},"bio":{"type":["string","null"]},"metaDescription":{"type":["string","null"]},"avatar":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]},"websiteUrl":{"type":["string","null"]},"facebookUrl":{"type":["string","null"]},"instagramUrl":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]},"xUrl":{"type":["string","null"]},"youtubeUrl":{"type":["string","null"]},"tiktokUrl":{"type":["string","null"]},"githubUrl":{"type":["string","null"]},"email":{"type":["string","null"]},"sameAs":{"type":"array","items":{"type":"string"}},"knowsAbout":{"type":"array","items":{"type":"string"}},"articleCount":{"type":["integer","null"]},"isActive":{"type":"boolean"}},"required":["id","slug","type","name","jobTitle","bio","metaDescription","avatar","websiteUrl","facebookUrl","instagramUrl","linkedinUrl","xUrl","youtubeUrl","tiktokUrl","githubUrl","email","sameAs","knowsAbout","articleCount","isActive"],"title":"PublicTenantArticleAuthorData"},"PublicationStatus":{"type":"string","enum":["pending","processing","published","failed","cancelled","scheduled","in_progress","retrying","expired","skipped","paused"],"title":"PublicationStatus"},"ResearchCountrySource":{"type":"string","enum":["target_markets","registered_address","business_register","domain"],"title":"ResearchCountrySource"},"RobotsMaxImagePreview":{"type":"string","enum":["none","standard","large"],"title":"RobotsMaxImagePreview"},"SampleQuotesData":{"type":"object","properties":{"quote":{"type":"string"},"source":{"type":["string","null"]},"date":{"type":["string","null"]}},"required":["quote","source","date"],"title":"SampleQuotesData"},"ScheduledPersonalEmailData":{"type":"object","properties":{"id":{"type":"string"},"emailConversationId":{"type":["string","null"]},"leadCadenceStepId":{"type":["string","null"]},"contactId":{"type":"string"},"contactName":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"subject":{"type":"string"},"body":{"type":"string"},"includeOptOut":{"type":"boolean"},"scheduledAt":{"type":"string"},"status":{"type":"string"},"sentAt":{"type":["string","null"]},"failureMessage":{"type":["string","null"]},"isOwnedByViewer":{"type":"boolean"},"ownerName":{"type":["string","null"]}},"required":["id","emailConversationId","leadCadenceStepId","contactId","contactName","contactEmail","subject","body","includeOptOut","scheduledAt","status","sentAt","failureMessage","isOwnedByViewer","ownerName"],"title":"ScheduledPersonalEmailData"},"ScheduledPersonalEmailStatus":{"type":"string","enum":["scheduled","sending","sent","canceled","failed","awaiting_approval"],"title":"ScheduledPersonalEmailStatus"},"SchedulingAvailableEntitiesOutputData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AvailableEntityData"}},"path":{"type":["string","null"]},"per_page":{"type":"integer"},"next_cursor":{"type":["string","null"]},"next_page_url":{"type":["string","null"]},"prev_cursor":{"type":["string","null"]},"prev_page_url":{"type":["string","null"]}},"required":["data","path","per_page","next_cursor","next_page_url","prev_cursor","prev_page_url"],"title":"SchedulingAvailableEntitiesOutputData"},"SchedulingPublicationData":{"type":"object","properties":{"id":{"type":"integer"},"entityId":{"type":"integer"},"entityType":{"type":"string"},"entityName":{"type":"string"},"status":{"$ref":"#/components/schemas/PublicationStatus","description":"Kde publikace teď je, třeba scheduled, published nebo failed."},"useOptimalPublishingTime":{"type":"boolean"},"scheduledAt":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"failedAt":{"type":["string","null"]},"failureReason":{"type":["string","null"]},"canResetForScheduling":{"type":"boolean"},"campaignName":{"type":["string","null"]}},"required":["id","entityId","entityType","entityName","status","useOptimalPublishingTime","scheduledAt","startedAt","completedAt","failedAt","failureReason","canResetForScheduling","campaignName"],"title":"SchedulingPublicationData"},"ScoringGradeThresholdsData":{"type":"object","properties":{"gradeA":{"type":"integer"},"gradeB":{"type":"integer"}},"required":["gradeA","gradeB"],"title":"ScoringGradeThresholdsData"},"ScoringHeatThresholdsData":{"type":"object","properties":{"hot":{"type":"integer"},"warm":{"type":"integer"}},"required":["hot","warm"],"title":"ScoringHeatThresholdsData"},"SeoAuditMarketStatus":{"type":"string","enum":["running","completed","failed"],"title":"SeoAuditMarketStatus"},"SeoAuditOverviewData":{"type":"object","properties":{"kpis":{"$ref":"#/components/schemas/SeoAuditOverviewKpisData","description":"Hlavní čísla: trhy, hledaná slova v top 10, tvůj podíl viditelnosti, podíl soupeřů a otevřená zjištění."},"rivals":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditOverviewRivalData"},"description":"Weby, které se ukazují ve stejných hledáních, s jejich podílem viditelnosti."},"quickFixes":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditOverviewQuickFixData"},"description":"Nejdůležitější otevřená zjištění, která opravit nejdřív."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["kpis","rivals","quickFixes","ready","rolledUpAt","range","previousRange","dates"],"title":"SeoAuditOverviewData"},"SeoAuditOverviewKpisData":{"type":"object","properties":{"markets":{"$ref":"#/components/schemas/OverviewKpiData"},"topTenKeywords":{"$ref":"#/components/schemas/OverviewKpiData"},"visibilityShare":{"$ref":"#/components/schemas/OverviewKpiData"},"rivalVisibilityShare":{"$ref":"#/components/schemas/OverviewKpiData"},"findings":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["markets","topTenKeywords","visibilityShare","rivalVisibilityShare","findings"],"title":"SeoAuditOverviewKpisData"},"SeoAuditPaidStatus":{"type":"string","enum":["available","partial","empty","unavailable"],"title":"SeoAuditPaidStatus"},"SignalDefinitionData":{"type":"object","properties":{"key":{"type":"string","description":"Krátký název signálu."},"label":{"type":"string","description":"Název, který čtou lidé."},"type":{"type":"string","description":"Druh hodnoty: enum, number, bool nebo text."},"weight":{"type":"integer","description":"Kolik signál váží."},"stage":{"type":"string","description":"Kdy ho Fusio hledá: discovery (když lead najde) nebo research (když ho zkoumá víc)."},"sourceOrAiInstruction":{"type":["string","null"],"description":"Odkud hodnota pochází, nebo co má AI hledat."}},"required":["key","label","type","weight","stage","sourceOrAiInstruction"],"title":"SignalDefinitionData"},"SignatureExtractData":{"type":"object","properties":{"name":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"company":{"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"website":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"confidence":{},"extractedAt":{"type":"string"}},"required":["name","firstName","lastName","company","position","phone","website","registrationNumber","confidence","extractedAt"],"title":"SignatureExtractData"},"SocialAdAccountSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"externalId":{"type":"string"},"name":{"type":"string"},"currency":{"type":["string","null"]},"billingStatus":{"type":"string"},"pageName":{"type":["string","null"]},"paymentMethodLabel":{"type":["string","null"]},"paymentStatus":{"type":["string","null"]},"pixelExternalId":{"type":["string","null"]},"accountStatus":{"type":["string","null"]},"lastSyncedAt":{"type":["string","null"]},"lastSyncError":{"type":["string","null"]}},"required":["id","externalId","name","currency","billingStatus","pageName","paymentMethodLabel","paymentStatus","pixelExternalId","accountStatus","lastSyncedAt","lastSyncError"],"title":"SocialAdAccountSummaryData"},"SocialAdLeadSegmentData":{"type":"object","properties":{"key":{"type":["string","null"]},"label":{"type":["string","null"]},"clicks":{"type":"integer"},"leads":{"type":"integer"},"deals":{"type":"integer"}},"required":["key","label","clicks","leads","deals"],"title":"SocialAdLeadSegmentData"},"SocialAdResultData":{"type":"object","properties":{"adId":{"type":["integer","null"]},"externalAdId":{"type":"string"},"name":{"type":"string"},"spend":{"type":"number"},"impressions":{"type":"integer"},"clicks":{"type":"integer"},"conversions":{"type":"number"},"currencyCode":{"type":["string","null"]}},"required":["adId","externalAdId","name","spend","impressions","clicks","conversions","currencyCode"],"title":"SocialAdResultData"},"SocialPostCommentData":{"type":"object","properties":{"id":{"type":"integer"},"socialPostId":{"type":"integer"},"parentCommentId":{"type":["integer","null"]},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"content":{"type":"string"},"commentOrder":{"type":"integer"},"kind":{"$ref":"#/components/schemas/SocialPostCommentKind"},"delayValue":{"type":["integer","null"]},"delayUnit":{"anyOf":[{"$ref":"#/components/schemas/SocialPostCommentDelayUnit"},{"type":"null"}]},"state":{"$ref":"#/components/schemas/SocialPostState"},"externalId":{"type":["string","null"]},"rejectReason":{"type":["string","null"]},"files":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"}},"scheduledAt":{"type":["string","null"]},"publishedAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]}},"title":"SocialPostCommentData"},"SocialPostCommentDelayUnit":{"type":"string","enum":["minutes","hours","days"],"title":"SocialPostCommentDelayUnit"},"SocialPostCommentKind":{"type":"string","enum":["thread_item","comment"],"title":"SocialPostCommentKind"},"SocialPostFormat":{"type":"string","enum":["video","carousel","image","text"],"title":"SocialPostFormat"},"SocialPostGridAccountData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"authenticationStatus":{"$ref":"#/components/schemas/TenantOAuthPlatformStatus"},"socialPlatform":{"anyOf":[{"$ref":"#/components/schemas/SocialPostGridPlatformData"},{"type":"null"}]}},"required":["id","name","email","authenticationStatus","socialPlatform"],"title":"SocialPostGridAccountData"},"SocialPostGridFileData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"},"mimeType":{"type":"string"},"alt":{"type":["string","null"]}},"required":["id","name","url","mimeType","alt"],"title":"SocialPostGridFileData"},"SocialPostGridPlatformData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"title":"SocialPostGridPlatformData"},"SocialPostOverviewData":{"type":"object","properties":{"kpis":{"$ref":"#/components/schemas/SocialPostOverviewKpisData","description":"Hlavní čísla: příspěvky, zobrazení, dosah, interakce, kliknutí, lajky, komentáře, sdílení a uložení."},"impressionsByPlatform":{"type":"object","additionalProperties":{"type":"integer"},"description":"Kolik zobrazení dostala každá síť. Klíč je síť."},"formats":{"type":"array","items":{"$ref":"#/components/schemas/SocialPostOverviewFormatData"},"description":"Jak si vedl každý druh příspěvku, třeba text, obrázek nebo video."},"publishTimes":{"type":"array","items":{"$ref":"#/components/schemas/SocialPostOverviewPublishTimeData"},"description":"Dosah a interakce podle dne v týdnu a hodiny zveřejnění."},"topPosts":{"type":"array","items":{"$ref":"#/components/schemas/SocialPostOverviewTopPostData"},"description":"Příspěvky, které si vedly nejlíp."},"ready":{"type":"boolean","description":"false, dokud Fusio čísla ještě počítá. Seznamy jsou pak prázdné; zkus to později."},"rolledUpAt":{"type":["string","null"],"description":"Kdy Fusio čísla naposledy spočítalo."},"range":{"$ref":"#/components/schemas/OverviewRangeData"},"previousRange":{"anyOf":[{"$ref":"#/components/schemas/OverviewRangeData"},{"type":"null"}],"description":"Období těsně předtím, když jsi poslal compare=true. Jinak null."},"dates":{"type":"array","items":{"type":"string"},"description":"Každý den období. Denní řady v odpovědi jdou v tomhle pořadí."}},"required":["kpis","impressionsByPlatform","formats","publishTimes","topPosts","ready","rolledUpAt","range","previousRange","dates"],"title":"SocialPostOverviewData"},"SocialPostOverviewFormatData":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/SocialPostFormat"},"postCount":{"type":"integer"},"reach":{"type":"integer"},"engagement":{"type":"integer"}},"required":["format","postCount","reach","engagement"],"title":"SocialPostOverviewFormatData"},"SocialPostOverviewKpisData":{"type":"object","properties":{"posts":{"$ref":"#/components/schemas/OverviewKpiData"},"impressions":{"$ref":"#/components/schemas/OverviewKpiData"},"reach":{"$ref":"#/components/schemas/OverviewKpiData"},"engagement":{"$ref":"#/components/schemas/OverviewKpiData"},"clicks":{"$ref":"#/components/schemas/OverviewKpiData"},"likes":{"$ref":"#/components/schemas/OverviewKpiData"},"comments":{"$ref":"#/components/schemas/OverviewKpiData"},"shares":{"$ref":"#/components/schemas/OverviewKpiData"},"saves":{"$ref":"#/components/schemas/OverviewKpiData"}},"required":["posts","impressions","reach","engagement","clicks","likes","comments","shares","saves"],"title":"SocialPostOverviewKpisData"},"SocialPostOverviewPublishTimeData":{"type":"object","properties":{"weekday":{"type":"integer"},"hour":{"type":"integer"},"postCount":{"type":"integer"},"reach":{"type":"integer"},"engagement":{"type":"integer"}},"required":["weekday","hour","postCount","reach","engagement"],"title":"SocialPostOverviewPublishTimeData"},"SocialPostOverviewTopPostData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"type":"string"},"reach":{"type":"integer"},"engagement":{"type":"integer"}},"required":["id","name","platform","reach","engagement"],"title":"SocialPostOverviewTopPostData"},"SocialPostSourceArticleOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"imageUrl":{"type":["string","null"]}},"required":["id","name","imageUrl"],"title":"SocialPostSourceArticleOutputData"},"SocialPostState":{"type":"string","enum":["drafted","approved","rejected","scheduled","published","failed"],"title":"SocialPostState"},"StandaloneCampaignEntityOutputData":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/StandaloneCampaignEntityType"},"id":{"type":"integer"},"name":{"type":"string"}},"required":["type","id","name"],"title":"StandaloneCampaignEntityOutputData"},"StandaloneCampaignEntityType":{"type":"string","enum":["article","social","email","ad"],"title":"StandaloneCampaignEntityType"},"StrategyIntegrationData":{"type":"object","properties":{"kind":{"type":"string"},"platforms":{"type":"array","items":{"type":"string"}},"leadTemperature":{"type":"array","items":{"type":"string"}},"formatHint":{"type":["string","null"]},"cadenceHint":{"type":["string","null"]},"enabled":{"type":"boolean"}},"required":["kind","platforms","leadTemperature","formatHint","cadenceHint","enabled"],"title":"StrategyIntegrationData"},"StrategyIntegrationKind":{"type":"string","enum":["article","social","email","ads","seo","website","landing_page","lead_form","tracking","crm_scoring"],"title":"StrategyIntegrationKind"},"StrategyResourcesData":{"type":"object","properties":{"time":{"type":"string"},"budget":{"type":"string"},"skills":{"type":"array","items":{"type":"string"}}},"required":["time","budget","skills"],"title":"StrategyResourcesData"},"StrategySourcesData":{"type":"object","properties":{"sourceType":{"type":"string"},"urls":{"type":"array","items":{"type":"string"}},"angles":{"type":"array","items":{"type":"string"}},"topicId":{"type":["integer","null"]},"includeKeywords":{"type":"array","items":{"type":"string"}},"excludeKeywords":{"type":"array","items":{"type":"string"}}},"required":["sourceType","urls","angles","topicId","includeKeywords","excludeKeywords"],"title":"StrategySourcesData"},"StrategyStepsData":{"type":"object","properties":{"step":{"type":"integer"},"description":{"type":"string"}},"required":["step","description"],"title":"StrategyStepsData"},"SubscriptionCatalogItemType":{"type":"string","enum":["module","package","add_on"],"title":"SubscriptionCatalogItemType"},"SubscriptionLimitData":{"type":"object","properties":{"metric":{"$ref":"#/components/schemas/SubscriptionMetric"},"amount":{"type":["integer","null"]}},"required":["metric","amount"],"title":"SubscriptionLimitData"},"SubscriptionMetric":{"type":"string","enum":["credits","emails","crm_records","company_lookups","members","social_platforms","ad_platforms"],"title":"SubscriptionMetric"},"SubscriptionPackageType":{"type":"string","enum":["free","modular","bundle"],"title":"SubscriptionPackageType"},"SubscriptionPriceCycle":{"type":"string","enum":["monthly","yearly","one_time"],"title":"SubscriptionPriceCycle"},"SuggestedAudienceData":{"type":"object","properties":{"segmentIds":{"type":"array","items":{"type":"integer"}},"tagIds":{"type":"array","items":{"type":"integer"}},"rationale":{"type":"string"}},"required":["segmentIds","tagIds","rationale"],"title":"SuggestedAudienceData"},"SuggestedEventData":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"firesWhen":{"type":"string"},"category":{"type":"string"},"rationale":{"type":"string"},"isSystem":{"type":"boolean"}},"required":["name","description","firesWhen","category","rationale","isSystem"],"title":"SuggestedEventData"},"SuggestedLeadFormData":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/SuggestedLeadFormFieldData"}},"successMessage":{"type":"string"},"eventName":{"type":"string"},"eventDescription":{"type":"string"},"rationale":{"type":"string"},"successRedirectUrl":{"type":["string","null"]}},"required":["name","description","fields","successMessage","eventName","eventDescription","rationale","successRedirectUrl"],"title":"SuggestedLeadFormData"},"SuggestedLeadFormFieldData":{"type":"object","properties":{"label":{"type":"string"},"fieldType":{"type":"string"},"isRequired":{"type":"boolean"},"placeholder":{"type":["string","null"]},"options":{"type":["array","null"],"items":{"type":"string"}},"isLeadName":{"type":"boolean"}},"required":["label","fieldType","isRequired","placeholder","options","isLeadName"],"title":"SuggestedLeadFormFieldData"},"SuspendedTenantOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"logoUrl":{"type":["string","null"]},"completedAt":{"type":["string","null"]}},"required":["id","name","slug","logoUrl","completedAt"],"title":"SuspendedTenantOutputData"},"SwitchingDynamicsData":{"type":"object","properties":{"push":{"type":["string","null"]},"pull":{"type":["string","null"]},"habit":{"type":["string","null"]},"anxiety":{"type":["string","null"]}},"required":["push","pull","habit","anxiety"],"title":"SwitchingDynamicsData"},"SyncAcceptedOutputData":{"type":"object","properties":{"importId":{"type":"integer"},"status":{"$ref":"#/components/schemas/SyncRunStatus"},"total":{"type":"integer"},"links":{"$ref":"#/components/schemas/SyncRunLinksData"}},"required":["importId","status","total","links"],"title":"SyncAcceptedOutputData"},"SyncContactResultData":{"type":"object","properties":{"index":{"type":"integer"},"result":{"$ref":"#/components/schemas/SyncItemResult"},"id":{"type":["integer","null"]},"externalId":{"type":["string","null"]}},"required":["index","result","id","externalId"],"title":"SyncContactResultData"},"SyncItemResult":{"type":"string","enum":["created","updated","unchanged","skipped"],"title":"SyncItemResult"},"SyncItemResultOutputData":{"type":"object","properties":{"index":{"type":"integer","description":"Pořadí položky v dávce, kterou jsi poslal, od 0."},"result":{"$ref":"#/components/schemas/SyncItemResult"},"id":{"type":["integer","null"]},"externalId":{"type":["string","null"]},"name":{"type":["string","null"]},"changes":{"type":"array","items":{"type":"string"},"description":"Pole, která tahle položka změnila."},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/SyncContactResultData"}},"warnings":{},"errors":{}},"required":["index","result","id","externalId","name","changes","contacts","warnings","errors"],"title":"SyncItemResultOutputData"},"SyncItemResultPageOutputData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SyncItemResultOutputData"}},"nextCursor":{"type":["string","null"],"description":"Pošli ho jako cursor a dostaneš další stránku. Na poslední stránce je null."}},"required":["data","nextCursor"],"title":"SyncItemResultPageOutputData"},"SyncKind":{"type":"string","enum":["leads","deals"],"title":"SyncKind"},"SyncRunErrorData":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"SyncRunErrorData"},"SyncRunLinksData":{"type":"object","properties":{"self":{"type":"string"},"results":{"type":"string"}},"required":["self","results"],"title":"SyncRunLinksData"},"SyncRunStatus":{"type":"string","enum":["queued","processing","completed","failed"],"title":"SyncRunStatus"},"SyncRunStatusOutputData":{"type":"object","properties":{"importId":{"type":"integer"},"object":{"$ref":"#/components/schemas/SyncKind"},"status":{"$ref":"#/components/schemas/SyncRunStatus"},"total":{"type":"integer"},"processed":{"type":"integer"},"progress":{"type":"integer","description":"Kolik je hotovo, v procentech od 0 do 100."},"created":{"type":"integer"},"updated":{"type":"integer"},"unchanged":{"type":"integer"},"skipped":{"type":"integer","description":"Položky, které Fusio nemohlo uložit. Důvody najdeš ve výsledcích."},"error":{"anyOf":[{"$ref":"#/components/schemas/SyncRunErrorData"},{"type":"null"}],"description":"Proč selhal celý import. null, dokud běží nebo když dopadl dobře."},"createdAt":{"type":["string","null"]},"finishedAt":{"type":["string","null"]}},"required":["importId","object","status","total","processed","progress","created","updated","unchanged","skipped","error","createdAt","finishedAt"],"title":"SyncRunStatusOutputData"},"TagAssignmentSource":{"type":"string","enum":["manual","automated","import","api"],"title":"TagAssignmentSource"},"TargetCompaniesData":{"type":"object","properties":{"industries":{"type":"array","items":{"type":"string"}},"companySizes":{"type":"array","items":{"type":"string"}},"stages":{"type":"array","items":{"type":"string"}}},"required":["industries","companySizes","stages"],"title":"TargetCompaniesData"},"TargetMarketsData":{"type":"object","properties":{"isGlobal":{"type":"boolean"},"countryCodes":{"type":"array","items":{"type":"string"}}},"required":["isGlobal","countryCodes"],"title":"TargetMarketsData"},"TaskCadenceStepData":{"type":"object","properties":{"stepId":{"type":"integer"},"position":{"type":"integer"},"title":{"type":"string"},"channel":{"$ref":"#/components/schemas/LeadOutreachChannel"},"enrollmentId":{"type":"integer"}},"required":["stepId","position","title","channel","enrollmentId"],"title":"TaskCadenceStepData"},"TaskStatus":{"type":"string","enum":["pending","completed","overdue"],"title":"TaskStatus"},"TaskableType":{"type":"string","enum":["lead","deal"],"title":"TaskableType"},"TenantAnchorData":{"type":"object","properties":{"personaName":{"type":["string","null"]},"competitorName":{"type":["string","null"]},"strategyName":{"type":["string","null"]},"productField":{"type":["string","null"]}},"required":["personaName","competitorName","strategyName","productField"],"title":"TenantAnchorData"},"TenantArticleAuthorData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"type":{"$ref":"#/components/schemas/TenantArticleAuthorType"},"name":{"type":"string"},"slug":{"type":"string"},"avatarFileId":{"type":["integer","null"]},"avatar":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]},"websiteUrl":{"type":["string","null"]},"facebookUrl":{"type":["string","null"]},"instagramUrl":{"type":["string","null"]},"linkedinUrl":{"type":["string","null"]},"xUrl":{"type":["string","null"]},"youtubeUrl":{"type":["string","null"]},"tiktokUrl":{"type":["string","null"]},"githubUrl":{"type":["string","null"]},"email":{"type":["string","null"]},"isEmailPublic":{"type":"boolean"},"sameAs":{"type":"array","items":{"type":"string"}},"knowsAbout":{"type":"array","items":{"type":"string"}},"isDefault":{"type":"boolean","description":"true u autora, kterého dostanou nové články."},"isActive":{"type":"boolean"},"articleCount":{"type":"integer","description":"Kolik článků má tohohle autora."},"translations":{"type":"array","items":{"$ref":"#/components/schemas/TenantArticleAuthorTranslationData"},"description":"Texty o autorovi, jeden pro každý jazyk."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","type","name","slug","avatarFileId","avatar","websiteUrl","facebookUrl","instagramUrl","linkedinUrl","xUrl","youtubeUrl","tiktokUrl","githubUrl","email","isEmailPublic","sameAs","knowsAbout","isDefault","isActive","articleCount","translations","createdAt","updatedAt"],"title":"TenantArticleAuthorData"},"TenantArticleAuthorTranslationData":{"type":"object","properties":{"id":{"type":"integer"},"tenantArticleAuthorId":{"type":"integer"},"locale":{"type":"string"},"isPrimary":{"type":"boolean"},"jobTitle":{"type":["string","null"]},"bio":{"type":["string","null"]},"metaDescription":{"type":["string","null"]}},"required":["id","tenantArticleAuthorId","locale","isPrimary","jobTitle","bio","metaDescription"],"title":"TenantArticleAuthorTranslationData"},"TenantArticleAuthorType":{"type":"string","enum":["person","organization"],"title":"TenantArticleAuthorType"},"TenantBankAccountOutputData":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"},"accountNumber":{"type":["string","null"]},"bankCode":{"type":["string","null"]},"iban":{"type":["string","null"]},"swift":{"type":["string","null"]},"currency":{"type":"string"},"isDefault":{"type":"boolean"},"isFromFakturoid":{"type":"boolean"},"paymentPairing":{"type":["boolean","null"]}},"required":["id","label","accountNumber","bankCode","iban","swift","currency","isDefault","isFromFakturoid","paymentPairing"],"title":"TenantBankAccountOutputData"},"TenantBrandVoicePhraseMode":{"type":"string","enum":["prefer","avoid"],"title":"TenantBrandVoicePhraseMode"},"TenantBrandVoiceReadingLevel":{"type":"string","enum":["simple","standard","advanced"],"title":"TenantBrandVoiceReadingLevel"},"TenantBrandVoiceTone":{"type":"string","enum":["professional","friendly","authoritative","casual","playful","inspirational","empathetic","technical","custom"],"title":"TenantBrandVoiceTone"},"TenantCompetitorData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"name":{"type":"string"},"websiteUrl":{"type":["string","null"]},"logoUrl":{"type":["string","null"]},"competitorType":{"type":["string","null"]},"tagline":{"type":["string","null"]},"valueProposition":{"type":["string","null"]},"positioningAngle":{"type":["string","null"]},"targetAudienceSummary":{"type":["string","null"]},"freeTrialSummary":{"type":["string","null"]},"contentStrategySignals":{"type":["string","null"],"description":"Co jeho obsah prozrazuje o jeho plánech."},"theirAdvantageOverUs":{"type":["string","null"]},"ourAdvantageOverThem":{"type":["string","null"]},"opportunities":{"type":["string","null"]},"threats":{"type":["string","null"]},"hasFreeTrial":{"type":"boolean"},"estimatedDomainAuthority":{"type":["integer","null"],"description":"Jak silný je jeho web ve vyhledávání, od 0 do 100, když se to ví."},"messagingThemes":{"type":"array","items":{"type":"string"}},"coreCapabilities":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CapabilitiesData"},"description":"Co jeho produkt umí."},"notableDifferentiators":{"type":"array","items":{"type":"string"}},"integrations":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsData"},{"type":"null"}]},"pricingTiers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/PricingTiersData"},"description":"Jeho cenové tarify."},"namedCustomers":{"type":"array","items":{"type":"string"}},"industriesServed":{"type":"array","items":{"$ref":"#/components/schemas/AresFilterOptionData"},"description":"Obory, kterým prodává, každý s kódem a názvem."},"caseStudyThemes":{"type":"array","items":{"type":"string"}},"strengths":{"type":"array","items":{"type":"string"}},"weaknesses":{"type":"array","items":{"type":"string"}},"rawSources":{"type":"array","items":{"type":"string"},"description":"Webové stránky, ze kterých informace pochází."},"analyzedAt":{"type":["string","null"],"description":"Kdy ho AI naposledy zkoumala."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","tenantProductId","derivedFromAnalysisId","createdBy","name","websiteUrl","logoUrl","competitorType","tagline","valueProposition","positioningAngle","targetAudienceSummary","freeTrialSummary","contentStrategySignals","theirAdvantageOverUs","ourAdvantageOverThem","opportunities","threats","hasFreeTrial","estimatedDomainAuthority","messagingThemes","coreCapabilities","notableDifferentiators","integrations","pricingTiers","namedCustomers","industriesServed","caseStudyThemes","strengths","weaknesses","rawSources","analyzedAt","createdAt","updatedAt"],"title":"TenantCompetitorData"},"TenantCompetitorType":{"type":"string","enum":["direct","secondary","indirect","aspirational"],"title":"TenantCompetitorType"},"TenantCustomerConfidenceLevel":{"type":"string","enum":["high","medium","low"],"title":"TenantCustomerConfidenceLevel"},"TenantCustomerData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"name":{"type":"string"},"personaTitle":{"type":["string","null"]},"segmentSummary":{"type":["string","null"]},"titleRange":{"type":["string","null"]},"reportsTo":{"type":["string","null"]},"teamSizeManaged":{"type":["string","null"]},"primaryJobToBeDone":{"type":["string","null"]},"confidenceLevel":{"type":["string","null"]},"triggerEvents":{"type":"array","items":{"type":"string"}},"topPains":{"type":["array","null"],"items":{"$ref":"#/components/schemas/PainsData"}},"desiredOutcomes":{"type":"array","items":{"type":"string"}},"successMetrics":{"type":"array","items":{"type":"string"}},"objections":{"type":"array","items":{"type":"string"}},"fears":{"type":"array","items":{"type":"string"}},"alternativesConsidered":{"type":"array","items":{"type":"string"}},"keyVocabulary":{"type":"array","items":{"type":"string"}},"functionalJobs":{"type":"array","items":{"type":"string"}},"emotionalJobs":{"type":"array","items":{"type":"string"}},"socialJobs":{"type":"array","items":{"type":"string"}},"channels":{"type":"array","items":{"type":"string"}},"contentConsumed":{"type":"array","items":{"type":"string"}},"trustedCommunities":{"type":"array","items":{"type":"string"}},"sampleQuotes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SampleQuotesData"}},"adsTargetingProfile":{"anyOf":[{"$ref":"#/components/schemas/AdsTargetingProfileData"},{"type":"null"}],"description":"Komu ukazovat reklamy, obecně a pro každou reklamní platformu."},"naceCodes":{"type":"array","items":{"$ref":"#/components/schemas/AresFilterOptionData"}},"employeeBand":{"type":["string","null"]},"legalForms":{"type":"array","items":{"type":"string"}},"eshopPlatforms":{"type":"array","items":{"type":"string"}},"companyAgeBands":{"type":"array","items":{"type":"string"}},"municipality":{"anyOf":[{"$ref":"#/components/schemas/AresMunicipalityOptionData"},{"type":"null"}]},"targetingClassifiedAt":{"type":["string","null"]},"analyzedAt":{"type":["string","null"],"description":"Kdy profil naposledy vyplnila AI."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","tenantProductId","derivedFromAnalysisId","createdBy","name","personaTitle","segmentSummary","titleRange","reportsTo","teamSizeManaged","primaryJobToBeDone","confidenceLevel","triggerEvents","topPains","desiredOutcomes","successMetrics","objections","fears","alternativesConsidered","keyVocabulary","functionalJobs","emotionalJobs","socialJobs","channels","contentConsumed","trustedCommunities","sampleQuotes","adsTargetingProfile","naceCodes","employeeBand","legalForms","eshopPlatforms","companyAgeBands","municipality","targetingClassifiedAt","analyzedAt","createdAt","updatedAt"],"title":"TenantCustomerData"},"TenantEntitlementAlertCode":{"type":"string","enum":["renewal_unpaid","renewal_due_without_card","payment_pending","order_awaiting_payment","billing_details_missing"],"title":"TenantEntitlementAlertCode"},"TenantEntitlementAlertData":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/TenantEntitlementAlertCode"},"priority":{"type":"integer"},"chargeId":{"type":["integer","null"]},"orderId":{"type":["integer","null"]}},"required":["code","priority","chargeId","orderId"],"title":"TenantEntitlementAlertData"},"TenantEntitlementLane":{"type":"string","enum":["self","managed","private"],"title":"TenantEntitlementLane"},"TenantEntitlementLockedModuleData":{"type":"object","properties":{"key":{"type":"string"},"permissionNames":{"type":"array","items":{"type":"string"}}},"required":["key","permissionNames"],"title":"TenantEntitlementLockedModuleData"},"TenantEntitlementShopData":{"type":"object","properties":{"available":{"type":"boolean"},"newOrderOnly":{"type":"boolean"}},"required":["available","newOrderOnly"],"title":"TenantEntitlementShopData"},"TenantEntitlementStatus":{"type":"string","enum":["free","pending","active","lapsed","ended"],"title":"TenantEntitlementStatus"},"TenantEntitlementsData":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/TenantEntitlementStatus"},"lane":{"$ref":"#/components/schemas/TenantEntitlementLane"},"packageId":{"type":"integer"},"packageType":{"$ref":"#/components/schemas/SubscriptionPackageType"},"subscriptionId":{"type":["integer","null"]},"billingCycle":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionPriceCycle"},{"type":"null"}]},"periodStartsOn":{"type":["string","null"]},"periodEndsOn":{"type":["string","null"]},"usageResetsAt":{"type":["string","null"]},"moduleIds":{"type":"array","items":{"type":"integer"}},"moduleKeys":{"type":"array","items":{"type":"string"}},"readOnlyModuleIds":{"type":"array","items":{"type":"integer"}},"permissionNames":{"type":"array","items":{"type":"string"}},"limits":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionLimitData"}},"shop":{"$ref":"#/components/schemas/TenantEntitlementShopData"},"alerts":{"type":"array","items":{"$ref":"#/components/schemas/TenantEntitlementAlertData"}},"lockedModules":{"type":"array","items":{"$ref":"#/components/schemas/TenantEntitlementLockedModuleData"}}},"required":["status","lane","packageId","packageType","subscriptionId","billingCycle","periodStartsOn","periodEndsOn","usageResetsAt","moduleIds","moduleKeys","readOnlyModuleIds","permissionNames","limits","shop","alerts","lockedModules"],"title":"TenantEntitlementsData"},"TenantImageProfileOutputData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/ImageGenerationType"},"style":{"$ref":"#/components/schemas/ImageGenerationStyle"},"styleCustomValue":{"type":["string","null"]},"instructions":{"type":["string","null"]},"styleAnalysis":{"type":["string","null"]},"styleAnalysisStatus":{"anyOf":[{"$ref":"#/components/schemas/ImageStyleAnalysisStatus"},{"type":"null"}],"description":"Jak jde popis stylu: pending, processing, completed nebo failed. null, když žádný není."},"styleAnalysisFailureReason":{"type":["string","null"],"description":"Proč se popis stylu nepovedl."},"styleAnalyzedAt":{"type":["string","null"],"description":"Kdy AI naposledy popsala styl."},"styleAnalysisEditedAt":{"type":["string","null"],"description":"Kdy člověk naposledy změnil popis stylu."},"styleAnalysisRequestedAt":{"type":["string","null"]},"mascots":{"type":"array","items":{"$ref":"#/components/schemas/ImageProfileMascotOutputData"},"description":"Maskoti, které AI s tímhle presetem kreslí."},"detectedAvatar":{"anyOf":[{"$ref":"#/components/schemas/DetectedAvatarData"},{"type":"null"}],"description":"Člověk nebo maskot, kterého AI viděla v tvých ukázkách, jako tip."},"detectedAvatarDismissedAt":{"type":["string","null"],"description":"Kdy jsi ten tip skryl."},"isPrimary":{"type":"boolean","description":"true u hlavního presetu."},"referenceImages":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"},"description":"Tvoje ukázkové obrázky."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","name","type","style","styleCustomValue","instructions","styleAnalysis","styleAnalysisStatus","styleAnalysisFailureReason","styleAnalyzedAt","styleAnalysisEditedAt","styleAnalysisRequestedAt","mascots","detectedAvatar","detectedAvatarDismissedAt","isPrimary","referenceImages","createdAt","updatedAt"],"title":"TenantImageProfileOutputData"},"TenantIntelligenceFactsData":{"type":"object","properties":{"preferredAiLanguage":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceLanguageData"},{"type":"null"}]},"websiteLanguage":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceLanguageData"},{"type":"null"}]},"targetMarkets":{"anyOf":[{"$ref":"#/components/schemas/TargetMarketsData"},{"type":"null"}]},"verifiedDomain":{"type":["string","null"],"description":"Tvoje ověřená doména, nebo null, když žádnou nemáš."},"imagePresets":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TenantIntelligenceImagePresetData"}},"socialPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligencePlatformData"}},"adPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligencePlatformData"}}},"required":["preferredAiLanguage","websiteLanguage","targetMarkets","verifiedDomain","imagePresets","socialPlatforms","adPlatforms"],"title":"TenantIntelligenceFactsData"},"TenantIntelligenceImagePresetData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"isPrimary":{"type":"boolean"}},"required":["id","name","isPrimary"],"title":"TenantIntelligenceImagePresetData"},"TenantIntelligenceKeywordData":{"type":"object","properties":{"id":{"type":"integer"},"keyword":{"type":"string"},"markdown":{"type":"string"}},"required":["id","keyword","markdown"],"title":"TenantIntelligenceKeywordData"},"TenantIntelligenceLanguageData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"title":"TenantIntelligenceLanguageData"},"TenantIntelligenceListData":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligenceListItemData"}},"total":{"type":"integer","description":"Kolik záznamů je celkem. Seznam jich může ukázat méně."}},"required":["items","total"],"title":"TenantIntelligenceListData"},"TenantIntelligenceListItemData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"summary":{"type":["string","null"]}},"required":["id","name","summary"],"title":"TenantIntelligenceListItemData"},"TenantIntelligencePlatformData":{"type":"object","properties":{"slug":{"type":"string"},"status":{"type":"string"}},"required":["slug","status"],"title":"TenantIntelligencePlatformData"},"TenantIntelligenceRecordData":{"type":"object","properties":{"id":{"type":"integer"},"markdown":{"type":"string","description":"Záznam napsaný jako text v Markdownu, připravený pro AI."}},"required":["id","markdown"],"title":"TenantIntelligenceRecordData"},"TenantIntelligenceSeoData":{"type":"object","properties":{"auditId":{"type":"integer"},"marketAuditId":{"type":"integer"},"markdown":{"type":"string"},"keywordOpportunities":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligenceKeywordData"},"description":"Hledaná slova, kde bys mohl získat víc návštěvníků."}},"required":["auditId","marketAuditId","markdown","keywordOpportunities"],"title":"TenantIntelligenceSeoData"},"TenantIntelligenceSummaryArea":{"type":"string","enum":["brand_voice","product","competitors","customers","strategies","seo","ads_performance","facts"],"title":"TenantIntelligenceSummaryArea"},"TenantIntelligenceSummaryData":{"type":"object","properties":{"brandVoice":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceRecordData"},{"type":"null"}],"description":"Tvůj hlavní hlas značky jako text, nebo null, když v odpovědi není."},"product":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceRecordData"},{"type":"null"}],"description":"Tvůj produkt jako text, nebo null, když v odpovědi není."},"competitors":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceListData"},{"type":"null"}],"description":"Tvoji konkurenti, nebo null, když v odpovědi nejsou."},"customers":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceListData"},{"type":"null"}],"description":"Tvoje profily zákazníků, nebo null, když v odpovědi nejsou."},"strategies":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceListData"},{"type":"null"}],"description":"Tvoje strategie, nebo null, když v odpovědi nejsou."},"seo":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceSeoData"},{"type":"null"}],"description":"Co našel tvůj nejnovější SEO audit, nebo null."},"adsPerformance":{"anyOf":[{"$ref":"#/components/schemas/AdsPerformanceSnapshotData"},{"type":"null"}],"description":"Jak se tvým reklamám poslední dobou dařilo, nebo null."},"facts":{"anyOf":[{"$ref":"#/components/schemas/TenantIntelligenceFactsData"},{"type":"null"}],"description":"Krátká fakta: jazyky, cílové trhy, tvoje ověřená doména, presety obrázků a připojené platformy."},"unavailable":{"type":"array","items":{"$ref":"#/components/schemas/TenantIntelligenceUnavailableData"},"description":"Části, které v odpovědi nejsou, každá s důvodem."}},"required":["brandVoice","product","competitors","customers","strategies","seo","adsPerformance","facts","unavailable"],"title":"TenantIntelligenceSummaryData"},"TenantIntelligenceUnavailableData":{"type":"object","properties":{"area":{"$ref":"#/components/schemas/TenantIntelligenceSummaryArea","description":"Část, která chybí."},"reason":{"$ref":"#/components/schemas/TenantIntelligenceUnavailableReason","description":"Proč chybí: not_requested (nechtěl jsi ji), missing_scope (klíči chybí právo), module_disabled (tvůj tarif ji nemá), forbidden (tvoje role ji nesmí vidět) nebo empty (zatím tam nic není)."}},"required":["area","reason"],"title":"TenantIntelligenceUnavailableData"},"TenantIntelligenceUnavailableReason":{"type":"string","enum":["not_requested","missing_scope","module_disabled","forbidden","empty"],"title":"TenantIntelligenceUnavailableReason"},"TenantKeywordOpportunityData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"keyword":{"type":"string"},"searchVolume":{"type":"integer"},"isVolumeUnknown":{"type":"boolean"},"cpcLow":{"type":"number"},"cpcHigh":{"type":"number"},"currencyCode":{"type":"string"},"competitionIndex":{"type":"integer"},"intent":{"type":["string","null"]},"difficultyEstimate":{"type":"number"},"priorityScore":{"type":"number"},"priorityRank":{"type":"integer"},"priceBand":{"type":["string","null"]},"source":{"type":["string","null"]},"cluster":{"type":["string","null"]},"isGap":{"type":"boolean"},"isRecommended":{"type":"boolean"},"rationale":{"type":["string","null"]},"analyzedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"isCpcUnknown":{"type":"boolean"},"isCompetitionUnknown":{"type":"boolean"}},"required":["id","tenantId","derivedFromAnalysisId","createdBy","keyword","searchVolume","isVolumeUnknown","cpcLow","cpcHigh","currencyCode","competitionIndex","intent","difficultyEstimate","priorityScore","priorityRank","priceBand","source","cluster","isGap","isRecommended","rationale","analyzedAt","createdAt","updatedAt","isCpcUnknown","isCompetitionUnknown"],"title":"TenantKeywordOpportunityData"},"TenantLeadScoringProfileOutputData":{"type":"object","properties":{"signalDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/SignalDefinitionData"},"description":"Signály, které Fusio hledá, když hodnotí lead."},"idealLead":{"type":["string","null"],"description":"Tvůj ideální lead slovy."},"disqualifiers":{"type":["string","null"],"description":"Co dělá lead nevhodným."}},"required":["signalDefinitions","idealLead","disqualifiers"],"title":"TenantLeadScoringProfileOutputData"},"TenantMascotFriendOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]},"friendMascotId":{"type":["integer","null"]},"file":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]}},"required":["id","name","description","friendMascotId","file"],"title":"TenantMascotFriendOutputData"},"TenantMascotOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","description":"Jméno maskota."},"description":{"type":["string","null"],"description":"Jak maskot vypadá."},"personality":{"type":["string","null"],"description":"Jak se maskot chová."},"file":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}],"description":"Obrázek maskota."},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/TenantMascotProfileOutputData"},"description":"Presety stylu, které maskota používají."},"places":{"type":"array","items":{"$ref":"#/components/schemas/TenantMascotPlaceOutputData"},"description":"Místa, kde se maskot objevuje."},"friends":{"type":"array","items":{"$ref":"#/components/schemas/TenantMascotFriendOutputData"},"description":"Kamarádi maskota. friendMascotId je vyplněné, když je kamarád jiný tvůj maskot."},"createdAt":{"type":["string","null"]}},"required":["id","name","description","personality","file","profiles","places","friends","createdAt"],"title":"TenantMascotOutputData"},"TenantMascotPlaceOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":["string","null"]}},"required":["id","name","description"],"title":"TenantMascotPlaceOutputData"},"TenantMascotProfileOutputData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"title":"TenantMascotProfileOutputData"},"TenantOAuthPlatformStatus":{"type":"string","enum":["active","expired","refreshable","reconnect_required"],"title":"TenantOAuthPlatformStatus"},"TenantProductData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"leadId":{"type":["integer","null"],"description":"Lead, ke kterému profil produktu patří, když popisuje lead a ne tvou firmu. Tady je null."},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"name":{"type":"string"},"oneLiner":{"type":["string","null"]},"description":{"type":["string","null"]},"productType":{"type":["string","null"]},"customerType":{"type":"string"},"businessModel":{"type":["string","null"]},"pricingSummary":{"type":["string","null"]},"pricingRationale":{"type":["string","null"]},"primaryUseCase":{"type":["string","null"]},"coreProblem":{"type":["string","null"]},"costOfInaction":{"type":["string","null"]},"emotionalTension":{"type":["string","null"]},"howWeSolveDifferently":{"type":["string","null"]},"whyBetter":{"type":["string","null"]},"antiPersona":{"type":["string","null"]},"businessGoal":{"type":["string","null"]},"conversionAction":{"type":["string","null"]},"logoIconUrl":{"type":["string","null"]},"logoFullUrl":{"type":["string","null"]},"brandColors":{"$ref":"#/components/schemas/BrandColorsData"},"brandKeywords":{"type":"array","items":{"type":"string"}},"targetCompanies":{"anyOf":[{"$ref":"#/components/schemas/TargetCompaniesData"},{"type":"null"}]},"targetIndustries":{"type":"array","items":{"$ref":"#/components/schemas/NaceCodeData"},"description":"Kódy oborů firem, kterým prodáváš, s jejich názvy."},"targetDecisionMakers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DecisionMakersData"}},"targetMarkets":{"anyOf":[{"$ref":"#/components/schemas/TargetMarketsData"},{"type":"null"}]},"jobsToBeDone":{"type":["array","null"],"items":{"$ref":"#/components/schemas/JobsToBeDoneData"}},"useCaseScenarios":{"type":"array","items":{"type":"string"}},"alternativesFallingShort":{"type":["array","null"],"items":{"$ref":"#/components/schemas/AlternativesData"}},"keyDifferentiators":{"type":"array","items":{"type":"string"}},"objections":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ObjectionsData"}},"switchingDynamics":{"anyOf":[{"$ref":"#/components/schemas/SwitchingDynamicsData"},{"type":"null"}]},"customerLanguageProblem":{"type":"array","items":{"type":"string"}},"customerLanguageSolution":{"type":"array","items":{"type":"string"}},"wordsToUse":{"type":"array","items":{"type":"string"}},"wordsToAvoid":{"type":"array","items":{"type":"string"}},"glossary":{"type":["array","null"],"items":{"$ref":"#/components/schemas/GlossaryData"}},"proofMetrics":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ProofMetricsData"}},"notableCustomers":{"type":"array","items":{"type":"string"}},"testimonials":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TestimonialsData"}},"valueThemes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ValueThemesData"}},"naceCodes":{"type":"array","items":{"$ref":"#/components/schemas/NaceCodeData"},"description":"Kódy tvého oboru s jejich názvy."},"naceCodeSource":{"type":["string","null"],"description":"Kdo vybral kódy oboru: ai nebo manual (ty)."},"googleAdsCategories":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsCategoryData"},"description":"Kategorie Google Ads, které se k tvému produktu hodí."},"analyzedAt":{"type":["string","null"],"description":"Kdy produkt naposledy vyplnila analýza webu."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","leadId","derivedFromAnalysisId","createdBy","name","oneLiner","description","productType","customerType","businessModel","pricingSummary","pricingRationale","primaryUseCase","coreProblem","costOfInaction","emotionalTension","howWeSolveDifferently","whyBetter","antiPersona","businessGoal","conversionAction","logoIconUrl","logoFullUrl","brandColors","brandKeywords","targetCompanies","targetIndustries","targetDecisionMakers","targetMarkets","jobsToBeDone","useCaseScenarios","alternativesFallingShort","keyDifferentiators","objections","switchingDynamics","customerLanguageProblem","customerLanguageSolution","wordsToUse","wordsToAvoid","glossary","proofMetrics","notableCustomers","testimonials","valueThemes","naceCodes","naceCodeSource","googleAdsCategories","analyzedAt","createdAt","updatedAt"],"title":"TenantProductData"},"TenantProductType":{"type":"string","enum":["saas","marketplace","ecommerce","service","physical_product","mobile_app","agency","other"],"title":"TenantProductType"},"TenantSeoAuditAdCreativeData":{"type":"object","properties":{"creativeId":{"type":"string"},"format":{"type":["string","null"]},"url":{"type":["string","null"]},"previewImageUrl":{"type":["string","null"]},"previewImageWidth":{"type":["integer","null"]},"previewImageHeight":{"type":["integer","null"]},"previewUrl":{"type":["string","null"]},"firstShown":{"type":["string","null"]},"lastShown":{"type":["string","null"]}},"required":["creativeId","format","url","previewImageUrl","previewImageWidth","previewImageHeight","previewUrl","firstShown","lastShown"],"title":"TenantSeoAuditAdCreativeData"},"TenantSeoAuditAdvertiserData":{"type":"object","properties":{"advertiserId":{"type":"string"},"name":{"type":["string","null"]},"isVerified":{"type":["boolean","null"]},"approxAdsCount":{"type":["integer","null"]},"creatives":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditAdCreativeData"}}},"required":["advertiserId","name","isVerified","approxAdsCount","creatives"],"title":"TenantSeoAuditAdvertiserData"},"TenantSeoAuditCompetitorData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"websiteUrl":{"type":["string","null"]},"competitorType":{"type":["string","null"]},"positioningAngle":{"type":["string","null"]},"summary":{"type":["string","null"]},"theirAdvantage":{"type":["string","null"]},"ourAdvantage":{"type":["string","null"]},"strengths":{"type":"array","items":{"type":"string"}},"weaknesses":{"type":"array","items":{"type":"string"}},"estimatedDomainAuthority":{"type":["integer","null"]},"seoMove":{"type":["string","null"]},"keywordOpportunityIds":{"type":"array","items":{"type":"integer"}}},"required":["id","name","websiteUrl","competitorType","positioningAngle","summary","theirAdvantage","ourAdvantage","strengths","weaknesses","estimatedDomainAuthority","seoMove","keywordOpportunityIds"],"title":"TenantSeoAuditCompetitorData"},"TenantSeoAuditData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"tenantProductName":{"type":["string","null"],"description":"Název produktu, o kterém audit je."},"derivedFromAnalysisId":{"type":["integer","null"]},"websiteUrl":{"type":["string","null"]},"createdBy":{"type":["integer","null"]},"overallHealth":{"type":["string","null"],"description":"Jak zdravé je tvoje SEO, jedním slovem."},"summary":{"type":["string","null"],"description":"Co audit našel, pár větami."},"findings":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditFindingData"},"description":"Problémy, které audit našel, každý s opravou."},"currentKeywordCoverage":{"type":"array","items":{"type":"string"}},"intentCoverage":{"type":["object","null"],"additionalProperties":{"type":"integer"}},"rawSources":{"type":"array","items":{"type":"string"}},"analyzedAt":{"type":["string","null"],"description":"Kdy byl audit hotový."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"searchResearch":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoSearchResearchData"},{"type":"null"}]},"recommendations":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditRecommendationsData"},{"type":"null"}],"description":"Co dělat: hledaná slova, na která mířit a kterým se vyhnout, sady klíčových slov pro Google Ads a tahy proti konkurenci."},"visibility":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditVisibilityData"},{"type":"null"}],"description":"Jak jsi ty a tvoji konkurenti vidět v Googlu."},"competitorPattern":{"type":["string","null"]},"markets":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"},"description":"Země a jazyky, které audit kontroluje."},"researchCountryCode":{"type":["string","null"],"description":"Země, kterou audit zkoumal jako první."},"researchCountrySource":{"anyOf":[{"$ref":"#/components/schemas/ResearchCountrySource"},{"type":"null"}],"description":"Odkud se ta země vzala: target_markets, registered_address, business_register nebo domain."}},"required":["id","tenantId","tenantProductId","tenantProductName","derivedFromAnalysisId","websiteUrl","createdBy","overallHealth","summary","findings","currentKeywordCoverage","intentCoverage","rawSources","analyzedAt","createdAt","updatedAt","searchResearch","recommendations","visibility","competitorPattern","markets","researchCountryCode","researchCountrySource"],"title":"TenantSeoAuditData"},"TenantSeoAuditDetailData":{"type":"object","properties":{"audit":{"$ref":"#/components/schemas/TenantSeoAuditData","description":"Audit."},"keywordOpportunities":{"type":"array","items":{"$ref":"#/components/schemas/TenantKeywordOpportunityData"},"description":"Hledaná slova, kde bys mohl získat víc návštěvníků, nejlepší první."},"competitors":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditCompetitorData"},"description":"Tvoji konkurenti, jak jsou vidět ve vyhledávání."},"googleAdsSearchCampaign":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditGoogleAdsSearchCampaignData"},{"type":"null"}],"description":"Kampaň Google Ads vytvořená z tohohle auditu, nebo null."},"markets":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditMarketData"},"description":"Země a jazyky, které audit kontroluje."}},"required":["audit","keywordOpportunities","competitors","googleAdsSearchCampaign","markets"],"title":"TenantSeoAuditDetailData"},"TenantSeoAuditFindingData":{"type":"object","properties":{"area":{"type":"string"},"issue":{"type":"string"},"impact":{"type":"string"},"evidence":{"type":["string","null"]},"fix":{"type":["string","null"]},"priority":{"type":["integer","null"],"description":"Číslo zjištění. Čím nižší, tím důležitější. Použij ho v seo-audits.findings.update."},"citations":{"type":"array","items":{}},"pageUrl":{"type":["string","null"]},"proposedUrls":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string"}},"beforeAfter":{"type":"array","items":{}},"horizon":{"type":["string","null"]},"clusters":{"type":"array","items":{"type":"string"}},"keywords":{"type":"array","items":{"type":"string"}},"articles":{"type":"array","items":{}},"locationNote":{"type":["string","null"]},"googleAdsSearchNote":{"type":["string","null"]},"resolvedAt":{"type":["string","null"],"description":"Kdy jsi ho označil jako opravené. null, dokud je otevřené."}},"required":["area","issue","impact","evidence","fix","priority","citations","pageUrl","proposedUrls","steps","beforeAfter","horizon","clusters","keywords","articles","locationNote","googleAdsSearchNote","resolvedAt"],"title":"TenantSeoAuditFindingData"},"TenantSeoAuditGoogleAdsSearchCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"title":"TenantSeoAuditGoogleAdsSearchCampaignData"},"TenantSeoAuditKeywordGapData":{"type":"object","properties":{"keyword":{"type":"string"},"searchVolume":{"type":["integer","null"]},"cpcUsd":{"type":["number","null"]},"domains":{"type":"array","items":{"type":"string"}}},"required":["keyword","searchVolume","cpcUsd","domains"],"title":"TenantSeoAuditKeywordGapData"},"TenantSeoAuditMarketData":{"type":"object","properties":{"id":{"type":"integer"},"seoAuditId":{"type":["integer","null"]},"countryCode":{"type":["string","null"],"description":"Země jako dvě písmena, nebo null, když trh ještě zemi nemá."},"countryName":{"type":["string","null"]},"languageId":{"type":"integer"},"languageSlug":{"type":"string","description":"Jazyk jako krátký kód, třeba cs."},"languageName":{"type":"string"},"isPrimary":{"type":"boolean","description":"true u trhu, jehož čísla vidíš jako první."},"isBase":{"type":"boolean","description":"true u prvního trhu, který vznikl se samotným auditem."},"status":{"$ref":"#/components/schemas/SeoAuditMarketStatus","description":"running (AI trh kontroluje), completed nebo failed."},"failureReason":{"type":["string","null"],"description":"Proč kontrola selhala."},"summary":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditMarketSummaryData"},{"type":"null"}],"description":"Krátká čísla trhu: hledání, ceny za proklik, obtížnost a kolik tvých stránek je v top 10."}},"required":["id","seoAuditId","countryCode","countryName","languageId","languageSlug","languageName","isPrimary","isBase","status","failureReason","summary"],"title":"TenantSeoAuditMarketData"},"TenantSeoAuditMarketSummaryData":{"type":"object","properties":{"searchVolume":{"type":["integer","null"]},"cpcLow":{"type":["number","null"]},"cpcHigh":{"type":["number","null"]},"currencyCode":{"type":["string","null"]},"difficulty":{"type":["integer","null"]},"top10Count":{"type":["integer","null"]}},"required":["searchVolume","cpcLow","cpcHigh","currencyCode","difficulty","top10Count"],"title":"TenantSeoAuditMarketSummaryData"},"TenantSeoAuditOverviewQuickFixData":{"type":"object","properties":{"seoAuditId":{"type":"integer"},"priority":{"type":"integer"},"issue":{"type":"string"},"impact":{"type":"string"},"pageUrl":{"type":["string","null"]}},"required":["seoAuditId","priority","issue","impact","pageUrl"],"title":"TenantSeoAuditOverviewQuickFixData"},"TenantSeoAuditOverviewRivalData":{"type":"object","properties":{"domain":{"type":["string","null"]},"isOwn":{"type":"boolean"},"visibilityShare":{"type":"number"}},"required":["domain","isOwn","visibilityShare"],"title":"TenantSeoAuditOverviewRivalData"},"TenantSeoAuditPaidDomainData":{"type":"object","properties":{"competitorId":{"type":["integer","null"]},"domain":{"type":"string"},"runsAds":{"type":["boolean","null"]},"summaryStatus":{"$ref":"#/components/schemas/SeoAuditPaidStatus"},"keywordsStatus":{"$ref":"#/components/schemas/SeoAuditPaidStatus"},"adsStatus":{"$ref":"#/components/schemas/SeoAuditPaidStatus"},"paidKeywordCount":{"type":["integer","null"]},"estimatedTraffic":{"type":["number","null"]},"estimatedTrafficCostUsd":{"type":["number","null"]},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditPaidKeywordData"}},"advertisers":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditAdvertiserData"}}},"required":["competitorId","domain","runsAds","summaryStatus","keywordsStatus","adsStatus","paidKeywordCount","estimatedTraffic","estimatedTrafficCostUsd","keywords","advertisers"],"title":"TenantSeoAuditPaidDomainData"},"TenantSeoAuditPaidKeywordData":{"type":"object","properties":{"keyword":{"type":"string"},"position":{"type":"integer"},"url":{"type":["string","null"]},"searchVolume":{"type":["integer","null"]},"cpcUsd":{"type":["number","null"]}},"required":["keyword","position","url","searchVolume","cpcUsd"],"title":"TenantSeoAuditPaidKeywordData"},"TenantSeoAuditPaidVisibilityData":{"type":"object","properties":{"own":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditPaidDomainData"},{"type":"null"}]},"competitors":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditPaidDomainData"}},"keywordGapStatus":{"$ref":"#/components/schemas/SeoAuditPaidStatus"},"keywordGap":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoAuditKeywordGapData"}}},"required":["own","competitors","keywordGapStatus","keywordGap"],"title":"TenantSeoAuditPaidVisibilityData"},"TenantSeoAuditRecommendationsData":{"type":"object","properties":{"targets":{"type":"array","items":{}},"avoid":{"type":"array","items":{}},"googleAdsSearchKeywordSets":{"type":"array","items":{}},"accountNegativeKeywords":{"type":"array","items":{"type":"string"}},"competitorMoves":{"type":"array","items":{}}},"required":["targets","avoid","googleAdsSearchKeywordSets","accountNegativeKeywords","competitorMoves"],"title":"TenantSeoAuditRecommendationsData"},"TenantSeoAuditVisibilityData":{"type":"object","properties":{"own":{},"competitors":{"type":"array","items":{}},"rankedKeywords":{"type":"array","items":{}},"keywordMetrics":{"type":"array","items":{}},"serps":{"type":"array","items":{}},"peopleAlsoAsk":{"type":"array","items":{}},"relatedSearches":{"type":"array","items":{"type":"string"}},"onPage":{"type":"array","items":{}},"serpRivals":{"type":"array","items":{}},"paid":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoAuditPaidVisibilityData"},{"type":"null"}]}},"required":["own","competitors","rankedKeywords","keywordMetrics","serps","peopleAlsoAsk","relatedSearches","onPage","serpRivals","paid"],"title":"TenantSeoAuditVisibilityData"},"TenantSeoSearchCitationData":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"quote":{"type":["string","null"]},"dataPath":{"type":["string","null"]},"sourceId":{"type":"string"},"observedAt":{"type":["string","null"]},"sourceType":{"type":"string"},"sourceRecordJson":{"type":["string","null"]}},"required":["url","label","quote","dataPath","sourceId","observedAt","sourceType","sourceRecordJson"],"title":"TenantSeoSearchCitationData"},"TenantSeoSearchCoverageData":{"type":"object","properties":{"device":{"type":["string","null"]},"status":{"type":"string"},"provider":{"type":"string"},"pageCount":{"type":"integer"},"serpCount":{"type":"integer"},"observedAt":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"limitations":{"type":"array","items":{"type":"string"}},"onPageCount":{"type":"integer"},"keywordCount":{"type":"integer"},"languageCode":{"type":["string","null"]},"locationCode":{"type":["integer","null"]},"rankingCount":{"type":"integer"},"chargedCostUsd":{"type":["number","null"]},"availableSerpCount":{"type":"integer"},"omittedKeywordCount":{"type":"integer"},"availableOnPageCount":{"type":"integer"},"unavailableSerpCount":{"type":"integer"},"requestedKeywordCount":{"type":"integer"},"unavailableOnPageCount":{"type":"integer"}},"required":["device","status","provider","pageCount","serpCount","observedAt","countryCode","limitations","onPageCount","keywordCount","languageCode","locationCode","rankingCount","chargedCostUsd","availableSerpCount","omittedKeywordCount","availableOnPageCount","unavailableSerpCount","requestedKeywordCount","unavailableOnPageCount"],"title":"TenantSeoSearchCoverageData"},"TenantSeoSearchMetricsData":{"type":"object","properties":{"cpcUsd":{"type":["number","null"]},"searchVolume":{"type":["integer","null"]},"keywordUpdatedAt":{"type":["string","null"]},"organicDifficulty":{"type":["integer","null"]}},"required":["cpcUsd","searchVolume","keywordUpdatedAt","organicDifficulty"],"title":"TenantSeoSearchMetricsData"},"TenantSeoSearchObservationData":{"type":"object","properties":{"url":{"type":["string","null"]},"kind":{"type":"string"},"rank":{"type":["integer","null"]},"query":{"type":"string"},"stale":{"type":["boolean","null"]},"observedAt":{"type":["string","null"]}},"required":["url","kind","rank","query","stale","observedAt"],"title":"TenantSeoSearchObservationData"},"TenantSeoSearchOpportunityData":{"type":"object","properties":{"action":{"type":"string"},"intent":{"type":"string"},"cluster":{"type":"string"},"keyword":{"type":"string"},"metrics":{"anyOf":[{"$ref":"#/components/schemas/TenantSeoSearchMetricsData"},{"type":"null"}]},"citations":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoSearchCitationData"}},"rationale":{"type":"string"},"relevance":{"type":"number"},"observations":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoSearchObservationData"}},"priorityRank":{"type":"integer"},"targetPageUrl":{"type":["string","null"]}},"required":["action","intent","cluster","keyword","metrics","citations","rationale","relevance","observations","priorityRank","targetPageUrl"],"title":"TenantSeoSearchOpportunityData"},"TenantSeoSearchResearchData":{"type":"object","properties":{"opportunities":{"type":"array","items":{"$ref":"#/components/schemas/TenantSeoSearchOpportunityData"}},"coverage":{"$ref":"#/components/schemas/TenantSeoSearchCoverageData"}},"required":["opportunities","coverage"],"title":"TenantSeoSearchResearchData"},"TenantStrategy.SuggestedCtaData":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"}},"required":["label","description"],"title":"TenantStrategy.SuggestedCtaData"},"TenantStrategyBudgetLevel":{"type":"string","enum":["free","low","medium","high"],"title":"TenantStrategyBudgetLevel"},"TenantStrategyCategory":{"type":"string","enum":["content","social","email","paid_ads","web_seo","conversion","growth"],"title":"TenantStrategyCategory"},"TenantStrategyData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantProductId":{"type":["integer","null"]},"derivedFromAnalysisId":{"type":["integer","null"]},"createdBy":{"type":["integer","null"]},"name":{"type":"string"},"ideaSummary":{"type":"string"},"category":{"type":"string"},"whyItFits":{"type":"string"},"expectedOutcome":{"type":"string"},"stage":{"type":"string"},"budgetLevel":{"type":"string"},"timeline":{"type":"string"},"status":{"type":"string"},"priorityScore":{"type":"integer"},"sourceIdeaNumber":{"type":["integer","null"]},"sourceIdeaSlug":{"type":["string","null"]},"targetedPersonaIds":{"type":"array","items":{"type":"integer"}},"targetedCompetitorIds":{"type":"array","items":{"type":"integer"}},"implementationSteps":{"type":["array","null"],"items":{"$ref":"#/components/schemas/StrategyStepsData"}},"resourcesNeeded":{"anyOf":[{"$ref":"#/components/schemas/StrategyResourcesData"},{"type":"null"}]},"implementationType":{"type":"string"},"phase":{"type":"string"},"integrations":{"type":["array","null"],"items":{"$ref":"#/components/schemas/StrategyIntegrationData"}},"leadTemperature":{"type":"array","items":{"type":"string"}},"askRatio":{"type":["string","null"]},"sources":{"anyOf":[{"$ref":"#/components/schemas/StrategySourcesData"},{"type":"null"}]},"suggestedCtas":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TenantStrategy.SuggestedCtaData"}},"kpiTargets":{"type":["object","null"],"additionalProperties":{"type":"number"}},"prerequisites":{"type":"array","items":{"type":"string"}},"riskLevel":{"type":["string","null"]},"iceImpact":{"type":["integer","null"]},"iceConfidence":{"type":["integer","null"]},"iceEase":{"type":["integer","null"]},"effectiveStatus":{"type":"string"},"linkedCampaignsCount":{"type":"integer"},"linkedCampaigns":{"type":"array","items":{"$ref":"#/components/schemas/LinkedCampaignSummaryData"}},"analyzedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id","tenantId","tenantProductId","derivedFromAnalysisId","createdBy","name","ideaSummary","category","whyItFits","expectedOutcome","stage","budgetLevel","timeline","status","priorityScore","sourceIdeaNumber","sourceIdeaSlug","targetedPersonaIds","targetedCompetitorIds","implementationSteps","resourcesNeeded","implementationType","phase","integrations","leadTemperature","askRatio","sources","suggestedCtas","kpiTargets","prerequisites","riskLevel","iceImpact","iceConfidence","iceEase","effectiveStatus","linkedCampaignsCount","linkedCampaigns","analyzedAt","createdAt","updatedAt"],"title":"TenantStrategyData"},"TenantStrategyImplementationType":{"type":"string","enum":["campaign_implementable","advisory_only","setup_task"],"title":"TenantStrategyImplementationType"},"TenantStrategyPhase":{"type":"string","enum":["awareness","acquisition","nurture","conversion","retention"],"title":"TenantStrategyPhase"},"TenantStrategyStage":{"type":"string","enum":["pre_launch","early","growth","scale"],"title":"TenantStrategyStage"},"TenantStrategyStatus":{"type":"string","enum":["proposed","planned","in_progress","done","archived"],"title":"TenantStrategyStatus"},"TenantStrategyTimeline":{"type":"string","enum":["quick_wins","medium_term","long_term"],"title":"TenantStrategyTimeline"},"TenantTeamSize":{"type":"string","enum":["1","2-10","11-50","51-100","101-250","250+"],"title":"TenantTeamSize"},"TenantTrackingEventFieldType":{"type":"string","enum":["string","number","boolean","enum","date"],"title":"TenantTrackingEventFieldType"},"TenantType":{"type":"string","enum":["company","individual"],"title":"TenantType"},"TestimonialsData":{"type":"object","properties":{"quote":{"type":"string"},"attribution":{"type":"string"}},"required":["quote","attribution"],"title":"TestimonialsData"},"TimingData":{"type":"object","properties":{"start":{"type":["string","null"],"format":"date-time"},"end":{"type":["string","null"],"format":"date-time"},"inferredDurationDays":{"type":["integer","null"]}},"required":["start","end","inferredDurationDays"],"title":"TimingData"},"TopicFrequency":{"type":"string","enum":["24h","7d","14d","30d","none"],"title":"TopicFrequency"},"TopicState":{"type":"string","enum":["drafted","approved","rejected","active","paused"],"title":"TopicState"},"TopicTimeRange":{"type":"string","enum":["1d","3d","7d","14d","30d"],"title":"TopicTimeRange"},"TopicType":{"type":"string","enum":["news","evergreen"],"title":"TopicType"},"TrackableType":{"type":"string","enum":["email_campaign","email_delivery","article_campaign","social_post_campaign","ad_campaign","campaign_cta"],"title":"TrackableType"},"TrackingEventFieldBindingKind":{"type":"string","enum":["none","native","custom","create_custom"],"title":"TrackingEventFieldBindingKind"},"UnresolvedEmailPlaceholderData":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"title":"UnresolvedEmailPlaceholderData"},"UnsubscriptionReason":{"type":"string","enum":["spam_complaint","too_frequent","no_longer_relevant","never_signed_up","inappropriate_content","other"],"title":"UnsubscriptionReason"},"UpdateAdAccountData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo reklamního účtu ve Fusiu."},"tenantOAuthPlatformId":{"type":"integer","description":"Číslo připojení, ke kterému patří."},"externalId":{"type":"string","description":"Číslo účtu v reklamní síti."},"name":{"type":"string","description":"Název účtu."},"isComplete":{"type":"boolean","description":"true, když je nastavené všechno, co reklamy potřebují."},"invitationStatus":{"$ref":"#/components/schemas/AdAccountInvitationStatus","description":"Jak jde pozvánka k účtu: required, pending, declined, expired nebo accepted."},"billingStatus":{"$ref":"#/components/schemas/AdAccountBillingStatus","description":"Jak je nastavené placení: required, pending, approved_held, approved nebo cancelled."},"currency":{"type":["string","null"],"description":"Měna účtu, nebo null."},"timezone":{"type":["string","null"],"description":"Časová zóna účtu, nebo null."},"metadata":{"description":"Další údaje z reklamní sítě, nebo null."},"pageExternalId":{"type":["string","null"],"description":"Stránka, za kterou reklamy běží, nebo null."},"pageName":{"type":["string","null"],"description":"Název té stránky, nebo null."},"paymentMethodLabel":{"type":["string","null"],"description":"Platební metoda, třeba konec karty, nebo null."},"paymentStatus":{"anyOf":[{"$ref":"#/components/schemas/AdAccountPaymentStatus"},{"type":"null"}],"description":"valid, missing nebo declined, nebo null."},"pixelExternalId":{"type":["string","null"],"description":"Pixel, který počítá výsledky na tvém webu, nebo null."},"instagramUserId":{"type":["string","null"],"description":"Instagramový účet, ze kterého reklamy běží, nebo null."},"instagramUsername":{"type":["string","null"],"description":"Uživatelské jméno toho instagramového účtu, nebo null."},"dsaBeneficiary":{"type":["string","null"],"description":"Kdo z reklam těží, jak to žádá evropský zákon o digitálních službách, nebo null."},"dsaPayor":{"type":["string","null"],"description":"Kdo reklamy platí, jak to žádá evropský zákon o digitálních službách, nebo null."},"accountStatus":{"anyOf":[{"$ref":"#/components/schemas/AdAccountStatus"},{"type":"null"}],"description":"active, disabled, unsettled, pending_review nebo closed, nebo null."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio účet naposledy načetlo, nebo null."},"lastSyncError":{"type":["string","null"],"description":"Proč poslední načtení selhalo, nebo null."},"createdAt":{"type":["string","null"],"description":"Kdy byl přidán."},"updatedAt":{"type":["string","null"],"description":"Kdy se naposledy změnil."},"deletedAt":{"type":["string","null"],"description":"Kdy byl odebrán, nebo null."}},"title":"UpdateAdAccountData"},"UpdateAdData":{"type":"object","properties":{"id":{"type":"integer","description":"Číslo reklamy."},"userId":{"type":"integer"},"tenantId":{"type":"integer"},"tenantOAuthPlatformId":{"type":"integer"},"languageId":{"type":"integer"},"type":{"$ref":"#/components/schemas/AdType","description":"Cíl reklamy, třeba website_traffic nebo post_engagement."},"body":{"type":"string","description":"Hlavní text reklamy."},"headline":{"type":"string","description":"Nadpis reklamy."},"cta":{"$ref":"#/components/schemas/AdCta","description":"Tlačítko reklamy."},"targeting":{},"budget":{"type":"number","description":"Kolik smí reklama utratit."},"state":{"$ref":"#/components/schemas/AdState","description":"Kde reklama je: drafted, rejected, approved, published, scheduled nebo failed."},"rejectReason":{"type":["string","null"],"description":"Proč byla reklama zamítnutá, nebo null."},"name":{"type":"string","description":"Název reklamy."},"format":{"anyOf":[{"$ref":"#/components/schemas/AdFormat"},{"type":"null"}],"description":"Vzhled reklamy: single_image, nebo null."},"network":{"anyOf":[{"$ref":"#/components/schemas/AdCampaignPlatform"},{"type":"null"}],"description":"Reklamní síť, třeba google nebo linkedin, nebo null."},"tenantOAuthPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateTenantOAuthPlatformData"},{"type":"null"}],"description":"Tvoje připojení k reklamní síti, nebo null."},"publication":{"anyOf":[{"$ref":"#/components/schemas/AdPublicationData"},{"type":"null"}],"description":"Kdy a jak reklama vyjde, nebo null."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"issue":{"anyOf":[{"$ref":"#/components/schemas/AdIssueData"},{"type":"null"}],"description":"Problém reklamy, nebo null, když žádný není."},"adAccountId":{"type":["integer","null"],"description":"Číslo reklamního účtu ve Fusiu, nebo null."},"finalUrl":{"type":["string","null"],"description":"Stránka, kam reklama vede, nebo null."},"imageFileId":{"type":["integer","null"],"description":"Číslo obrázku v Souborech, nebo null."},"imageUrl":{"type":["string","null"],"description":"Adresa obrázku, nebo null."},"targetingCountries":{"type":"array","items":{"type":"string"},"description":"Země, kde se reklama ukazuje."},"targetingInterests":{"type":"array","items":{"type":"string"},"description":"Zájmy lidí, kteří ji mají vidět."},"targetingAgeMin":{"type":["integer","null"],"description":"Nejnižší věk, nebo null."},"targetingAgeMax":{"type":["integer","null"],"description":"Nejvyšší věk, nebo null."},"budgetType":{"$ref":"#/components/schemas/AdBudgetType","description":"daily nebo lifetime."},"startsAt":{"type":["string","null"],"description":"Kdy reklama začne, nebo null."},"endsAt":{"type":["string","null"],"description":"Kdy reklama skončí, nebo null."},"externalId":{"type":["string","null"],"description":"Číslo reklamy v reklamní síti, nebo null, dokud tam není."},"isObjectiveLocked":{"type":"boolean","description":"true, když reklama už v síti existuje, takže její cíl a typ rozpočtu nejde změnit."},"publishError":{"type":["string","null"],"description":"Proč publikování selhalo, nebo null."},"publishedAt":{"type":["string","null"],"description":"Kdy reklama vyšla, nebo null."},"lastSyncedAt":{"type":["string","null"],"description":"Kdy Fusio reklamu v síti naposledy poslalo nebo načetlo, nebo null."},"pendingNetworkChange":{"$ref":"#/components/schemas/AdPendingNetworkChange","description":"Co čeká na odeslání do reklamní sítě: none, settings nebo creative (texty a obrázek)."},"last30Days":{"anyOf":[{"$ref":"#/components/schemas/AdMetricTotalsData"},{"type":"null"}],"description":"Čísla za posledních 30 dní, nebo null."}},"title":"UpdateAdData"},"UpdateAdPlatformData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"}},"title":"UpdateAdPlatformData"},"UpdateArticleCategoryData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"parentId":{"type":["integer","null"]},"name":{"type":"string"},"slug":{"type":"string"},"translation":{"anyOf":[{"$ref":"#/components/schemas/UpdateArticleCategoryTranslationData"},{"type":"null"}]},"availableLocales":{"type":"array","items":{"type":"string"},"description":"Jazyky, ve kterých má kategorie texty."},"color":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryColor"},{"type":"null"}]},"icon":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryIcon"},{"type":"null"}]},"count":{"type":["integer","null"]},"averageReadTime":{"type":["integer","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"children":{"type":"array","items":{"$ref":"#/components/schemas/UpdateArticleCategoryData"},"description":"Kategorie přímo pod touhle."},"translationInput":{"anyOf":[{"$ref":"#/components/schemas/ArticleCategoryTranslationInputData"},{"type":"null"}]}},"title":"UpdateArticleCategoryData"},"UpdateArticleCategoryTranslationData":{"type":"object","properties":{"id":{"type":"integer"},"articleCategoryId":{"type":"integer"},"locale":{"type":"string"},"isPrimary":{"type":["boolean","null"]},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"breadcrumbTitle":{"type":["string","null"]},"metaTitle":{"type":["string","null"]},"metaDescription":{"type":["string","null"]},"canonicalUrl":{"type":["string","null"]},"ogTitle":{"type":["string","null"]},"ogDescription":{"type":["string","null"]},"ogImageId":{"type":["integer","null"]},"ogImage":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]}},"title":"UpdateArticleCategoryTranslationData"},"UpdateArticleData":{"type":"object","properties":{"id":{"type":"integer"},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/UpdateCampaignData"},{"type":"null"}]},"translation":{"$ref":"#/components/schemas/UpdateArticleTranslationData","description":"Text článku v jeho hlavním jazyce."},"availableLocales":{"type":"array","items":{"type":"string"}},"alternates":{"type":"array","items":{"$ref":"#/components/schemas/ArticleAlternateData"}},"tenantId":{"type":"integer"},"tenantSequence":{"type":"integer"},"userId":{"type":"integer"},"articleCategoryId":{"type":["integer","null"]},"categorySlug":{"type":["string","null"]},"tenantArticleAuthorId":{"type":["integer","null"]},"author":{"anyOf":[{"$ref":"#/components/schemas/PublicTenantArticleAuthorData"},{"type":"null"}]},"bannerImageId":{"type":["integer","null"]},"unsplashBannerImageUrl":{"type":["string","null"]},"unsplashBannerCredit":{"anyOf":[{"$ref":"#/components/schemas/ArticleBannerCreditData"},{"type":"null"}]},"bannerImage":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]},"articleIntegrationId":{"type":"integer"},"externalReference":{"type":["string","null"]},"tags":{"type":"array","items":{"$ref":"#/components/schemas/UpdateTagData"}},"articleIntegration":{"anyOf":[{"$ref":"#/components/schemas/UpdateArticleIntegrationData"},{"type":"null"}]},"state":{"$ref":"#/components/schemas/ArticleState","description":"Kde článek teď je: drafted, approved, rejected, scheduled, published nebo failed."},"schemaType":{"anyOf":[{"$ref":"#/components/schemas/ArticleSchemaType"},{"type":"null"}]},"seoIndex":{"type":["boolean","null"]},"seoFollow":{"type":["boolean","null"]},"robotsNoarchive":{"type":["boolean","null"]},"robotsNosnippet":{"type":["boolean","null"]},"robotsMaxSnippet":{"type":["integer","null"]},"robotsMaxImagePreview":{"type":["string","null"]},"robotsMaxVideoPreview":{"type":["integer","null"]},"isVisible":{"type":["boolean","null"],"description":"false, když je článek na webu schovaný."},"isCornerstone":{"type":["boolean","null"]},"publishedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"blueprint":{"anyOf":[{"$ref":"#/components/schemas/CampaignSourceBlueprintSummaryData"},{"type":"null"}]},"campaignAsset":{"anyOf":[{"$ref":"#/components/schemas/CampaignAssetSummaryData"},{"type":"null"}]}},"title":"UpdateArticleData"},"UpdateArticleIntegrationData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/ArticleIntegrationType"},"domain":{"type":"string"},"articleUrlTemplate":{"type":["string","null"]},"articleUrlCategoryFallback":{"type":["string","null"]},"articleUrlLocalePatterns":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ArticleUrlLocalePatternData"}},"isPrimary":{"type":"boolean"},"destinationPath":{"type":["string","null"]},"secret":{"type":["string","null"]},"site":{"anyOf":[{"$ref":"#/components/schemas/ArticleSiteSummaryData"},{"type":"null"}]},"siteLeadFormId":{"type":["integer","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"title":"UpdateArticleIntegrationData"},"UpdateArticleTranslationData":{"type":"object","properties":{"id":{"type":"integer"},"articleId":{"type":"integer"},"locale":{"type":"string"},"isPrimary":{"type":["boolean","null"]},"name":{"type":"string"},"content":{"type":"string"},"contentHtml":{"type":"string"},"slug":{"type":"string"},"breadcrumbTitle":{"type":["string","null"]},"metaTitle":{"type":["string","null"]},"metaDescription":{"type":["string","null"]},"primaryFocusKeyword":{"type":["string","null"]},"secondaryKeywords":{"type":["array","null"],"items":{"type":"string"}},"canonicalUrl":{"type":["string","null"]},"ogTitle":{"type":["string","null"]},"ogDescription":{"type":["string","null"]},"ogImageId":{"type":["integer","null"]},"ogImage":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]},"twitterTitle":{"type":["string","null"]},"twitterDescription":{"type":["string","null"]},"twitterImageId":{"type":["integer","null"]},"twitterImage":{"anyOf":[{"$ref":"#/components/schemas/UpdateFileData"},{"type":"null"}]},"wordCount":{"type":["integer","null"]},"readingTime":{"type":["integer","null"]},"summary":{"type":["string","null"]},"summaryHtml":{"type":["string","null"]},"signature":{"type":["string","null"]},"sources":{},"tableOfContents":{}},"title":"UpdateArticleTranslationData"},"UpdateCampaignData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"tenantSequence":{"type":"integer"},"tenantName":{"type":"string"},"userId":{"type":"integer"},"timezone":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"origin":{"$ref":"#/components/schemas/CampaignOrigin"},"mode":{"$ref":"#/components/schemas/CampaignMode"},"audienceWarmth":{"$ref":"#/components/schemas/CampaignAudienceWarmth"},"autonomyLevel":{"$ref":"#/components/schemas/CampaignAutonomyLevel"},"goal":{"$ref":"#/components/schemas/CampaignGoal"},"goalMetricType":{"anyOf":[{"$ref":"#/components/schemas/CampaignGoalMetricType"},{"type":"null"}]},"goalMetricTarget":{"type":["string","number","null"]},"goalMetricLabel":{"type":["string","null"]},"askRatio":{"type":["string","number","null"]},"effectiveAskRatio":{"type":"number","description":"Část obsahu, která vyzývá lidi k akci, po použití výchozí hodnoty."},"contentMix":{"$ref":"#/components/schemas/CampaignContentMixData"},"brief":{"type":["string","null"]},"aiPlan":{"anyOf":[{"$ref":"#/components/schemas/CampaignAiPlanData"},{"type":"null"}]},"aiPlanGenerationStage":{"anyOf":[{"$ref":"#/components/schemas/CampaignAiPlanStage"},{"type":"null"}]},"aiPlanFailureMessage":{"type":["string","null"]},"aiPlanStepOutputs":{},"brandVoiceId":{"type":["integer","null"]},"approvalWindowHours":{"type":["integer","null"]},"approvalTimeoutAction":{"$ref":"#/components/schemas/CampaignApprovalTimeoutAction"},"generationBudgetCredits":{"type":["integer","null"]},"generationSpentCredits":{"type":"integer","description":"Kolik kreditů už Fusio utratilo za psaní obsahu."},"similarityCheckEnabled":{"type":"boolean"},"similarityThreshold":{"type":["string","number","null"]},"similarityAction":{"$ref":"#/components/schemas/CampaignSimilarityAction"},"similarityWindowDays":{"type":"integer"},"status":{"$ref":"#/components/schemas/CampaignStatus","description":"Kde kampaň teď je: draft, approved, scheduled, active, paused, completed, cancelled nebo archived."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]},"startAt":{"type":["string","null"]},"endsOn":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"publishedAt":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"brandVoice":{"anyOf":[{"$ref":"#/components/schemas/BrandVoiceOutputData"},{"type":"null"}]},"sources":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignSourceOutputData"}},"generationSlots":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignGenerationSlotOutputData"}},"alerts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CampaignAlertData"},"description":"Problémy, které bys měl opravit, třeba chybějící účet."},"destinationsCount":{"type":"integer"},"destinations":{},"ctas":{},"leadForms":{},"linkedTrackingEvents":{},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"languageId":{"type":["integer","null"]},"language":{"anyOf":[{"$ref":"#/components/schemas/UpdateLanguageData"},{"type":"null"}]},"conversionActions":{"type":"array","items":{"$ref":"#/components/schemas/CampaignConversionActionData"}},"goalTargets":{"$ref":"#/components/schemas/CampaignGoalTargetsData"},"approvers":{"type":"array","items":{"$ref":"#/components/schemas/CampaignApproverOutputData"}},"standaloneEntity":{"anyOf":[{"$ref":"#/components/schemas/StandaloneCampaignEntityOutputData"},{"type":"null"}]},"slug":{"type":"string"},"derivedFromCampaignId":{"type":["integer","null"]},"canRetryPlan":{"type":"boolean"}},"title":"UpdateCampaignData"},"UpdateCommunicationPreferenceData":{"type":"object","properties":{"id":{"type":"integer"},"hashToken":{"type":"string"},"prefersId":{"type":"integer"},"prefersType":{"anyOf":[{"$ref":"#/components/schemas/CommunicationPreferenceOwnerType"},{"type":"null"}]},"isGloballyUnsubscribed":{"type":"boolean"},"unsubscriptionReason":{"anyOf":[{"$ref":"#/components/schemas/UnsubscriptionReason"},{"type":"null"}]},"unsubscriptionReasonDescription":{"type":["string","null"]},"languageId":{"type":["integer","null"]},"emailFormat":{"$ref":"#/components/schemas/CommunicationPreferenceEmailFormat"},"channelEmailEnabled":{"type":"boolean"},"channelSmsEnabled":{"type":"boolean"},"emailConsentStatus":{"$ref":"#/components/schemas/ConsentStatus"},"smsConsentStatus":{"$ref":"#/components/schemas/ConsentStatus"},"callConsentStatus":{"$ref":"#/components/schemas/ConsentStatus"},"consentUpdatedAt":{"type":["string","null"]},"consentIp":{"type":["string","null"]},"consentUserAgent":{"type":["string","null"]},"consentSource":{"anyOf":[{"$ref":"#/components/schemas/ConsentSource"},{"type":"null"}]},"recipientName":{"type":["string","null"]},"recipientEmail":{"type":["string","null"]},"senderName":{"type":["string","null"]}},"title":"UpdateCommunicationPreferenceData"},"UpdateContactCustomFieldData":{"type":"object","properties":{"id":{"type":"integer"},"contactId":{"type":"integer"},"customField":{"$ref":"#/components/schemas/UpdateCustomFieldData"},"value":{"type":["string","null"]}},"title":"UpdateContactCustomFieldData"},"UpdateContactData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo kontaktu."},"userId":{"type":"integer","description":"Člen, který kontakt přidal nebo naposledy změnil."},"tenantId":{"type":"integer"},"segments":{"type":"array","items":{"$ref":"#/components/schemas/UpdateSegmentData"},"description":"Segmenty, ve kterých kontakt je."},"tags":{"type":"array","items":{"$ref":"#/components/schemas/UpdateTagData"},"description":"Štítky kontaktu."},"contactCustomFields":{"type":"array","items":{"$ref":"#/components/schemas/UpdateContactCustomFieldData"},"description":"Hodnoty tvých vlastních polí."},"communicationPreference":{"anyOf":[{"$ref":"#/components/schemas/UpdateCommunicationPreferenceData"},{"type":"null"}],"description":"Souhlas a kanály, které člověk povolil. null, když ještě nic uložené není."},"lead":{"anyOf":[{"$ref":"#/components/schemas/UpdateLeadData"},{"type":"null"}],"description":"Lead, pro který člověk pracuje. null, když žádný není."},"type":{"$ref":"#/components/schemas/ContactType"},"email":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"name":{"type":["string","null"]},"phone":{"type":["string","null"],"description":"Telefonní číslo, jak ho Fusio uloží, třeba +420601234567."},"position":{"type":["string","null"]},"preferredContactChannel":{"anyOf":[{"$ref":"#/components/schemas/PreferredContactChannel"},{"type":"null"}]},"lastActivityAt":{"type":["string","null"]},"emailVerifiedAt":{"type":["string","null"]}},"title":"UpdateContactData"},"UpdateCrmPlatformData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"}},"title":"UpdateCrmPlatformData"},"UpdateCustomFieldData":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"tenantId":{"type":"integer"},"name":{"type":"string"},"label":{"type":"string"},"description":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/CustomFieldType"},"isRequired":{"type":"boolean"},"isActive":{"type":"boolean"},"isUniqueIdentifier":{"type":"boolean"},"options":{"type":["array","null"],"items":{"$ref":"#/components/schemas/UpdateCustomFieldOptionData"}},"deletedAt":{"type":["string","null"]}},"title":"UpdateCustomFieldData"},"UpdateCustomFieldOptionData":{"type":"object","properties":{"id":{"type":"integer"},"optionLabel":{"type":"string"},"optionValue":{"type":"string"},"isActive":{"type":"boolean"}},"title":"UpdateCustomFieldOptionData"},"UpdateEmailData":{"type":"object","properties":{"id":{"type":"integer"},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/UpdateCampaignData"},{"type":"null"}]},"userId":{"type":"integer"},"tenantId":{"type":"integer"},"tenantSequence":{"type":"integer"},"emailTemplateId":{"type":["integer","null"]},"topicId":{"type":["integer","null"]},"languageId":{"type":"integer"},"name":{"type":"string"},"subject":{"type":"string"},"signatureSource":{"$ref":"#/components/schemas/EmailSignatureSource"},"creatorHasSenderIdentity":{"type":"boolean"},"sendFromTenantDomainEmailId":{"type":["integer","null"]},"replyToTenantDomainEmailId":{"type":["integer","null"]},"fromEmail":{"type":["string","null"]},"replyTo":{"type":["string","null"]},"preheaderText":{"type":["string","null"]},"html":{"type":["string","null"],"description":"Hotový e-mail v HTML, sestavený z configuration."},"configuration":{},"placeholders":{},"unresolvedPlaceholders":{"type":"array","items":{"$ref":"#/components/schemas/UnresolvedEmailPlaceholderData"}},"state":{"$ref":"#/components/schemas/EmailState"},"conditions":{"anyOf":[{"$ref":"#/components/schemas/ConditionGroupOutputData"},{"type":"null"}]},"contactScope":{"$ref":"#/components/schemas/EmailRecipientContactScope"},"contactOverrides":{"type":"array","items":{"$ref":"#/components/schemas/EmailContactOverrideData"}},"rejectReason":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]},"blueprint":{"anyOf":[{"$ref":"#/components/schemas/CampaignSourceBlueprintSummaryData"},{"type":"null"}]},"emailTemplate":{"anyOf":[{"$ref":"#/components/schemas/UpdateEmailTemplateData"},{"type":"null"}]},"topic":{"anyOf":[{"$ref":"#/components/schemas/UpdateTopicData"},{"type":"null"}]},"language":{"anyOf":[{"$ref":"#/components/schemas/UpdateLanguageData"},{"type":"null"}]}},"title":"UpdateEmailData"},"UpdateEmailTemplateData":{"type":"object","properties":{"id":{"type":"integer"},"translation":{"$ref":"#/components/schemas/UpdateEmailTemplateTranslationData"},"availableLocales":{"type":"array","items":{"type":"string"}},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"isSubscriptionTemplate":{"type":"boolean"},"category":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateCategory"},{"type":"null"}]},"layout":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateLayout"},{"type":"null"}]},"isForWarmAudience":{"type":"boolean"},"isForOwnedAudience":{"type":"boolean"},"usage":{"$ref":"#/components/schemas/EmailTemplateUsage"},"privateOutreachAction":{"anyOf":[{"$ref":"#/components/schemas/PrivateOutreachAction"},{"type":"null"}]},"invoiceMailType":{"anyOf":[{"$ref":"#/components/schemas/InvoiceMailType"},{"type":"null"}]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"isSharedWithTeam":{"type":"boolean"},"isMine":{"type":"boolean"},"ownerName":{"type":["string","null"]},"bodyMarkdown":{"type":["string","null"]}},"title":"UpdateEmailTemplateData"},"UpdateEmailTemplateTranslationData":{"type":"object","properties":{"id":{"type":"integer"},"emailTemplateId":{"type":"integer"},"languageId":{"type":"integer"},"locale":{"type":"string"},"isPrimary":{"type":["boolean","null"]},"name":{"type":"string"},"subject":{"type":"string"},"preheaderText":{"type":["string","null"]},"description":{"type":["string","null"]},"templateConfiguration":{},"templatePlaceholders":{}},"title":"UpdateEmailTemplateTranslationData"},"UpdateFacebookSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"tenantOAuthPlatformId":{"type":["integer","null"]},"socialPostId":{"type":"integer"},"externalId":{"type":"string"}},"title":"UpdateFacebookSocialPostData"},"UpdateFileData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"alt":{"type":["string","null"]},"slug":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"ratio":{"type":["number","null"]},"path":{"type":"string"},"url":{"type":"string"},"hash":{"type":"string"},"isAiGenerated":{"type":"boolean"},"isImageEdited":{"type":"boolean"},"isCroppable":{"type":"boolean"},"createdAt":{"type":["string","null"]},"usageCount":{"type":"integer"},"isInUse":{"type":"boolean"},"canDelete":{"type":"boolean"}},"title":"UpdateFileData"},"UpdateInstagramSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"tenantOAuthPlatformId":{"type":["integer","null"]},"socialPostId":{"type":"integer"},"externalId":{"type":"string"}},"title":"UpdateInstagramSocialPostData"},"UpdateLanguageData":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"}},"title":"UpdateLanguageData"},"UpdateLeadContactData":{"type":"object","properties":{"id":{"type":"integer"},"leadId":{"type":"integer"},"contactId":{"type":"integer"},"isPrimary":{"type":"boolean"},"buyingRole":{"anyOf":[{"$ref":"#/components/schemas/LeadContactBuyingRole"},{"type":"null"}]},"contact":{"anyOf":[{"$ref":"#/components/schemas/UpdateContactData"},{"type":"null"}]}},"title":"UpdateLeadContactData"},"UpdateLeadCustomFieldData":{"type":"object","properties":{"id":{"type":"integer"},"leadId":{"type":"integer"},"customField":{"$ref":"#/components/schemas/UpdateCustomFieldData"},"value":{"type":["string","null"]}},"title":"UpdateLeadCustomFieldData"},"UpdateLeadData":{"type":"object","properties":{"id":{"type":"string","description":"Číslo leadu."},"countryId":{"type":["integer","null"]},"countryIso":{"type":["string","null"]},"name":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"unattestedIdentity":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Údaje o firmě, které Fusio odhadlo, třeba z formuláře, a nikdo je ještě nezkontroloval. null, když žádné nejsou."},"street":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"stage":{"$ref":"#/components/schemas/LeadStage"},"lostReason":{"anyOf":[{"$ref":"#/components/schemas/LeadLostReason"},{"type":"null"}]},"lostReasonNote":{"type":["string","null"]},"personType":{"$ref":"#/components/schemas/LeadPersonType"},"source":{"anyOf":[{"$ref":"#/components/schemas/LeadSource"},{"type":"null"}]},"website":{"type":["string","null"]},"hasResearchProfile":{"type":"boolean"},"originatingLeadFormId":{"type":["integer","null"]},"originatingLeadFormName":{"type":["string","null"]},"outreachStatus":{"$ref":"#/components/schemas/LeadOutreachStatus","description":"Jak daleko se tvůj tým dostal s oslovováním leadu."},"contactsCount":{"type":"integer","description":"Kolik kontaktů lead má."},"countryName":{"type":["string","null"]},"leadContacts":{"type":"array","items":{"$ref":"#/components/schemas/UpdateLeadContactData"},"description":"Kontakty leadu, hlavní je označený."},"segmentIds":{"type":"array","items":{"type":"integer"},"description":"Čísla segmentů, ve kterých lead je."},"tagIds":{"type":"array","items":{"type":"integer"},"description":"Čísla štítků leadu."},"leadCustomFields":{"type":"array","items":{},"description":"Hodnoty tvých vlastních polí."},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LeadTaskOutputData"},"description":"Úkoly tvého týmu k leadu."},"notes":{"type":"array","items":{"$ref":"#/components/schemas/LeadNoteOutputData"}},"billingAddressSameAsLegal":{"type":"boolean"},"billingAddress":{"anyOf":[{"$ref":"#/components/schemas/LeadBillingAddressData"},{"type":"null"}]},"firmographic":{"anyOf":[{"$ref":"#/components/schemas/LeadFirmographicData"},{"type":"null"}]},"registerLookupStatus":{"anyOf":[{"$ref":"#/components/schemas/LeadRegisterLookupStatus"},{"type":"null"}]},"registerLookupLocked":{"type":"boolean"}},"title":"UpdateLeadData"},"UpdateLinkedInSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"tenantOAuthPlatformId":{"type":["integer","null"]},"socialPostId":{"type":"integer"},"externalId":{"type":"string"}},"title":"UpdateLinkedInSocialPostData"},"UpdatePublicationData":{"type":"object","properties":{"id":{"type":"integer"},"entityId":{"type":"integer"},"entityType":{"type":"string"},"status":{"$ref":"#/components/schemas/PublicationStatus"},"failureReason":{"type":["string","null"]},"useOptimalPublishingTime":{"type":"boolean"},"scheduledAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"failedAt":{"type":["string","null"]}},"title":"UpdatePublicationData"},"UpdateSegmentData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]}},"title":"UpdateSegmentData"},"UpdateSocialPlatformData":{"type":"object","properties":{"id":{"type":"integer"},"slug":{"type":"string"},"name":{"type":"string"}},"title":"UpdateSocialPlatformData"},"UpdateSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"batchId":{"type":"integer"},"tenantOAuthPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateTenantOAuthPlatformData"},{"type":"null"}]},"socialPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateSocialPlatformData"},{"type":"null"}]},"publication":{"anyOf":[{"$ref":"#/components/schemas/UpdatePublicationData"},{"type":"null"}]},"campaign":{"anyOf":[{"$ref":"#/components/schemas/UpdateCampaignData"},{"type":"null"}]},"xSocialPost":{"anyOf":[{"$ref":"#/components/schemas/UpdateXSocialPostData"},{"type":"null"}]},"instagramSocialPost":{"anyOf":[{"$ref":"#/components/schemas/UpdateInstagramSocialPostData"},{"type":"null"}]},"facebookSocialPost":{"anyOf":[{"$ref":"#/components/schemas/UpdateFacebookSocialPostData"},{"type":"null"}]},"linkedInSocialPost":{"anyOf":[{"$ref":"#/components/schemas/UpdateLinkedInSocialPostData"},{"type":"null"}]},"languageId":{"type":"integer"},"topicId":{"type":["integer","null"]},"tenantId":{"type":"integer"},"tenantSequence":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"content":{"type":"string"},"state":{"$ref":"#/components/schemas/SocialPostState","description":"Kde příspěvek teď je: drafted, approved, rejected, scheduled, published nebo failed."},"files":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"}},"comments":{"type":"array","items":{"$ref":"#/components/schemas/SocialPostCommentData"},"description":"Části za příspěvkem: příspěvky vlákna a komentáře."},"updatedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]},"blueprint":{"anyOf":[{"$ref":"#/components/schemas/CampaignSourceBlueprintSummaryData"},{"type":"null"}]},"sourceArticle":{"anyOf":[{"$ref":"#/components/schemas/SocialPostSourceArticleOutputData"},{"type":"null"}]},"isAwaitingArticle":{"type":"boolean"},"commentsCount":{"type":"integer"},"threadItemsCount":{"type":"integer"}},"title":"UpdateSocialPostData"},"UpdateTagData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"color":{"type":["string","null"]},"notes":{"type":["string","null"]},"assignmentSource":{"$ref":"#/components/schemas/TagAssignmentSource"}},"title":"UpdateTagData"},"UpdateTenantAnalysisData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"url":{"type":"string","description":"Web, který se analyzoval."},"batchId":{"type":["string","null"],"description":"Číslo práce na pozadí. Je vyplněné, dokud analýza běží."},"analyzedAt":{"type":["string","null"],"description":"Kdy analýza skončila. null, dokud ještě běží."},"websiteLanguageId":{"type":["integer","null"],"description":"Číslo jazyka, ve kterém je tvůj web."},"industryCategoryId":{"type":["integer","null"],"description":"Číslo oboru, ve kterém podnikáš."},"aiProviderModelId":{"type":["integer","null"]},"pagesCrawled":{"type":"integer","description":"Kolik stránek webu Fusio přečetlo."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"title":"UpdateTenantAnalysisData"},"UpdateTenantData":{"type":"object","properties":{"id":{"type":"integer"},"ownerId":{"type":"integer"},"slug":{"type":"string"},"name":{"type":"string"},"legalName":{"type":["string","null"]},"email":{"type":["string","null"]},"ownerEmail":{"type":"string"},"privacyPolicyUrl":{"type":["string","null"]},"termsUrl":{"type":["string","null"]},"verifiedDomainName":{"type":["string","null"]},"hasAgencyWorkspace":{"type":"boolean"},"twoFactorRequired":{"type":"boolean"},"isPriceListLocked":{"type":"boolean"},"preferredAiLanguageId":{"type":"integer"},"bio":{"type":["string","null"]},"website":{"type":["string","null"]},"timezone":{"type":["string","null"]},"resolvedTimezone":{"type":"string"},"logoId":{"type":["integer","null"]},"logoBannerId":{"type":["integer","null"]},"logoUrl":{"type":["string","null"]},"logoBannerUrl":{"type":["string","null"]},"documents":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFileData"}},"type":{"$ref":"#/components/schemas/TenantType"},"teamSize":{"$ref":"#/components/schemas/TenantTeamSize"},"registrationNumber":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"industryCategoryIds":{"type":"array","items":{"type":"string"}},"completedAt":{"type":["string","null"]},"packageName":{"type":"string"},"subscriptionId":{"type":["integer","null"]},"creditBalance":{"type":"number"},"emailSendingBalance":{"type":"integer"},"socialPlatformLinkingBalance":{"type":["integer","null"]},"adPlatformLinkingBalance":{"type":["integer","null"]},"organizationMemberBalance":{"type":["integer","null"]},"crmRecordsUsed":{"type":"integer"},"companyLookupsUsed":{"type":"integer"},"resetLimitsAt":{"type":["string","null"]},"entitlements":{"$ref":"#/components/schemas/TenantEntitlementsData"},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]}},"title":"UpdateTenantData"},"UpdateTenantOAuthPlatformData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"socialPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateSocialPlatformData"},{"type":"null"}]},"adPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateAdPlatformData"},{"type":"null"}]},"crmPlatform":{"anyOf":[{"$ref":"#/components/schemas/UpdateCrmPlatformData"},{"type":"null"}]},"linkedinAdsOAuthPlatformId":{"type":["integer","null"]},"adAccounts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/UpdateAdAccountData"}},"facebookPages":{"type":["array","null"],"items":{"$ref":"#/components/schemas/UpdateTenantOAuthPlatformFacebookPageData"}},"externalId":{"type":"string"},"linkedinOrganizationUrn":{"type":["string","null"]},"approvedScopes":{"type":"array","items":{"type":"string"}},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"nickname":{"type":["string","null"]},"avatar":{"type":["string","null"]},"authenticationStatus":{"$ref":"#/components/schemas/TenantOAuthPlatformStatus"},"tokenExpiresAt":{"type":["string","null"]},"refreshTokenExpiresAt":{"type":["string","null"]},"socialLockedAt":{"type":["string","null"]},"adLockedAt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"title":"UpdateTenantOAuthPlatformData"},"UpdateTenantOAuthPlatformFacebookPageData":{"type":"object","properties":{"id":{"type":"integer"},"tenantOAuthPlatformId":{"type":"integer"},"externalId":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"deletedAt":{"type":["string","null"]}},"title":"UpdateTenantOAuthPlatformFacebookPageData"},"UpdateTopicData":{"type":"object","properties":{"id":{"type":"integer"},"tenantId":{"type":"integer"},"userId":{"type":"integer"},"batchId":{"type":"integer"},"name":{"type":"string"},"query":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/TopicType"},"frequency":{"$ref":"#/components/schemas/TopicFrequency"},"timeRange":{"$ref":"#/components/schemas/TopicTimeRange"},"targetLanguageId":{"type":["integer","null"]},"targetCountryId":{"type":["integer","null"]},"excludeWebsites":{"type":["array","null"],"items":{"type":"string"}},"includeWebsites":{"type":["array","null"],"items":{"type":"string"}},"state":{"$ref":"#/components/schemas/TopicState"},"usedBySocialPostId":{"type":["integer","null"]},"usedByArticleId":{"type":["integer","null"]},"usedByEmailId":{"type":["integer","null"]},"lastCrawledAt":{"type":["string","null"],"description":"Kdy Fusio naposledy hledalo na webu k tomuhle tématu."},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"title":"UpdateTopicData"},"UpdateUserData":{"type":"object","properties":{"id":{"type":"integer"},"activeTenantId":{"type":["integer","null"]},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"type":["string","null"]},"preferredLanguageId":{"type":["integer","null"]},"preferredTheme":{"type":["string","null"]},"roles":{"type":"array","items":{"type":"string"}},"permissions":{"type":"array","items":{"type":"string"}},"isAdmin":{"type":"boolean"}},"title":"UpdateUserData"},"UpdateXSocialPostData":{"type":"object","properties":{"id":{"type":"integer"},"tenantOAuthPlatformId":{"type":["integer","null"]},"socialPostId":{"type":"integer"},"externalId":{"type":"string"},"editHistoryTweetIds":{"type":"array","items":{"type":"integer"}}},"title":"UpdateXSocialPostData"},"UserSummaryData":{"type":"object","properties":{"id":{"type":"integer"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]}},"required":["id","firstName","lastName"],"title":"UserSummaryData"},"ValidationErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["message","errors"],"title":"ValidationErrorResponse"},"ValueThemesData":{"type":"object","properties":{"theme":{"type":"string"},"proof":{"type":"string"}},"required":["theme","proof"],"title":"ValueThemesData"}}},"tags":[{"name":"auth","x-displayName":"Přihlášení","description":"Zjisti, za koho klíč jedná a ke které firmě patří. Zavolej to jako první, ať víš, že klíč funguje."},{"name":"sync","x-displayName":"Hromadný import","description":"Pošli najednou hodně leadů nebo obchodů ze svého CRM. Fusio dá dávku do fronty a zpracuje ji na pozadí. Potom se zeptáš, jak daleko je, a přečteš si výsledek každé položky."},{"name":"articles","x-displayName":"Články","description":"Piš, měň a zveřejňuj články svého blogu. Článek má stav: začne jako drafted, pak je approved nebo rejected a potom se přes publikaci naplánuje a zveřejní.\n\nČtení potřebuje `articles.read`, změny `articles.write`. Každý krok dál než drafted nebo rejected potřebuje i `articles.publish`."},{"name":"article-categories","x-displayName":"Kategorie článků","description":"Roztřiď články do kategorií. Kategorie může být pod jinou, takže tvoří strom. Každá kategorie má texty pro každý jazyk."},{"name":"article-authors","x-displayName":"Autoři článků","description":"Lidé nebo firmy, které se u článků zobrazují jako autoři. Jeden autor je výchozí a nové články ho dostanou automaticky."},{"name":"public-content","x-displayName":"Obsah webu","description":"Čti, co ukazuje tvůj web: zveřejněné články a aktivní autory v jednom jazyce. Tyhle adresy použij, když si stavíš vlastní stránky blogu."},{"name":"topics","x-displayName":"Témata","description":"Témata říkají Fusiu, co má sledovat na webu. U aktivního tématu Fusio hledá stránky o něm a používá je jako nápady na tvoje články."},{"name":"emails","x-displayName":"E-maily","description":"Piš e-maily a vyber, kdo je dostane. E-mail začne jako drafted, pak je approved nebo rejected a potom se odešle přes publikaci nebo sekvenci.\n\nČtení potřebuje `emails.read`, změny `emails.write`. Každý krok dál než drafted nebo rejected potřebuje i `emails.send`."},{"name":"social-posts","x-displayName":"Příspěvky na sítě","description":"Piš a zveřejňuj příspěvky pro X, Facebook, LinkedIn a Instagram. Příspěvek má stav: začne jako drafted, pak je approved nebo rejected a potom se přes publikaci naplánuje a zveřejní.\n\nČtení potřebuje `social-posts.read`, změny `social-posts.write`. Každý krok dál než drafted nebo rejected potřebuje i právo ke zveřejnění na té síti, třeba `social-posts.publish.linkedin`."},{"name":"campaigns","x-displayName":"Kampaně","description":"Kampaň spojuje obsah kolem jednoho cíle: články, e-maily, příspěvky a reklamy, s podklady, ze kterých Fusio píše, a formuláři, které sbírají leady. Kampaň má stav: draft, approved, scheduled, active, paused, completed, cancelled nebo archived.\n\nČtení potřebuje `campaigns.read`, změny `campaigns.write`. Změna kampaně potřebuje i oprávnění k zápisu pro každý druh obsahu v ní: `articles.write` pro články na blogu, `social-posts.write` pro příspěvky na sociálních sítích a `emails.write` pro e-maily. A naopak změna článku, příspěvku nebo e-mailu, který patří do kampaně, potřebuje i `campaigns.write`. Všechno, co kampani dovolí jednat samotné, třeba activate, approve nebo resume, potřebuje i `campaigns.execute`."},{"name":"publications","x-displayName":"Publikace","description":"Publikace zveřejní schválený obsah v daný čas: článek na tvém webu, e-mail lidem, příspěvek na síti, reklamu nebo celou kampaň. Obsah nejdřív schval, pak pro něj vytvoř publikaci.\n\nČtení potřebuje právo ke čtení toho obsahu. Vytvoření, změna a smazání publikace potřebuje právo, které obsah pustí ven, třeba `articles.publish` nebo `emails.send`."},{"name":"files","x-displayName":"Soubory","description":"Obrázky a soubory tvé firmy. V článcích, e-mailech a příspěvcích je použiješ podle čísla.\n\nČtení potřebuje `files.read`, nahrávání `files.write`. Klíč vidí jen veřejné soubory knihovny, ne soukromé dokumenty."},{"name":"contacts","x-displayName":"Kontakty","description":"Kontakt je jeden člověk: jméno, e-mail nebo telefon a jeho souhlas s e-maily, SMS a telefonáty. Každý kontakt patří k jednomu leadu, firmě, pro kterou pracuje.\n\nKontakty si roztřiď segmenty, štítky a vlastními poli. Než člověka přidáš, zeptej se `leads.check-duplicate`, ať ho nemáš dvakrát."},{"name":"leads","x-displayName":"Leady","description":"Lead je firma nebo člověk, kterého chceš získat jako klienta. Má kontakty (lidi), fázi (cold, warm, qualified, client nebo lost) a členy tvého týmu, kteří se o něj starají.\n\nLeady si roztřiď segmenty, štítky a vlastními poli a v analytice si přečti, jak reagují. Než lead přidáš, zeptej se `leads.check-duplicate`, ať nemáš stejnou firmu dvakrát."},{"name":"deals","x-displayName":"Obchody","description":"Obchod je prodej, na kterém s leadem pracuješ. Prochází fázemi: discovery, qualification, proposal a negotiation, a končí jako won (vyhraný) nebo lost (prohraný).\n\nObchod má položky (co prodáváš a za kolik), kontakty s jejich rolemi a dokumenty. Když obchod vyhraješ, jeho lead se stane klientem."},{"name":"deal-products","x-displayName":"Produkty","description":"Produkty jsou to, co prodáváš, s cenou, jednotkou a DPH. Vybírej je, když přidáváš položky do obchodu, ať nepíšeš pořád to samé."},{"name":"ads","x-displayName":"Reklamy","description":"Reklamy na LinkedInu. Patří sem i kampaně, které Fusio poslalo do Google Ads. Reklamy pro Facebook a Instagram jsou v Reklamách Meta. Reklamu napíšeš jako koncept, schválíš ji a pak ji spustíš v reklamní síti.\n\nSpuštění, úprava a odebrání reklam, které už nejsou koncepty, potřebují u klíče právo ke spouštění v dané síti: `ads.execute.google` nebo `ads.execute.linkedin`. Práce AI utrácí AI kredity tvé firmy."},{"name":"google-ads-search","x-displayName":"Vyhledávání Google Ads","description":"Vyhledávací kampaně pro Google Ads. Kampaň má jednu reklamní sestavu s klíčovými slovy a jednu vyhledávací reklamu. Postavíš ji jako koncept, ručně nebo pomocí AI, pak ji schválíš a pošleš do Google Ads. Dorazí pozastavená, takže se nic neutratí, dokud ji nespustíš.\n\nPráce AI utrácí AI kredity tvé firmy. Odeslání, spuštění a úprava živých kampaní potřebují u klíče právo `ads.execute.google`."},{"name":"meta-ads","x-displayName":"Reklamy Meta","description":"Kampaně pro Facebook a Instagram. Kampaň má sady s cílením a každá sada má reklamy. Postavíš ji jako koncept a schválíš ji. Do Meta Ads nic nejde, dokud ji nenahraješ.\n\nHledání cílení, publik a příspěvků i odhad publika se obracejí na Meta Ads, takže potřebují vybraný reklamní účet Meta. Schválení kampaně potřebuje u klíče právo `ads.execute.facebook`.\n\nNahrání do Meta Ads jde takhle:\n1. `meta-ads-campaigns.meta-ads.preflight` zkontroluje schválenou kampaň a dá ti `planRevision`.\n2. `meta-ads-campaigns.meta-ads.deploy` ji nahraje. Nahrávání běží na pozadí; sleduj ho přes `meta-ads-deployments.show`. Kampaň, sady a reklamy dorazí do Meta Ads pozastavené, takže se zatím nic neutratí.\n3. `meta-ads-deployments.status` spustí nebo pozastaví kampaň, jednu sadu nebo jednu reklamu.\n4. Když kampaň ve Fusiu změníš, `meta-ads-deployments.apply` nahraje změny. `meta-ads-deployments.live-settings.update` hned změní rozpočet nebo konec běžící kampaně.\n5. `meta-ads-deployments.sync` znovu načte stav z Meta Ads a `meta-ads-deployments.reconcile` opraví přerušené nahrávání.\n\nKaždá adresa, která něco v Meta Ads mění, potřebuje u klíče právo `ads.execute.facebook`. Smazání kampaně, která už v Meta Ads je, ji tam nejdřív archivuje, takže to právo potřebuje taky.\n\nOdpovědi s kampaní mají v `checks` tipy. Tipy schválení nikdy nezastaví. Každý tip má jeden z těchto kódů:\n- `audience_too_small`: Publikum sady je moc malé.\n- `ad_sets_overlap`: Dvě sady cílí na stejné lidi.\n- `manual_placements`: Umístění reklam je nastavené ručně.\n- `campaign_budget_off`: Víc sad nemá společný rozpočet kampaně.\n- `learning_budget_low`: Rozpočet nemusí stačit na fázi učení.\n- `too_few_ads`: Sada má málo reklam.\n- `duplicate_creatives`: Reklamy opakují stejný obrázek nebo text.\n- `too_few_texts`: Reklama má málo textů na zkoušku.\n- `missing_vertical_asset`: Reklamě chybí vysoký obrázek pro Stories a Reels.\n- `no_video_ad`: Sada nemá žádnou reklamu s videem.\n- `instagram_without_account`: Reklamy na Instagramu poběží bez účtu na Instagramu.\n- `creative_enhancements_on`: Meta smí reklamy sama měnit.\n- `lead_form_required_field_missing`: Formuláři v Meta chybí pole, která Fusio potřebuje.\n- `conversion_goal_missing`: Fusio tuto událost do Meta neposílá.\n- `conversion_event_low_volume`: Událost má za týden málo konverzí.\n- `value_without_value_data`: Nákupy zatím neposílají hodnotu.\n- `low_match_quality`: Meta spáruje s lidmi málo konverzí.\n\nAI umí ze zadání postavit celou kampaň přes `meta-ads-campaigns.generate`. Běží na pozadí; úlohu sleduj přes `meta-ads-operations.show`. Přes `meta-ads-campaigns.brief-picks` nech AI nejdřív vybrat cíl a stránku, nic se přitom neuloží.\n\nAI umí pomoct i s jednou částí konceptu: cílení sady (`meta-ads-ad-sets.targets.suggest`), nové reklamy do sady (`meta-ads-ad-sets.ads.generate`), texty reklamy (`meta-ads-ads.texts.suggest`) a obrázky reklamy (`meta-ads-ads.images.generate`). Návrhy se neukládají; co se ti líbí, přidáš sám.\n\nPráce AI utrácí AI kredity tvé firmy a u klíče potřebuje právo `ai.generate`. Klíč musí poslat i `maxCredits`."},{"name":"ai","x-displayName":"AI","description":"AI ti píše články, e-maily a příspěvky a řekne ti, kolik její práce stojí. Psaní má dva kroky: clarify ověří, že AI ví dost, generate spustí úlohu. Pak úlohu sleduješ přes `ai.generation-runs.show`.\n\nPráce AI utrácí AI kredity tvé firmy. Klíč musí poslat `maxCredits` s každým požadavkem, který je utrácí."},{"name":"notes","x-displayName":"Poznámky","description":"Poznámka je krátký text, který člověk napíše k leadu. Uchová, co se řeklo nebo zjistilo.\n\nPoznámku jde přidat k leadu. Poznámka k obchodu potřebuje navíc oprávnění `deals.write` a poznámka ke kontaktu leadu `contacts.write`."},{"name":"tenant-intelligence","x-displayName":"Znalosti o firmě","description":"Znalosti o firmě jsou všechno, co Fusio ví o tvém podnikání, na jednom místě: tvůj hlas značky, produkt, konkurenti, zákazníci, strategie, SEO a reklamy.\n\nZeptej se na ně, když nástroj s AI potřebuje znát tvou firmu, než něco napíše."},{"name":"tenant-analysis","x-displayName":"Analýza webu","description":"Analýza webu přečte tvůj web pomocí AI. Fusio z ní vyplní tvůj produkt, hlas značky, konkurenty, zákazníky a nápady na strategie.\n\nSpustíš ji jednou na začátku a znovu, když se tvůj web hodně změní."},{"name":"seo-audits","x-displayName":"SEO audity","description":"SEO audit kontroluje, jak dobře lidé najdou tvůj web v Googlu. Vypíše problémy s opravami, hledaná slova, na která se vyplatí mířit, a jak si stojíš proti konkurenci.\n\nAudit může kontrolovat víc trhů: jiné země a jazyky. Z jeho sad klíčových slov můžeš vytvořit kampaň Google Ads."},{"name":"product","x-displayName":"Produkt","description":"Tvůj produkt je to, co prodáváš, popsané pro marketing: pro koho je, jaký problém řeší, proč je lepší a jak o něm mluví tvoji zákazníci.\n\nAI ho čte pokaždé, když pro tebe píše, takže dobré odpovědi tady znamenají lepší texty a lepší hodnocení leadů."},{"name":"customers","x-displayName":"Profily zákazníků","description":"Profil zákazníka popisuje jeden druh zákazníka: kdo je, co ho trápí, co chce a kde ho zastihneš.\n\nAI pro tyhle lidi píše texty a cílí reklamy."},{"name":"competitors","x-displayName":"Konkurenti","description":"Konkurenti jsou jiné firmy, které by si tvoji zákazníci mohli vybrat místo tebe. Zapiš si, v čem jsou lepší oni a v čem ty.\n\nAI je používá, aby psala texty, které ukážou, proč jsi lepší volba ty."},{"name":"strategies","x-displayName":"Strategie","description":"Strategie je marketingový nápad pro tvé podnikání: co udělat, proč se hodí, kolik stojí a co od něj můžeš čekat.\n\nNěkteré strategie umí Fusio spustit za tebe jako kampaň; jiné jsou rada nebo úkol k nastavení."},{"name":"brand-voices","x-displayName":"Hlasy značky","description":"Hlas značky říká AI, jak mají tvoje texty znít: tón, jak těžké jsou na čtení, kdo mluví a které fráze používat nebo ne.\n\nMůžeš mít víc hlasů. Hlavní se použije, když žádný nevybereš."},{"name":"image-profiles","x-displayName":"Presety stylu","description":"Preset stylu říká AI, jak mají tvoje obrázky vypadat: styl, tvoje ukázkové obrázky, tvůj maskot a na co myslet.\n\nPro každé místo, kam obrázky jdou, třeba články na blogu nebo příspěvky na Instagramu, můžeš vybrat jiný preset."},{"name":"mascots","x-displayName":"Maskoti","description":"Maskot je postavička, kterou AI může kreslit do tvých obrázků: jak vypadá, jakou má povahu, místa, kde se objevuje, a jeho kamarádi.\n\nMaskota propoj s presety stylu, nejvýš 3 maskoty na preset."}]}