{"openapi":"3.1.0","info":{"title":"API SocBooster","version":"1.0.0","description":"API пользовательских функций рабочего пространства. Ключи и права управляются в кабинете. Рабочий запрос, включая повтор, расходует один api_requests; обслуживание сохраняет проверку владельца, scopes и лимит 120 запросов в минуту."},"servers":[{"url":"https://socbooster.ru/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"rr_live_..."}},"schemas":{"HashtagResearchInput":{"type":"object","required":["topic","locales","targetMode"],"properties":{"topic":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"targetMode":{"enum":["count","saturation"]},"targetCount":{"type":"integer","examples":[100,500,1000]},"minNewGeneratedPerRound":{"type":"integer","default":2}}},"Error":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}},"PendingOperation":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","required":["id","status","statusUrl"],"properties":{"id":{"type":"string"},"status":{"enum":["IN_PROGRESS","UNKNOWN"]},"statusUrl":{"type":"string"},"errorCode":{"type":["string","null"]}}}}}}},"paths":{"/":{"get":{"operationId":"get_","summary":"Каталог API","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":null,"x-billing-feature":null,"x-access-policy":"working","x-api-requests":1}},"/api-keys/current":{"get":{"operationId":"get_api_keys_current","summary":"Безопасные метаданные текущего API-ключа","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["active","expired","revoked"]}},"required":["id","name","prefix","scopes","expiresAt","lastUsedAt","revokedAt","createdAt","status"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":null,"x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0},"delete":{"operationId":"delete_api_keys_current","summary":"Отозвать текущий API-ключ","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"revoked":{"const":true}},"required":["revoked"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":null,"x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/operations/{id}/status":{"get":{"operationId":"get_operations_id_status","summary":"Безопасное состояние операции","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":null,"x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/reels":{"post":{"operationId":"post_research_reels","summary":"Исследовать Reels","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"reels_research","x-access-policy":"working","x-api-requests":1,"x-feature-flag":"nicheSearch"}},"/research/reels/hashtags":{"get":{"operationId":"get_research_reels_hashtags","summary":"Список исследований хештегов","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_reels_hashtags","summary":"Исследовать хештеги","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1,"x-feature-flag":"hashtagResearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["topic","locales","targetMode"],"properties":{"topic":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"targetMode":{"enum":["count","saturation"]},"targetCount":{"type":"integer","examples":[100,500,1000]},"minNewGeneratedPerRound":{"type":"integer","default":2}}}}}}}},"/research/reels/hashtags/{id}":{"get":{"operationId":"get_research_reels_hashtags_id_","summary":"Исследование хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"candidateStatus","in":"query","schema":{"type":"string","default":"generated"},"description":"Статус кандидатов; псевдоним: status"},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"query","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"locale","in":"query","schema":{"type":"string"}},{"name":"branchId","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"format","in":"query","schema":{"enum":["csv"]}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_research_reels_hashtags_id_","summary":"Продолжить или отменить исследование хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1,"x-maintenance-when":{"action":"cancel"},"x-feature-flag":"hashtagResearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["resume","cancel"]}}}}}}}},"/research/reels/hashtags/{id}/export":{"get":{"operationId":"get_research_reels_hashtags_id_export","summary":"Экспорт хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"candidateStatus","in":"query","schema":{"type":"string","default":"generated"},"description":"Статус кандидатов; псевдоним: status"},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"query","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"locale","in":"query","schema":{"type":"string"}},{"name":"branchId","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"format","in":"query","schema":{"enum":["csv"]}}],"responses":{"200":{"description":"CSV с BOM и защитой ячеек","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"research_export","x-access-policy":"working","x-api-requests":1}},"/research/hashtag-runs":{"get":{"operationId":"get_research_hashtag_runs","summary":"Список исследований хештегов","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_hashtag_runs","summary":"Запустить исследование хештегов","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1,"x-feature-flag":"hashtagResearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["topic","locales","targetMode"],"properties":{"topic":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"targetMode":{"enum":["count","saturation"]},"targetCount":{"type":"integer","examples":[100,500,1000]},"minNewGeneratedPerRound":{"type":"integer","default":2}}}}}}}},"/research/hashtag-runs/{id}":{"get":{"operationId":"get_research_hashtag_runs_id_","summary":"Исследование хештегов или CSV","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"candidateStatus","in":"query","schema":{"type":"string","default":"generated"},"description":"Статус кандидатов; псевдоним: status"},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"query","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"locale","in":"query","schema":{"type":"string"}},{"name":"branchId","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"format","in":"query","schema":{"enum":["csv"]}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_research_hashtag_runs_id_","summary":"Продолжить или отменить исследование хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"hashtag_research","x-access-policy":"working","x-api-requests":1,"x-maintenance-when":{"action":"cancel"},"x-feature-flag":"hashtagResearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["resume","cancel"]}}}}}}}},"/research/competitors":{"get":{"operationId":"get_research_competitors","summary":"Конкуренты","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"reels_research","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_competitors","summary":"Сохранить конкурента","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"reels_research","x-access-policy":"working","x-api-requests":1}},"/research/saved-reels":{"get":{"operationId":"get_research_saved_reels","summary":"Сохранённые Reels","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"reels_research","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_saved_reels","summary":"Сохранить Reel","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"reels_research","x-access-policy":"working","x-api-requests":1}},"/research/dream100-lists":{"get":{"operationId":"get_research_dream100_lists","summary":"Списки Dream100","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"dream100","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_dream100_lists","summary":"Списки Dream100","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"dream100","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_research_dream100_lists","summary":"Списки Dream100","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"dream100","x-access-policy":"working","x-api-requests":1},"delete":{"operationId":"delete_research_dream100_lists","summary":"Списки Dream100","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:write","x-billing-feature":"dream100","x-access-policy":"working","x-api-requests":1}},"/research/analyses":{"get":{"operationId":"get_research_analyses","summary":"Анализы Reels","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:read","x-billing-feature":"reels_analysis","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_analyses","summary":"Создать анализ видео; ответ после завершения анализа","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_analysis","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string","minLength":1,"maxLength":128}},"required":["videoId"],"additionalProperties":false}}}}}},"/campaigns":{"get":{"operationId":"get_campaigns","summary":"Список автоответов; дополнительные ссылки и аналитика доступны с campaigns:extended:read","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isActive":{"type":"boolean"},"trackedLink":{"type":["object","null"]},"trackedLinks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"destinationUrl":{"type":"string"},"trackedUrl":{"type":"string"}}}},"reportShareEnabled":{"type":"boolean"},"reportUrl":{"type":["string","null"]}},"required":["id","name","isActive"]}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:read","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_campaigns","summary":"Создать автоответ; дополнительные поля требуют campaigns:extended:write","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isActive":{"type":"boolean"},"trackedLink":{"type":["object","null"]},"trackedLinks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"destinationUrl":{"type":"string"},"trackedUrl":{"type":"string"}}}},"reportShareEnabled":{"type":"boolean"},"reportUrl":{"type":["string","null"]}},"required":["id","name","isActive"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:write","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"goal":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"instagramAccountId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"postId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"postUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"pendingNextReel":{"default":false,"type":"boolean"},"matchAnyPost":{"default":false,"type":"boolean"},"keywords":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"matchAnyWord":{"default":false,"type":"boolean"},"dmTriggerEnabled":{"default":false,"type":"boolean"},"dmMessage":{"type":"string","minLength":1,"maxLength":1000},"openingDmEnabled":{"default":false,"type":"boolean"},"openingDmMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"openingDmButtonLabel":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"linkButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"requireFollow":{"default":false,"type":"boolean"},"followPromptMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"followPromptButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"followUpEnabled":{"default":false,"type":"boolean"},"followUpMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"followUpDelayMinutes":{"default":0,"type":"integer","minimum":0,"maximum":1440},"publicReplyEnabled":{"default":false,"type":"boolean"},"publicReplyMessages":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":1000}},"trackedDestinationUrl":{"anyOf":[{"anyOf":[{"type":"string","format":"uri"},{"type":"string","const":""}]},{"type":"null"}]},"isActive":{"default":true,"type":"boolean"},"wholeWordMatch":{"default":true,"type":"boolean"},"secondaryDestinationUrl":{"anyOf":[{"anyOf":[{"type":"string","format":"uri"},{"type":"string","const":""}]},{"type":"null"}]},"secondaryButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"reportShareEnabled":{"default":false,"type":"boolean"}},"required":["name","dmMessage"]}}}}}},"/campaigns/{id}":{"get":{"operationId":"get_campaigns_id_","summary":"Получить автоответ","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isActive":{"type":"boolean"},"trackedLink":{"type":["object","null"]},"trackedLinks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"destinationUrl":{"type":"string"},"trackedUrl":{"type":"string"}}}},"reportShareEnabled":{"type":"boolean"},"reportUrl":{"type":["string","null"]}},"required":["id","name","isActive"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:read","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_campaigns_id_","summary":"Изменить автоответ; узкое отключение работает в режиме обслуживания","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isActive":{"type":"boolean"},"trackedLink":{"type":["object","null"]},"trackedLinks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"destinationUrl":{"type":"string"},"trackedUrl":{"type":"string"}}}},"reportShareEnabled":{"type":"boolean"},"reportUrl":{"type":["string","null"]}},"required":["id","name","isActive"]},{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string"},"errorCode":{"type":"null"}},"required":["id","status","progress","updatedAt","errorCode"]}]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:write","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1,"x-maintenance-when":{"type":"object","properties":{"isActive":{"const":false},"reportShareEnabled":{"const":false}},"additionalProperties":false,"minProperties":1},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"goal":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"postId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"postUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"pendingNextReel":{"type":"boolean"},"matchAnyPost":{"type":"boolean"},"keywords":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"matchAnyWord":{"type":"boolean"},"dmTriggerEnabled":{"type":"boolean"},"dmMessage":{"type":"string","minLength":1,"maxLength":1000},"openingDmEnabled":{"type":"boolean"},"openingDmMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"openingDmButtonLabel":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"linkButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"requireFollow":{"type":"boolean"},"followPromptMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"followPromptButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"followUpEnabled":{"type":"boolean"},"followUpMessage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"followUpDelayMinutes":{"type":"integer","minimum":0,"maximum":1440},"publicReplyEnabled":{"type":"boolean"},"publicReplyMessages":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":1000}},"trackedDestinationUrl":{"anyOf":[{"anyOf":[{"type":"string","format":"uri"},{"type":"string","const":""}]},{"type":"null"}]},"isActive":{"type":"boolean"},"wholeWordMatch":{"type":"boolean"},"secondaryDestinationUrl":{"anyOf":[{"anyOf":[{"type":"string","format":"uri"},{"type":"string","const":""}]},{"type":"null"}]},"secondaryButtonLabel":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"reportShareEnabled":{"type":"boolean"}},"additionalProperties":false}}}}},"delete":{"operationId":"delete_campaigns_id_","summary":"Удалить автоответ","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:write","x-billing-feature":null,"x-access-policy":"working","x-api-requests":1}},"/campaigns/import":{"post":{"operationId":"post_campaigns_import","summary":"Импорт до 200 автоответов; UUID Idempotency-Key обязателен","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"created":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"postId":{"type":"string"}}}},"skipped":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"reason":{"type":"string"}}}}}}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:extended:write","x-billing-feature":"automation_import","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string"},"campaigns":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","properties":{"postId":{"type":"string","minLength":1},"postUrl":{"type":["string","null"]},"keywords":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":50}},"dmMessage":{"type":"string","minLength":1,"maxLength":1000},"name":{"type":["string","null"],"maxLength":100},"goal":{"type":["string","null"],"maxLength":120},"publicReplyMessage":{"type":["string","null"],"maxLength":1000},"trackedUrl":{"type":["string","null"]},"wholeWordMatch":{"type":"boolean"},"isActive":{"type":"boolean"}},"required":["postId","keywords","dmMessage"]}}},"required":["instagramAccountId","campaigns"]}}}}}},"/campaigns/{id}/status":{"get":{"operationId":"get_campaigns_id_status","summary":"Минимальный статус автоответа","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string"},"errorCode":{"type":"null"}},"required":["id","status","progress","updatedAt","errorCode"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/campaigns/{id}/disable":{"patch":{"operationId":"patch_campaigns_id_disable","summary":"Только isActive:false и/или reportShareEnabled:false; UUID Idempotency-Key обязателен","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string"},"errorCode":{"type":"null"}},"required":["id","status","progress","updatedAt","errorCode"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"campaigns:extended:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isActive":{"const":false},"reportShareEnabled":{"const":false}},"additionalProperties":false,"minProperties":1}}}}}},"/instagram/accounts":{"get":{"operationId":"get_instagram_accounts","summary":"Подключённые аккаунты Instagram","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:read","x-billing-feature":null,"x-access-policy":"working","x-api-requests":1}},"/instagram/posts":{"get":{"operationId":"get_instagram_posts","summary":"Публикации Instagram","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:read","x-billing-feature":null,"x-access-policy":"working","x-api-requests":1}},"/analytics/summary":{"get":{"operationId":"get_analytics_summary","summary":"Аналитика автоответов","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"analytics:read","x-billing-feature":"automation_analytics","x-access-policy":"working","x-api-requests":1}},"/messages/logs":{"get":{"operationId":"get_messages_logs","summary":"Журнал автоответов","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"messages:read","x-billing-feature":"message_logs","x-access-policy":"working","x-api-requests":1}},"/research/search-plan":{"post":{"operationId":"post_research_search_plan","summary":"Составить AI-план поиска","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"ai_planning","x-access-policy":"working","x-api-requests":1,"x-feature-flag":"nicheSearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":2,"maxLength":200}},"required":["topic"],"additionalProperties":false}}}}}},"/research/discovery-runs":{"get":{"operationId":"get_research_discovery_runs","summary":"Список запусков; cursor и limit 1–100","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_discovery_runs","summary":"Создать запуск исследования","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"statusUrl":{"type":"string"}},"required":["id","statusUrl"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1,"x-feature-flag":"nicheSearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hashtags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":10},"excludeKeywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"parserProfileId":{"type":"string","minLength":1,"maxLength":128},"parserProfileIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"datePreset":{"type":"string","enum":["all","today","yesterday","last7","last30","thisMonth","previousMonth","custom"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["hashtags"],"additionalProperties":false}}}}}},"/research/discovery-runs/{id}":{"get":{"operationId":"get_research_discovery_runs_id_","summary":"Результат запуска исследования","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1}},"/research/discovery-runs/{id}/status":{"get":{"operationId":"get_research_discovery_runs_id_status","summary":"Безопасное состояние запуска","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/discovery-runs/{id}/actions":{"post":{"operationId":"post_research_discovery_runs_id_actions","summary":"pause/cancel — maintenance без тарифа (200); resume — фоновая работа (202)","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"statusUrl":{"type":"string"}},"required":["id","statusUrl"]}]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1,"x-maintenance-when":{"action":["pause","cancel"]},"x-feature-flag":"nicheSearch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["pause","cancel","resume"]}},"required":["action"],"additionalProperties":false}}}}}},"/research/discovery-runs/readiness":{"get":{"operationId":"get_research_discovery_runs_readiness","summary":"Готовность запуска; необязательный parserProfileId","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1}},"/research/collection-runs":{"get":{"operationId":"get_research_collection_runs","summary":"Список запусков; cursor и limit 1–100","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_collection_runs","summary":"Создать запуск исследования","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"statusUrl":{"type":"string"}},"required":["id","statusUrl"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"competitorIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":100},"parserProfileId":{"type":"string","minLength":1,"maxLength":128},"datePreset":{"type":"string","enum":["all","today","yesterday","last7","last30","thisMonth","previousMonth","custom"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["competitorIds"],"additionalProperties":false}}}}}},"/research/collection-runs/{id}":{"get":{"operationId":"get_research_collection_runs_id_","summary":"Результат запуска исследования","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1}},"/research/collection-runs/{id}/status":{"get":{"operationId":"get_research_collection_runs_id_status","summary":"Безопасное состояние запуска","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/collection-runs/{id}/actions":{"post":{"operationId":"post_research_collection_runs_id_actions","summary":"pause/cancel — maintenance без тарифа (200); resume — фоновая работа (202)","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"statusUrl":{"type":"string"}},"required":["id","statusUrl"]}]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1,"x-maintenance-when":{"action":["pause","cancel"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["pause","cancel","resume"]}},"required":["action"],"additionalProperties":false}}}}}},"/research/collection-runs/readiness":{"get":{"operationId":"get_research_collection_runs_readiness","summary":"Готовность запуска; необязательный parserProfileId","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1}},"/research/readiness":{"get":{"operationId":"get_research_readiness","summary":"Готовность поиска по нише; alias discovery-runs/readiness","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_discovery","x-access-policy":"working","x-api-requests":1}},"/research/competitors/search":{"post":{"operationId":"post_research_competitors_search","summary":"Поиск, рейтинг или сохранение выбранных конкурентов","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"competitor_search","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"niche":{"type":"string"},"keywords":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}]},"hashtags":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}]},"excludeKeywords":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}]},"seedAccounts":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}]},"limit":{"type":"integer","minimum":1,"maximum":100},"continuation":{"type":["object","null"]},"persistSelected":{"type":"boolean","default":false},"selectedHandles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"selectedCandidates":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string","minLength":1,"maxLength":120},"followerCount":{"type":["integer","null"],"minimum":0},"source":{"type":"string","maxLength":500},"reasons":{"type":"array","items":{"type":"string","maxLength":1000},"maxItems":10}},"required":["handle","source","reasons"],"additionalProperties":false},"maxItems":100},"listName":{"type":"string","maxLength":120}},"required":[],"additionalProperties":false}}}}}},"/research/competitors/{id}":{"get":{"operationId":"get_research_competitors_id_","summary":"Карточка конкурента","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"competitor_search","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_research_competitors_id_","summary":"Изменить конкурента","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"competitor_search","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string"},"handle":{"type":"string","minLength":1,"maxLength":120},"profileUrl":{"type":["string","null"],"format":"uri"},"notes":{"type":["string","null"],"maxLength":2000},"enabled":{"type":"boolean"}},"required":[],"additionalProperties":false}}}}},"delete":{"operationId":"delete_research_competitors_id_","summary":"Удалить конкурента","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"competitor_search","x-access-policy":"working","x-api-requests":1}},"/research/videos":{"get":{"operationId":"get_research_videos","summary":"Архив: competitorId/runId, даты, minViews/minMultiplier, viralStatus, keyword, sort, cursor, limit; language=all","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"reels_collection","x-access-policy":"working","x-api-requests":1}},"/research/videos/import-manual":{"post":{"operationId":"post_research_videos_import_manual","summary":"Импортировать видео вручную","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_import_manual","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"competitorId":{"type":"string","minLength":1,"maxLength":128},"platform":{"type":"string"},"url":{"type":"string","format":"uri"},"shortcode":{"type":["string","null"]},"videoId":{"type":["string","null"]},"caption":{"type":["string","null"],"maxLength":5000},"postedAt":{"type":["string","null"],"format":"date-time"},"views":{"type":["integer","null"],"minimum":0},"likes":{"type":["integer","null"],"minimum":0},"comments":{"type":["integer","null"],"minimum":0},"shares":{"type":["integer","null"],"minimum":0},"saves":{"type":["integer","null"],"minimum":0},"rawJson":{}},"required":["competitorId","url"],"additionalProperties":false}}}}}},"/research/videos/import-url":{"post":{"operationId":"post_research_videos_import_url","summary":"Импортировать URL видео с переданными метаданными","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"reels_import_url","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"competitorId":{"type":"string","minLength":1,"maxLength":128},"platform":{"type":"string"},"url":{"type":"string","format":"uri"},"shortcode":{"type":["string","null"]},"videoId":{"type":["string","null"]},"caption":{"type":["string","null"],"maxLength":5000},"postedAt":{"type":["string","null"],"format":"date-time"},"views":{"type":["integer","null"],"minimum":0},"likes":{"type":["integer","null"],"minimum":0},"comments":{"type":["integer","null"],"minimum":0},"shares":{"type":["integer","null"],"minimum":0},"saves":{"type":["integer","null"],"minimum":0},"rawJson":{}},"required":["competitorId","url"],"additionalProperties":false}}}}}},"/research/dream100-lists/export":{"post":{"operationId":"post_research_dream100_lists_export","summary":"Экспортировать строки Dream100 в CSV внутри JSON","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"csv":{"type":"string"}},"required":["filename","contentType","csv"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"research_export","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","properties":{"handle":{"type":"string"},"profileUrl":{"type":"string","format":"uri"},"score":{"type":"number","minimum":0,"maximum":100},"confidence":{"type":"number","minimum":0,"maximum":100},"followerCount":{"type":["integer","null"],"minimum":0},"reasons":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"recentViralEvidence":{"type":"object","properties":{"bestUrl":{"type":["string","null"],"format":"uri"}},"required":[],"additionalProperties":false}},"required":["handle","profileUrl","score","confidence","followerCount","reasons"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}}}},"/research/parser-profiles":{"get":{"operationId":"get_research_parser_profiles","summary":"Список профилей парсинга; cursor и limit 1–100 (по умолчанию 20)","tags":["research"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_research_parser_profiles","summary":"Создать профиль парсинга","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cookies":{"type":"string","minLength":1,"maxLength":262144,"writeOnly":true},"name":{"type":"string","maxLength":100},"proxy":{"type":"string","maxLength":2048,"writeOnly":true}},"required":["cookies"],"additionalProperties":false}}}}}},"/research/parser-profiles/{id}":{"get":{"operationId":"get_research_parser_profiles_id_","summary":"Карточка профиля без cookies и реквизитов прокси","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1},"patch":{"operationId":"patch_research_parser_profiles_id_","summary":"Изменить профиль: cookies, proxy, name, enabled или validate","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"cookies":{"type":"string","minLength":1,"maxLength":262144,"writeOnly":true},"name":{"type":"string","maxLength":100},"proxy":{"type":"string","maxLength":2048,"writeOnly":true}},"required":["cookies"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"validate"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","maxLength":100}},"required":["name"],"additionalProperties":false},{"type":"object","properties":{"proxy":{"type":"string","maxLength":2048,"writeOnly":true}},"required":["proxy"],"additionalProperties":false}]}}}}},"delete":{"operationId":"delete_research_parser_profiles_id_","summary":"Удалить профиль парсинга","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1}},"/research/parser-profiles/{id}/status":{"get":{"operationId":"get_research_parser_profiles_id_status","summary":"Безопасное состояние профиля","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/parser-profiles/login":{"post":{"operationId":"post_research_parser_profiles_login","summary":"Создать пакет входа в профили парсинга","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"statusUrl":{"type":"string"}},"required":["id","status","statusUrl"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"string","minLength":1,"maxLength":65536,"writeOnly":true}},"required":["accounts"],"additionalProperties":false}}}}}},"/research/parser-profiles/login/{id}":{"get":{"operationId":"get_research_parser_profiles_login_id_","summary":"Результат пакета входа","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":"parser_profiles","x-access-policy":"working","x-api-requests":1}},"/research/parser-profiles/login/{id}/status":{"get":{"operationId":"get_research_parser_profiles_login_id_status","summary":"Безопасное состояние пакета входа","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/campaigns/preview":{"post":{"operationId":"post_research_campaigns_preview","summary":"Проверить автоответ Research без запуска","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string","minLength":1,"maxLength":128},"reelUrl":{"type":"string","format":"uri"},"instagramAccountId":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"goal":{"type":"string"},"keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"matchAnyWord":{"type":"boolean"},"dmMessage":{"type":"string","minLength":1,"maxLength":1000},"linkButtonLabel":{"type":"string"},"leadMagnetUrl":{"type":"string"},"publicReplyEnabled":{"type":"boolean"},"publicReplyMessage":{"type":"string"},"followUpEnabled":{"type":"boolean"},"followUpMessage":{"type":"string"},"followUpDelayMinutes":{"type":"integer","minimum":0,"maximum":1440},"isActive":{"type":"boolean"},"dryRun":{"const":true,"default":true}},"required":["dmMessage"],"additionalProperties":false}}}}}},"/research/campaigns":{"post":{"operationId":"post_research_campaigns","summary":"Создать автоответ из Reel; dryRun возвращает preview (200)","tags":["research"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:write","x-billing-feature":"automations","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string","minLength":1,"maxLength":128},"reelUrl":{"type":"string","format":"uri"},"instagramAccountId":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"goal":{"type":"string"},"keywords":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"matchAnyWord":{"type":"boolean"},"dmMessage":{"type":"string","minLength":1,"maxLength":1000},"linkButtonLabel":{"type":"string"},"leadMagnetUrl":{"type":"string"},"publicReplyEnabled":{"type":"boolean"},"publicReplyMessage":{"type":"string"},"followUpEnabled":{"type":"boolean"},"followUpMessage":{"type":"string"},"followUpDelayMinutes":{"type":"integer","minimum":0,"maximum":1440},"isActive":{"type":"boolean"},"dryRun":{"type":"boolean","default":false}},"required":["dmMessage"],"additionalProperties":false}}}}}},"/research/hashtag-runs/{id}/status":{"get":{"operationId":"get_research_hashtag_runs_id_status","summary":"Безопасное состояние исследования хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/research/reels/hashtags/{id}/status":{"get":{"operationId":"get_research_reels_hashtags_id_status","summary":"Безопасное состояние исследования хештегов","tags":["research"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string"},"progress":{"anyOf":[{"type":"null"},{"type":"object","properties":{"completed":{"type":"integer","minimum":0},"total":{"type":["integer","null"],"minimum":0}},"required":["completed","total"],"additionalProperties":false}]},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"research:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/account":{"get":{"operationId":"get_account","summary":"Рабочее пространство и владелец","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"image":{"type":["string","null"]}},"required":["id","name","email","image"],"additionalProperties":false}},"required":["id","name","createdAt","owner"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"account:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/billing":{"get":{"operationId":"get_billing","summary":"Тариф, подписка и использование","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object"}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"billing:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/billing/checkout":{"get":{"operationId":"get_billing_checkout","summary":"Тарифы, способы оплаты и счета","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object"}},"providers":{"type":"array","items":{"type":"object"}},"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"testMode":{"type":"boolean"},"status":{"type":"string"},"checkoutUrl":{"type":["string","null"]},"planName":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","provider","testMode","status","checkoutUrl","planName","amountMinor","currency","createdAt"],"additionalProperties":false}}},"required":["plans","providers","checkouts"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"billing:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0},"post":{"operationId":"post_billing_checkout","summary":"Создать счёт на оплату","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"testMode":{"type":"boolean"},"status":{"type":"string"},"checkoutUrl":{"type":["string","null"]},"planName":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","provider","testMode","status","checkoutUrl","planName","amountMinor","currency","createdAt"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"billing:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":100},"provider":{"type":"string","enum":["YOOKASSA","ROBOKASSA","NOWPAYMENTS"]}},"required":["planId","provider"],"additionalProperties":false}}}}}},"/billing/checkout/{id}":{"get":{"operationId":"get_billing_checkout_id_","summary":"Счёт без платёжных секретов","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"testMode":{"type":"boolean"},"status":{"type":"string"},"checkoutUrl":{"type":["string","null"]},"planName":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","provider","testMode","status","checkoutUrl","planName","amountMinor","currency","createdAt"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"billing:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/billing/checkout/{id}/status":{"get":{"operationId":"get_billing_checkout_id_status","summary":"Состояние счёта","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"billing:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/affiliates":{"get":{"operationId":"get_affiliates","summary":"Партнёрский кабинет","tags":["core"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}},{"name":"withdrawalPage","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100000,"default":1}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object"}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"affiliates:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/affiliates/wallet":{"patch":{"operationId":"patch_affiliates_wallet","summary":"Сохранить или удалить кошелёк владельца","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object"}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"affiliates:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"walletAddress":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["walletAddress"],"additionalProperties":false}}}}}},"/affiliates/withdrawals":{"post":{"operationId":"post_affiliates_withdrawals","summary":"Создать заявку на вывод","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"currency":{"type":"string"},"amountMinor":{"type":"string"},"usdtCents":{"type":"string"},"walletAddress":{"type":"string"},"exchangeRate":{"type":"string"},"status":{"type":"string"},"txHash":{"type":["string","null"]},"adminNote":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"dueAt":{"type":"string","format":"date-time"},"paidAt":{"type":["string","null"],"format":"date-time"}},"required":["id","currency","amountMinor","usdtCents","walletAddress","exchangeRate","status","txHash","adminNote","createdAt","dueAt","paidAt"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"affiliates:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"amountMinor":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}},"required":["currency","amountMinor"],"additionalProperties":false}}}}}},"/affiliates/withdrawals/{id}/status":{"get":{"operationId":"get_affiliates_withdrawals_id_status","summary":"Состояние заявки на вывод","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"affiliates:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/instagram/connection-attempts":{"post":{"operationId":"post_instagram_connection_attempts","summary":"Начать подключение с подтверждением владельца в браузере","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"201":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","SUCCEEDED","FAILED","EXPIRED","UNKNOWN"]},"expiresAt":{"type":"string","format":"date-time"},"instagramAccountId":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time"},"confirmationUrl":{"type":"string","format":"uri"},"statusUrl":{"type":"string"}},"required":["id","status","expiresAt","instagramAccountId","errorCode","updatedAt","confirmationUrl","statusUrl"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}}}},"/instagram/connection-attempts/{id}":{"get":{"operationId":"get_instagram_connection_attempts_id_","summary":"Попытка подключения Instagram","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","SUCCEEDED","FAILED","EXPIRED","UNKNOWN"]},"expiresAt":{"type":"string","format":"date-time"},"instagramAccountId":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time"},"confirmationUrl":{"type":"string","format":"uri"},"statusUrl":{"type":"string"}},"required":["id","status","expiresAt","instagramAccountId","errorCode","updatedAt","confirmationUrl","statusUrl"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/instagram/connection-attempts/{id}/status":{"get":{"operationId":"get_instagram_connection_attempts_id_status","summary":"Состояние подключения Instagram","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/instagram/disconnect":{"post":{"operationId":"post_instagram_disconnect","summary":"Отключить указанный или все аккаунты Instagram","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"disconnected":{"const":true}},"required":["disconnected"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string","minLength":1,"maxLength":200}},"required":[],"additionalProperties":false}}}}}},"/instagram/profile":{"get":{"operationId":"get_instagram_profile","summary":"Профиль Instagram","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"username":{"type":"string"},"name":{"type":["string","null"]},"profilePictureUrl":{"type":["string","null"]}}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:read","x-billing-feature":"instagram_profile_view","x-access-policy":"working","x-api-requests":1}},"/instagram/overview":{"get":{"operationId":"get_instagram_overview","summary":"Обзор публикаций Instagram","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"instagram:extended:read","x-billing-feature":"publication_analytics","x-access-policy":"working","x-api-requests":1}},"/instagram/conversations":{"get":{"operationId":"get_instagram_conversations","summary":"Список переписок","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"conversations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}},"account":{"type":"object","properties":{"id":{"type":"string"},"username":{"type":"string"},"instagramId":{"type":"string"}}}}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"inbox:read","x-billing-feature":"inbox","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_instagram_conversations","summary":"Отправить DM; UUID Idempotency-Key обязателен","tags":["core"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{}}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"inbox:write","x-billing-feature":"inbox","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string"},"recipientId":{"type":"string"},"text":{"type":"string","minLength":1,"maxLength":1000}},"required":["instagramAccountId","recipientId","text"]}}}}}},"/instagram/conversations/{id}":{"get":{"operationId":"get_instagram_conversations_id_","summary":"Сообщения переписки","tags":["core"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"fromMe":{"type":"boolean"},"createdTime":{"type":["string","null"]}}}}}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"inbox:read","x-billing-feature":"inbox","x-access-policy":"working","x-api-requests":1}},"/dashboard/stats":{"get":{"operationId":"get_dashboard_stats","summary":"Расширенная статистика; recentLogs требует logs:read","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"analytics:extended:read","x-billing-feature":"automation_analytics","x-access-policy":"working","x-api-requests":1}},"/logs":{"get":{"operationId":"get_logs","summary":"Пользовательский журнал сообщений","tags":["core"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"logs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"}}}}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"logs:read","x-billing-feature":"message_logs","x-access-policy":"working","x-api-requests":1}},"/content-lab/eligibility":{"get":{"operationId":"get_content_lab_eligibility","summary":"Доступность создания серии","tags":["content-lab"],"parameters":[{"name":"instagramAccountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object"}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":"content_lab","x-access-policy":"working","x-api-requests":1}},"/content-lab/account-analysis":{"get":{"operationId":"get_content_lab_account_analysis","summary":"Последние или лучшие Reels аккаунта","tags":["content-lab"],"parameters":[{"name":"instagramAccountId","in":"query","schema":{"type":"string"}},{"name":"mode","in":"query","schema":{"enum":["recent","top"],"default":"top"}},{"name":"after","in":"query","schema":{"type":"string","maxLength":4096}},{"name":"remaining","in":"query","schema":{"type":"integer","minimum":1,"maximum":24}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object"}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":"profile_analysis","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_content_lab_account_analysis","summary":"Создать серию из Reel","tags":["content-lab"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"experiment":{"type":"object"},"statusUrl":{"type":"string"}},"required":["id","experiment","statusUrl"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":"profile_analysis","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string"},"mediaId":{"type":"string"},"sourceCursor":{"type":"string","maxLength":4096},"requestedVariantCount":{"type":"integer","minimum":1,"maximum":20},"caption":{"type":"string","maxLength":2200},"captionMode":{"type":"string","enum":["ORIGINAL","AI"],"default":"ORIGINAL"}},"required":["instagramAccountId","mediaId","requestedVariantCount"]}}}}}},"/content-lab/analytics":{"get":{"operationId":"get_content_lab_analytics","summary":"Аналитика публикаций серии","tags":["content-lab"],"parameters":[{"name":"cursor","in":"query","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"pagination":{"type":"object"},"freshness":{"type":"object"},"incompletePage":{"type":"boolean"}}}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":"publication_analytics","x-access-policy":"working","x-api-requests":1}},"/content-lab/experiments":{"get":{"operationId":"get_content_lab_experiments","summary":"Список серий","tags":["content-lab"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"experiments":{"type":"array","items":{"type":"object"}}},"required":["experiments"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":"content_lab","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_content_lab_experiments","summary":"Создать серию из видео","tags":["content-lab"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"experiment":{"type":"object"},"statusUrl":{"type":"string"}},"required":["id","experiment","statusUrl"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":"series_create","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string"},"requestedVariantCount":{"type":"integer","minimum":1,"maximum":20},"caption":{"type":"string","maxLength":2200},"captionMode":{"type":"string","enum":["ORIGINAL","AI"],"default":"ORIGINAL"},"file":{"type":"string","format":"binary"}},"required":["instagramAccountId","requestedVariantCount","file"]}}}}}},"/content-lab/experiments/{experimentId}":{"get":{"operationId":"get_content_lab_experiments_experimentId_","summary":"Серия и варианты","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"experiment":{"type":"object"}},"required":["experiment"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":"content_lab","x-access-policy":"working","x-api-requests":1}},"/content-lab/experiments/{experimentId}/status":{"get":{"operationId":"get_content_lab_experiments_experimentId_status","summary":"Безопасное состояние серии","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/content-lab/experiments/{experimentId}/plan":{"post":{"operationId":"post_content_lab_experiments_experimentId_plan","summary":"Запланировать варианты серии","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"publications":{"type":"array","items":{"type":"object"}},"statusUrl":{"type":"string"}},"required":["publications","statusUrl"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":"publication_scheduling","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startAtUtc":{"type":"string","format":"date-time"},"intervalMinutes":{"type":"integer","minimum":1,"maximum":10080},"jitterMinutes":{"type":"integer","minimum":0,"maximum":30,"default":0},"scheduleTimezone":{"type":"string","default":"UTC"}},"required":["startAtUtc","intervalMinutes"]}}}}}},"/content-lab/experiments/{experimentId}/variants/{variantId}/caption":{"patch":{"operationId":"patch_content_lab_experiments_experimentId_variants_variantId_caption","summary":"Изменить описание варианта","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"variantId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"variant":{"type":"object"}},"required":["variant"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":"caption_editing","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"caption":{"type":"string","maxLength":2200},"captionVersion":{"type":"integer","minimum":0}},"required":["caption","captionVersion"]}}}}}},"/content-lab/experiments/{experimentId}/variants/{variantId}/schedule":{"post":{"operationId":"post_content_lab_experiments_experimentId_variants_variantId_schedule","summary":"Запланировать вариант","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"variantId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"publication":{"type":"object"},"statusUrl":{"type":"string"}},"required":["publication","statusUrl"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":"publication_scheduling","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledAtUtc":{"type":"string","format":"date-time"},"scheduleTimezone":{"type":"string"},"caption":{"type":"string","maxLength":2200},"captionVersion":{"type":"integer","minimum":0}},"required":["scheduledAtUtc","scheduleTimezone"]}}}}}},"/content-lab/experiments/{experimentId}/variants/{variantId}/cancel":{"post":{"operationId":"post_content_lab_experiments_experimentId_variants_variantId_cancel","summary":"Отменить публикацию варианта","tags":["content-lab"],"parameters":[{"name":"experimentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"variantId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"content-lab:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/publishing/posts":{"get":{"operationId":"get_publishing_posts","summary":"Список публикаций","tags":["publishing"],"parameters":[],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object"}}},"required":["posts"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:read","x-billing-feature":"instagram_publishing","x-access-policy":"working","x-api-requests":1},"post":{"operationId":"post_publishing_posts","summary":"Загрузить и запланировать публикацию","tags":["publishing"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"202":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"post":{"type":"object"},"schedulingError":{"type":["string","null"]},"statusUrl":{"type":"string"}},"required":["id","post","schedulingError","statusUrl"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:write","x-billing-feature":"publication_scheduling","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"instagramAccountId":{"type":"string"},"caption":{"type":"string","maxLength":2200},"file":{"type":"string","format":"binary"},"publicationTarget":{"type":"string","enum":["TRIAL","PROFILE"]},"scheduledAtUtc":{"type":"string","format":"date-time"},"scheduleTimezone":{"type":"string"}},"required":["instagramAccountId","file","publicationTarget","scheduledAtUtc","scheduleTimezone"]}}}}}},"/publishing/posts/{postId}":{"get":{"operationId":"get_publishing_posts_postId_","summary":"Публикация","tags":["publishing"],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"post":{"type":"object"}},"required":["post"]}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:read","x-billing-feature":"instagram_publishing","x-access-policy":"working","x-api-requests":1}},"/publishing/posts/{postId}/status":{"get":{"operationId":"get_publishing_posts_postId_status","summary":"Безопасное состояние публикации","tags":["publishing"],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:read","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}},"/publishing/posts/{postId}/reschedule":{"patch":{"operationId":"patch_publishing_posts_postId_reschedule","summary":"Перенести публикацию","tags":["publishing"],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"post":{"type":"object"},"statusUrl":{"type":"string"}},"required":["post","statusUrl"]}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:write","x-billing-feature":"publication_scheduling","x-access-policy":"working","x-api-requests":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledAtUtc":{"type":"string","format":"date-time"},"scheduleTimezone":{"type":"string"}},"required":["scheduledAtUtc","scheduleTimezone"]}}}}}},"/publishing/posts/{postId}/cancel":{"post":{"operationId":"post_publishing_posts_postId_cancel","summary":"Отменить публикацию","tags":["publishing"],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Повтор возвращает прежний результат; другое тело с тем же ключом — 409."}],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"progress":{"type":"null"},"updatedAt":{"type":"string","format":"date-time"},"errorCode":{"type":["string","null"]}},"required":["id","status","progress","updatedAt","errorCode"],"additionalProperties":false}}}}}},"202":{"description":"Операция выполняется или её исход UNKNOWN. Проверяйте statusUrl; внешнее действие автоматически не повторяется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOperation"}}}},"400":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ошибка API","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scope":"publishing:write","x-billing-feature":null,"x-access-policy":"maintenance","x-api-requests":0}}}}