openapi: 3.0.3 info: title: Inthegame API version: 1.0.0 description: 'Interactive in-stream overlay and viewer-engagement platform API for OTT/CTV. Two surfaces: adminApi (broadcaster/admin management of streamers, polls, trivia, ratings, wikis, shop, sponsors, prizes, analytics) and userApi (end-viewer play: register/login, answer polls/trivia/ratings, chat, leaderboard, shop). Converted from the provider-published Postman collection "Inthegame API Docs".' contact: name: Inthegame Support email: support@inthegame.io url: https://www.inthegame.io/ servers: - url: https://api-dev.inthegame.io description: Published API host (from Postman collection) tags: - name: admin - name: streamer - name: promotion - name: analytics - name: entity - name: item - name: moderationData - name: poll - name: category - name: rating - name: shop - name: sponsor - name: translations - name: trivia - name: uploads - name: user - name: wiki - name: general - name: leaderboard - name: chat - name: socket components: securitySchemes: AdminToken: type: apiKey in: header name: Authorization description: Admin API token issued after login to the admin panel (https://admintest.inthegame.io/); sent in the Authorization header. paths: /admin/currentUser: get: operationId: adminapiAdminGetcurrentuser summary: GetCurrentUser tags: - admin description: Gets current logged user object by token saved in cookies. Requested every time page loads for applying some actions on server. responses: '200': description: API Test content: application/json: schema: type: object example: name: api_tester password: 5d93ceb70e2bf5daa84ec3d0cd2c731a email: leonid.arenshteyn@inthegame.io broadcaster_name: api_tester type: moderator _id: $id: 5fbce6c58703d05e5a73b6f4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/analytics/getParameters: get: operationId: adminapiAnalyticsGetparameters summary: GetParameters tags: - analytics description: Get help data for drop down in filter parameters: - name: per-page in: query required: false schema: type: string example: '10000' responses: '200': description: API Test content: application/json: schema: type: object example: devices: - deviceName: Android - deviceName: iPhone - deviceName: iPad - deviceName: BlackBerry platforms: - platformName: mobile - platformName: web countries: - countryCode: US countryName: United States - countryCode: IL countryName: Israel browsers: - browserName: Chrome - browserName: Safari - browserName: Firefox - browserName: MSIE type: new '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/analytics/getReport: get: operationId: adminapiAnalyticsGetreport summary: GetReport tags: - analytics description: Get report for analytics user actions from client (activities) responses: '200': description: API Test content: application/json: schema: type: object example: report: - module: Rating impressions: 2 engagements: 0 engagementRatio: 0 clicks: 0 ctr: 0 subModules: - module: Harry Potter impressions: 2 engagements: 0 ctr: 0 clicks: 0 engagementRatio: 0 - module: Polls impressions: 2 engagements: 0 engagementRatio: 0 clicks: 0 ctr: 0 subModules: - module: Test poll impressions: 2 engagements: 0 ctr: 0 clicks: 0 engagementRatio: 0 - module: Quiz impressions: 1 engagements: 0 engagementRatio: 0 clicks: 0 ctr: 0 subModules: - module: Which year Harry Potter was born? impressions: 1 engagements: 0 ctr: 0 clicks: 0 engagementRatio: 0 - module: Wiki impressions: 5 engagements: 0 engagementRatio: 0 clicks: 0 ctr: 0 subModules: - module: Test Wiki impressions: 5 engagements: 0 ctr: 0 clicks: 0 engagementRatio: 0 - module: Chat impressions: 1 engagements: 1 engagementRatio: 1 clicks: 0 ctr: 0 subModules: [] - module: Account impressions: 1 engagements: 1 engagementRatio: 1 clicks: 0 ctr: 0 subModules: [] type: new '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/entity/create: post: operationId: adminapiEntityCreate summary: Create tags: - entity description: Send new entity object to save and return it as db object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string thumbnail: type: string example: name: Test Entity thumbnail: '' responses: '200': description: API Test content: application/json: schema: type: object example: entity: name: Test Entity user_id: 5fbce6c58703d05e5a73b6f4 thumbnail: '' _id: $id: 5fbd14d40174d8346b7cceb4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/entity/delete/{id}: post: operationId: adminapiEntityDelete summary: Delete tags: - entity description: Send entity id to delete it from db parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/entity/getAll: get: operationId: adminapiEntityGetall summary: GetAll tags: - entity description: Return entities list to admin panel responses: '200': description: API Test content: application/json: schema: type: object example: entities: - name: Test entity user_id: 5fbce6c58703d05e5a73b6f4 thumbnail: '' _id: $id: 5fbcf1b14ad5926a962b7f97 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/entity/getById/{id}: get: operationId: adminapiEntityGetbyid summary: GetById tags: - entity description: Return entity object selected by given id parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: entity: name: Test entity user_id: 5fbce6c58703d05e5a73b6f4 thumbnail: '' _id: $id: 5fbcf1b14ad5926a962b7f97 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/entity/update/{id}: post: operationId: adminapiEntityUpdate summary: Update tags: - entity description: Send entity object to update in db with given id and return updated entity parameters: - name: id in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string user_id: type: string thumbnail: type: string _id: type: string example: name: Test Entity user_id: 5fbce6c58703d05e5a73b6f4 thumbnail: '' _id: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: entity: name: Test Entity user_id: 5fbce6c58703d05e5a73b6f4 thumbnail: '' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/create: post: operationId: adminapiItemCreate summary: Create tags: - item description: Send new item object to save and return it as db object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string alias: type: string status: type: string category: type: string type: type: string image: type: string shortcut: type: string item_order: type: string game_id: type: string game: type: string example: name: Test alias: '' status: active category: '' type: thumbnail image: '0' shortcut: Test item_order: '1' game_id: 5fbceda5636497107a1cbdf3 game: Test category responses: '200': description: API Test content: application/json: schema: type: object example: item: user_id: 5fbce6c58703d05e5a73b6f4 broadcaster_name: api_tester name: Test shortcut: Test item_order: 1 status: active type: thumbnail game_id: 5fbceda5636497107a1cbdf3 thumbnail: '' _id: $id: 5fbd171198ffc537f676f555 id: 5fbd171198ffc537f676f555 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/delete/{id}: get: operationId: adminapiItemDelete summary: Delete tags: - item description: Send item id to delete it from db parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/getAll: get: operationId: adminapiItemGetall summary: GetAll tags: - item description: Send request to get items list by filter options responses: '200': description: API Test content: application/json: schema: type: object example: items: - user_id: 5fbce6c58703d05e5a73b6f4 broadcaster_name: api_tester name: zombie shortcut: zombie item_order: 1 status: active type: thumbnail game_id: 0 thumbnail: /uploads/products/rImage1123.png _id: $id: 5fbcee5aa759e61e0f7b0b87 pagination: total: 1 currentPage: '1' totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/getById/{id}: get: operationId: adminapiItemGetbyid summary: GetById tags: - item description: Return item object selected by given id parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: item: user_id: 5fbce6c58703d05e5a73b6f4 broadcaster_name: api_tester name: zombie shortcut: zombie item_order: 1 status: active type: thumbnail game_id: 0 thumbnail: /uploads/products/rImage1123.png _id: $id: 5fbcee5aa759e61e0f7b0b87 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/importDefaultAvatars: post: operationId: adminapiItemImportdefaultavatars summary: ImportDefaultAvatars tags: - item description: Return status success if default avatrs imported in db responses: '200': description: API Test content: application/json: schema: type: object example: added: success '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/items/update/{id}: post: operationId: adminapiItemUpdate summary: Update tags: - item description: Send item object to update in db with given id and return updated item parameters: - name: id in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: user_id: type: string broadcaster_name: type: string name: type: string shortcut: type: string item_order: type: string status: type: string type: type: string game_id: type: string thumbnail: type: string _id: type: string example: user_id: 5fbce6c58703d05e5a73b6f4 broadcaster_name: api_tester name: Test shortcut: Test item_order: '1' status: active type: thumbnail game_id: 5fbceda5636497107a1cbdf3 thumbnail: '' _id: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: item: user_id: 5fbce6c58703d05e5a73b6f4 broadcaster_name: api_tester name: Test shortcut: Test item_order: 1 status: active type: thumbnail game_id: 5fbceda5636497107a1cbdf3 thumbnail: '' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/league/create_new: post: operationId: ratingCategoryCreate summary: Create tags: - category description: Send new category object to save and return it as db object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string shortcut: type: string status: type: string image: type: string example: name: New Category shortcut: new status: active image: '' responses: '200': description: API Test content: application/json: schema: type: object example: league: name: New Category shortcut: new status: active user_id: 5fbce6c58703d05e5a73b6f4 image: '' _id: $id: 5fbd1bb85424bf3aaf679678 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/league/delete_new/{id}: post: operationId: ratingCategoryDelete summary: Delete tags: - category description: Send category id to delete it from db parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/league/getActive_New: get: operationId: ratingCategoryGetactivecategories summary: GetActiveCategories tags: - category description: Send request to get categories list by filter options responses: '200': description: API Test content: application/json: schema: type: object example: leagues: - name: Test category shortcut: test status: active user_id: 5fbce6c58703d05e5a73b6f4 image: '' _id: $id: 5fbceda5636497107a1cbdf3 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/league/getById_New/{id}: get: operationId: ratingCategoryGetbyid summary: GetById tags: - category description: Return category object selected by given id parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: league: name: Test category shortcut: test status: active user_id: 5fbce6c58703d05e5a73b6f4 image: '' _id: $id: 5fbceda5636497107a1cbdf3 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/league/update_new/{id}: post: operationId: ratingCategoryUpdate summary: Update tags: - category description: Send category object to update in db with given id and return updated category parameters: - name: id in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string shortcut: type: string status: type: string user_id: type: string image: type: string _id: type: string example: name: New Category shortcut: new status: active user_id: 5fbce6c58703d05e5a73b6f4 image: '' _id: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: league: name: New Category shortcut: new status: active user_id: 5fbce6c58703d05e5a73b6f4 image: '' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/moderatorData/getModeratorDataByUserIdOrCreate/{user_id}: get: operationId: adminapiModerationdataGetbyuseridorcreate summary: GetByUserIdOrCreate tags: - moderationData description: Get broadcaster settings moderation data by user id or create it if it doesn't exist in db parameters: - name: user_id in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: moderatorData: user_id: 5fbce6c58703d05e5a73b6f4 banList: [] profanityList: '' useCustomProfanity: true customCSS: '' levelsDefinition: - level: 1 name: novice expoints: 50 - level: 2 name: advanced expoints: 300 - level: 3 name: pro expoints: 1000 - level: 4 name: legendary expoints: 5000 streamer: chat_url: '' stream_url: '' registration_bonus: 0 streamSourceType: '' game: '' game_id: null position: 0 modules: logo: true predictions: true predictions_menu: true leaderboard: true leaderboard_menu: true account: true account_menu: true shouts: true shouts_menu: true quiz: true quiz_menu: true polls: true polls_menu: true contact: true contact_menu: true chat: true chat_menu: true wiki: false wiki_menu: false rating: false rating_menu: false retention: false close: false shop: true shop_menu: true clocks: [] offersInterval: 0 chatDelay: 0 streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki broadcaster_name: api_tester _id: $id: 5fbcf1b4a759e61e0f7b0bc4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/moderatorData/getModeratorDataCurrentUser: get: operationId: adminapiModerationdataGetbycurrentuser summary: GetByCurrentUser tags: - moderationData description: Return moderation data of current broadcaster responses: '200': description: API Test content: application/json: schema: type: object example: moderatorData: user_id: 5fbce6c58703d05e5a73b6f4 banList: [] profanityList: '' useCustomProfanity: true customCSS: '' levelsDefinition: - level: 1 name: novice expoints: 50 - level: 2 name: advanced expoints: 300 - level: 3 name: pro expoints: 1000 - level: 4 name: legendary expoints: 5000 streamer: chat_url: '' stream_url: '' registration_bonus: 0 streamSourceType: '' game: '' game_id: null position: 0 modules: logo: true predictions: true predictions_menu: true leaderboard: true leaderboard_menu: true account: true account_menu: true shouts: true shouts_menu: true quiz: true quiz_menu: true polls: true polls_menu: true contact: true contact_menu: true chat: true chat_menu: true wiki: false wiki_menu: false rating: false rating_menu: false retention: false close: false shop: true shop_menu: true clocks: [] offersInterval: 0 chatDelay: 0 streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki broadcaster_name: api_tester _id: $id: 5fbcf1b4a759e61e0f7b0bc4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/moderatorData/update/{dataId}: post: operationId: adminapiModerationdataUpdate summary: Update tags: - moderationData description: Send moderation data object to update in db with given id and return updated data parameters: - name: dataId in: path required: true schema: type: string responses: '200': description: Default content: text/plain: schema: type: string example: '{"moderatorData":{*****}}' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/create: post: operationId: adminapiPollCreate summary: Create tags: - poll description: Send new poll object to save and return it as db object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string type: type: string viewType: type: string question: type: string hideButtons: type: string answers: type: string expoints: type: string questionType: type: string example: name: Cinema type: streamer viewType: percentage question: Best Film ever hideButtons: '0' answers: '[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]' expoints: '150' questionType: poll responses: '200': description: API Test content: application/json: schema: type: object example: poll: name: Cinema type: streamer items: [] time_limit: 0 user_id: 5fbce6c58703d05e5a73b6f4 questionType: poll viewType: percentage question: Best Film ever image: '' hideButtons: 0 answers: - answer: Avatar image: '' reward: 0 isRewardSent: false answerSending: false - answer: LOTR image: '' reward: 0 isRewardSent: false answerSending: false - answer: Inception image: '' reward: 0 isRewardSent: false answerSending: false - answer: Avengers 4 image: '' reward: 0 isRewardSent: false answerSending: false - answer: Titanic image: '' reward: 0 isRewardSent: false answerSending: false - answer: Dark Knight image: '' reward: 0 isRewardSent: false answerSending: false expoints: '150' _id: $id: 5fbd1fc904e3c324c21aed48 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/delete/{pollId}: post: operationId: adminapiPollDelete summary: Delete tags: - poll description: Send poll id to delete it from db parameters: - name: pollId in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/getAll: get: operationId: adminapiPollGetall summary: GetAll tags: - poll description: Send request to get polls list by filter options responses: '200': description: API Test content: application/json: schema: type: object example: polls: - name: New Poll type: streamer items: - id: 5fbcee2e636497107a1cbdf4 name: test_channel time_limit: 0 user_id: 5fbce6c58703d05e5a73b6f4 questionType: poll viewType: percentage question: Test? image: '' hideButtons: 0 answers: - answer: Test image: '' reward: 0 isRewardSent: false answerSending: false - answer: Live image: '' reward: 0 isRewardSent: false answerSending: false expoints: '20' _id: $id: 5fbd07fc48196740b75d323b pagination: total: 1 currentPage: '1' totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/getById{pollId}: get: operationId: adminapiPollGetbyid summary: GetById tags: - poll description: Return poll object selected by given id parameters: - name: pollId in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: poll: name: New Poll type: streamer items: - id: 5fbcee2e636497107a1cbdf4 name: test_channel time_limit: 0 user_id: 5fbce6c58703d05e5a73b6f4 questionType: poll viewType: percentage question: Test? image: '' hideButtons: 0 answers: - answer: Test image: '' reward: 0 isRewardSent: false answerSending: false - answer: Live image: '' reward: 0 isRewardSent: false answerSending: false expoints: '20' _id: $id: 5fbd07fc48196740b75d323b '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/result/{pollId}: post: operationId: adminapiPollSendwinresult summary: SendWinResult tags: - poll description: Send request for sending win result of given poll answer to whole users in client parameters: - name: pollId in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: answer: type: string image: type: string reward: type: string isRewardSent: type: string answerSending: type: string example: answer: '2050' image: '' reward: '500' isRewardSent: 'false' answerSending: 'false' responses: '200': description: API Test content: application/json: schema: type: object example: pollAnswers: - answer: '2050' image: '' reward: '500' isRewardSent: true answerSending: true - answer: '2070' image: '' reward: '900' isRewardSent: false answerSending: false - answer: '2100' image: '' reward: '100' isRewardSent: false answerSending: false - answer: Never image: '' reward: '400' isRewardSent: false answerSending: false winners: 0 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/poll/update/{pollId}: post: operationId: adminapiPollUpdate summary: Update tags: - poll description: Send poll object to update in db with given id and return updated poll parameters: - name: pollId in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string type: type: string items: type: string time_limit: type: string user_id: type: string questionType: type: string viewType: type: string question: type: string image: type: string hideButtons: type: string answers: type: string expoints: type: string _id: type: string example: name: Cinema type: streamer items: '' time_limit: '0' user_id: 5fbce6c58703d05e5a73b6f4 questionType: poll viewType: percentage question: Best Film ever image: '' hideButtons: '0' answers: '[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]' expoints: '150' _id: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: poll: name: Cinema type: streamer items: [] time_limit: 0 questionType: poll viewType: percentage question: Best Film ever image: '' hideButtons: 0 answers: - answer: Avatar image: '' reward: 0 isRewardSent: false answerSending: false - answer: LOTR image: '' reward: 0 isRewardSent: false answerSending: false - answer: Inception image: '' reward: 0 isRewardSent: false answerSending: false - answer: Avengers 4 image: '' reward: 0 isRewardSent: false answerSending: false - answer: Titanic image: '' reward: 0 isRewardSent: false answerSending: false - answer: Dark Knight image: '' reward: 0 isRewardSent: false answerSending: false expoints: '150' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/prize/create: post: operationId: adminapiPromotionCreate summary: Create tags: - promotion description: Send new promotion object to save and return it as db object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string description: type: string url: type: string streamers: type: string type: type: string itemType: type: string viewType: type: string secondsDelay: type: string items: type: string content: type: string sponsor: type: string offersOptions: type: string meta: type: string example: name: Ads description: test url: '' streamers: '' type: '' itemType: '' viewType: '' secondsDelay: '0' items: '' content:
Wow
sponsor: 5fbcee9ce1a5930b1508c482 offersOptions: '[object Object]' meta: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: prize: name: Ads place: '' streamers: [] description: test url: '' thumbnail: '' itemType: null items: [] content: 'Wow
' sponsor: 5fbcee9ce1a5930b1508c482 type: null viewType: [] secondsDelay: 0 user_id: 5fbce6c58703d05e5a73b6f4 offersOptions: sendToChat: false chatMessage: '' interval: 0 meta: left: 0 top: 0 width: 0 height: 0 expoints: 0 _id: $id: 5fbd0f4baec04b6e69438292 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/prize/delete/{prizeId}: post: operationId: adminapiPromotionDelete summary: Delete tags: - promotion description: Send promotion id to delete it from db parameters: - name: prizeId in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/prize/getAll: get: operationId: adminapiPromotionGetall summary: GetAll tags: - promotion description: Send request to get promotions list responses: '200': description: API Test content: application/json: schema: type: object example: prizes: - name: test promo place: '' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel description: test url: test.com thumbnail: '' itemType: big items: [] content: 'Test promo
' sponsor: 5fbcee9ce1a5930b1508c482 type: null viewType: [] secondsDelay: 0 user_id: 5fbce6c58703d05e5a73b6f4 offersOptions: sendToChat: false chatMessage: '' interval: 0 meta: left: 0 top: 0 width: 0 height: 0 expoints: '10' _id: $id: 5fbd0f2898ffc537f676f529 - name: Ads place: '' streamers: [] description: test url: '' thumbnail: '' itemType: null items: [] content: 'Wow
' sponsor: 5fbcee9ce1a5930b1508c482 type: null viewType: [] secondsDelay: 0 user_id: 5fbce6c58703d05e5a73b6f4 offersOptions: sendToChat: false chatMessage: '' interval: 0 meta: left: 0 top: 0 width: 0 height: 0 expoints: 0 _id: $id: 5fbd0f4baec04b6e69438292 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/prize/getById/{id}: get: operationId: adminapiPromotionGetbyid summary: GetById tags: - promotion description: Return promotion object selected by given id parameters: - name: id in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: prize: name: test promo place: '' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel description: test url: test.com thumbnail: '' itemType: big items: [] content: 'Hello to all!!!
' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel meta: left: 250px top: 50px width: 150px height: 150px expoints: '10' type: html tweetUrl: '' prizes: [] '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/streamer/toggle/{streamerId}: post: operationId: adminapiStreamerToggleactivemode summary: ToggleActiveMode tags: - streamer description: Send streamer id to reflect active state parameters: - name: streamerId in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/streamer/update: post: operationId: adminapiStreamerUpdate summary: Update tags: - streamer description: Send streamer object to update in db with given id and return updated streamer requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string useUrl: type: string channel_name: type: string channel_id: type: string broadcaster_id: type: string pageUrl: type: string additionalPageSettings: type: string stream_url: type: string chat_url: type: string registration_bonus: type: string game: type: string game_id: type: string is_permanent: type: string is_featured: type: string status: type: string modules: type: string clocks: type: string streamSourceType: type: string moderators: type: string banList: type: string offersInterval: type: string direction: type: string user_id: type: string chatDelay: type: string profanityList: type: string useCustomProfanity: type: string streamerLogo: type: string wikiList: type: string additionalInfo: type: string languagesList: type: string customCSS: type: string hide_on_smartphone_portrait_mode: type: string approvalMessageMode: type: string broadcasterUseBlocks: type: string _id: type: string position: type: string example: name: Default Page useUrl: 'false' channel_name: new_page channel_id: new_page broadcaster_id: api_tester pageUrl: '' additionalPageSettings: '' stream_url: '' chat_url: '' registration_bonus: '' game: '' game_id: '' is_permanent: '1' is_featured: '0' status: '1' modules: '[object Object]' clocks: '' streamSourceType: '' moderators: '' banList: '' offersInterval: '0' direction: '0' user_id: 5fbce6c58703d05e5a73b6f4 chatDelay: '0' profanityList: '' useCustomProfanity: 'false' streamerLogo: '' wikiList: '' additionalInfo: '[object Object]' languagesList: '' customCSS: '' hide_on_smartphone_portrait_mode: 'true' approvalMessageMode: timer broadcasterUseBlocks: '[object Object]' _id: '[object Object]' position: '0' responses: '200': description: API Test content: application/json: schema: type: object example: streamer: name: Default Page useUrl: false channel_name: new_page channel_id: new_page broadcaster_id: api_tester pageUrl: '' additionalPageSettings: '' stream_url: '' chat_url: '' registration_bonus: '' game: '' game_id: '' is_permanent: 1 is_featured: 0 status: 1 modules: logo: true is_open_menu: false predictions: false predictions_menu: false leaderboard: true leaderboard_menu: true leaderboard_icon: false leaderboard_icon_image: '' account: true account_menu: true account_icon: false account_icon_image: '' shouts: false shouts_menu: false quiz: true polls: true polls_menu: true poll_icon: false poll_icon_image: '' contact: false contact_menu: false chat: false chat_menu: false wiki: false rating: false rating_menu: false rating_icon: false rating_icon_image: '' retention: false close: false shop: true shop_menu: true clocks: [] streamSourceType: '' moderators: [] banList: [] offersInterval: 0 direction: 0 user_id: 5fbce6c58703d05e5a73b6f4 chatDelay: 0 profanityList: '' useCustomProfanity: false streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki languagesList: [] customCSS: '' hide_on_smartphone_portrait_mode: true approvalMessageMode: timer broadcasterUseBlocks: chat: customCoords: x: 0 y: 0 useCustomCoords: false rating: customCoords: x: 0 y: 0 useCustomCoords: false polls: customCoords: x: 0 y: 0 useCustomCoords: false position: 0 _id: $id: 5fbcf7a7ddbd2068304f33d6 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/translations/add/{key}/{language}: post: operationId: adminapiTranslationsAdd summary: Add tags: - translations description: Create translation item by generated key and language id parameters: - name: key in: path required: true schema: type: string - name: language in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string question: type: string options: type: string example: name: Тестовый question: Вам хорошо? options: Да,Нет,Не очень responses: '200': description: API Test content: application/json: schema: type: object example: translation: user_id: 5fbce6c58703d05e5a73b6f4 language: ru key: poll-5fbcf049f2d31b5bc07df5ce values: name: Тестовый question: Вам хорошо? options: - Да - Нет - Не очень _id: $id: 5fbfaa8cefd2bf3c6b5e7ae4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/translations/destroy/{language}/{key}: post: operationId: adminapiTranslationsDelete summary: Delete tags: - translations description: Delete selected translation item parameters: - name: language in: path required: true schema: type: string - name: key in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/translations/languagesList: get: operationId: adminapiTranslationsGetlanguageslist summary: GetLanguagesList tags: - translations description: Return language codes list responses: '200': description: API Test content: application/json: schema: type: object example: - he - de - ru - ko - jp '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/translations/list/{language}: get: operationId: adminapiTranslationsGetall summary: GetAll tags: - translations description: Get all translation for give language parameters: - name: language in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: - user_id: 5fbce6c58703d05e5a73b6f4 language: ru key: poll-5fbcf049f2d31b5bc07df5ce values: name: Тестовый question: Вам хорошо? options: - Да - Нет - Не очень _id: $id: 5fbfaa8cefd2bf3c6b5e7ae4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/translations/update/{key}/{language}: post: operationId: adminapiTranslationsUpdate summary: Update tags: - translations description: Update selected translation item parameters: - name: key in: path required: true schema: type: string - name: language in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string question: type: string options: type: string example: name: Тестовый question: Вам хорошо? options: Да,Нет,Не очень responses: '200': description: API Test content: application/json: schema: type: object example: translation: user_id: 5fbce6c58703d05e5a73b6f4 values: name: Тестовый question: Вам хорошо? options: - Да - Нет - Не очень key: poll-5fbcf049f2d31b5bc07df5ce language: ru '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/trivia/create: post: operationId: adminapiTriviaCreate summary: Create tags: - trivia description: Create trivia in db and return new object requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: type: type: string question: type: string category: type: string correctAnswer: type: string incorrectAnswers: type: string pointsGiven: type: string timePerQuestion: type: string expoints: type: string delayUntilAnswer: type: string example: type: '' question: Test category: '' correctAnswer: '123' incorrectAnswers: '[object Object],[object Object],[object Object]' pointsGiven: '50' timePerQuestion: '50' expoints: '100' delayUntilAnswer: '10' responses: '200': description: API Test content: application/json: schema: type: object example: trivia: question: Test pointsGiven: 50 timePerQuestion: 50 delayUntilAnswer: 10 category: '' user_id: 5fbce6c58703d05e5a73b6f4 correctAnswer: '123' expoints: '100' incorrectAnswers: - '321' - '231' - '132' _id: $id: 5fbfad2a7fc1bb4f5411a114 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/trivia/delete/{triviaId}: post: operationId: adminapiTriviaDelete summary: Delete tags: - trivia description: Remove selected trivia from db parameters: - name: triviaId in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/trivia/getAll: get: operationId: adminapiTriviaGetall summary: GetAll tags: - trivia description: Return trivia list with filter options responses: '200': description: API Test content: application/json: schema: type: object example: trivias: - question: What does admin want? pointsGiven: 1500 timePerQuestion: 20 delayUntilAnswer: 0 category: '' user_id: 5fbce6c58703d05e5a73b6f4 correctAnswer: Tambourine expoints: '1500' incorrectAnswers: - Windows - Cry - Vacation _id: $id: 5fbd096648196740b75d323c pagination: total: 1 currentPage: '1' totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/trivia/getById/{triviaId}: get: operationId: adminapiTriviaGetbyid summary: GetById tags: - trivia description: Return trivia by given id parameters: - name: triviaId in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: trivia: question: What does admin want? pointsGiven: 1500 timePerQuestion: 20 delayUntilAnswer: 0 category: '' user_id: 5fbce6c58703d05e5a73b6f4 correctAnswer: Tambourine expoints: '1500' incorrectAnswers: - answer: Windows - answer: Cry - answer: Vacation _id: $id: 5fbd096648196740b75d323c '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/trivia/update/{triviaId}: post: operationId: adminapiTriviaUpdate summary: Update tags: - trivia description: Update trivia with given id parameters: - name: triviaId in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: question: type: string pointsGiven: type: string timePerQuestion: type: string delayUntilAnswer: type: string category: type: string user_id: type: string correctAnswer: type: string expoints: type: string incorrectAnswers: type: string _id: type: string meta: type: string example: question: Test pointsGiven: '50' timePerQuestion: '50' delayUntilAnswer: '10' category: '' user_id: 5fbce6c58703d05e5a73b6f4 correctAnswer: '123' expoints: '100' incorrectAnswers: '[object Object],[object Object],[object Object]' _id: '[object Object]' meta: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: trivia: question: Test category: '' pointsGiven: 50 timePerQuestion: 50 delayUntilAnswer: 10 correctAnswer: '123' expoints: '100' incorrectAnswers: - '321' - '231' - '132' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/user/getAll: get: operationId: adminapiUserGetall summary: GetAll tags: - user description: Return channel users list registered in app responses: '200': description: API Test content: application/json: schema: type: object example: users: - name: API Tester email: '' password: 0f79fd51905ba6398c8a7a19201e5b23 type: registered thumbnail: /uploads/users/avatars/df9d28dc86881e76006be92ddcf67b63.png broadcaster_id: api_tester token: a9f27e5dca47b90f8e679221f83976bc amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 1570 level: 3 stats: winsCount: 0 betsCount: 2 currentStreak: 0 status: 1 updated: true available_points: 1570 about: '' _id: $id: 5fbf866a3ba52a1ded3c0f2e - name: Cool User email: '' password: 9ef66123f15844a765df3edbf9e0d33e type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: f857f0b284ad18779a8855304da069ed amount_of_credits: 15 amount_of_credits_won: 50 available_shouts: 0 expirience_points: 300 level: 2 stats: winsCount: 1 betsCount: 1 currentStreak: 1 status: 1 updated: true amount_of_credits_won_temp: 50 available_points: 300 active: true polls: 5fbd1fc904e3c324c21aed48: Inception ratings: 5fbcf1325e784e3816715935: '5' about: '' _id: $id: 5fbfbf7b7938293c320ac1dc - name: UserForBan email: banner@ban.com password: 16be0bcb0d7dbd781c5ca5ae01a2ad8c type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: f4c2ad1894bed34ae47b7a00df40dc84 amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 0 level: 1 stats: winsCount: 0 betsCount: 0 currentStreak: 0 status: 1 updated: true about: Banned _id: $id: 5fbff72dda6e9d2d691e0953 pagination: total: 3 currentPage: 1 totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/user/getAllByBroadcaster: get: operationId: adminapiUserGetallbybroadcaster summary: GetAllByBroadcaster tags: - user description: Return all registered users in current broadcaster responses: '200': description: API Test content: application/json: schema: type: object example: users: - name: Guest_2249igw9180 email: '' password: cca394632dfcb9b3d429a23295e16a90 type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: e42baf5bc3c8f35f956d2625b6ae12bc amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 70 level: 1 stats: winsCount: 0 betsCount: 1 currentStreak: 0 status: 1 updated: false available_points: 70 _id: $id: 5fbd015287494515200b14c4 - name: Guest_2525uif5038 email: '' password: 68dc638afb019aa92b09e478593d4420 type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: 587ef2ce058e16a5417c1cdcdc564b53 amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 0 level: 1 stats: winsCount: 0 betsCount: 0 currentStreak: 0 status: 1 updated: false _id: $id: 5fbd09c57b9b68474c5b1b5f - name: Guest_5725vlo6829 email: '' password: 92f30643ce97edcbd222031118c843d3 type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: 50eebc6faa1a98b5bf7fc6d3333d8406 amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 0 level: 1 stats: winsCount: 0 betsCount: 0 currentStreak: 0 status: 1 updated: false _id: $id: 5fbd4225f74c7c76ee3a58d9 - name: Guest_1500ran1610 email: '' password: d60b0ccb361c00b503d7a5ce7c7df757 type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: 6112cb40c1f12b89dd4e673a37a6c0fd amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 0 level: 1 stats: winsCount: 0 betsCount: 0 currentStreak: 0 status: 1 updated: false _id: $id: 5fbe00ff05b6c2228f63f49d - name: Guest_4641gka885 email: '' password: 0f79fd51905ba6398c8a7a19201e5b23 type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester token: a9f27e5dca47b90f8e679221f83976bc amount_of_credits: 15 amount_of_credits_won: 0 available_shouts: 0 expirience_points: 0 level: 1 stats: winsCount: 0 betsCount: 0 currentStreak: 0 status: 1 updated: false _id: $id: 5fbf866a3ba52a1ded3c0f2e pagination: total: 5 currentPage: '1' totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/user/loginNew: get: operationId: adminapiUserLogin summary: Login tags: - user description: Request to login in admin system, return token and user id, token will be saved in cookies, all rest requests take it for Authentication header for api permission parameters: - name: username in: query required: false schema: type: string - name: password in: query required: false schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: token: 7c465d9a77540b686e818320c660d964 userId: 5fbce6c58703d05e5a73b6f4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/user/register: get: operationId: adminapiUserRegister summary: Register tags: - user description: Register new user parameters: - name: username in: query required: false schema: type: string - name: password in: query required: false schema: type: string - name: email in: query required: false schema: type: string - name: broadcasterName in: query required: false schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: userId: 5fbfb64831bbd74d176cde62 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/wiki/create: post: operationId: adminapiWikiCreate summary: Create tags: - wiki description: Create new wiki requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: name: type: string icon: type: string showInMenu: type: string content: type: string streamers: type: string type: type: string tweetUrl: type: string meta: type: string example: name: Title icon: '' showInMenu: 'false' content:header
streamers: '' type: html tweetUrl: '' meta: '[object Object]' responses: '200': description: API Test content: application/json: schema: type: object example: name: Title icon: '' showInMenu: false content: 'header
' streamers: [] type: html tweetUrl: '' meta: left: 50px top: 50px width: 50px height: 50px expoints: '500' '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/wiki/delete/{wikiId}: post: operationId: adminapiWikiDelete summary: Delete tags: - wiki description: Remove selected wiki parameters: - name: wikiId in: path required: true schema: type: string responses: '200': description: API Test '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/wiki/getAll: get: operationId: adminapiWikiGetall summary: GetAll tags: - wiki description: Return wiki list responses: '200': description: API Test content: application/json: schema: type: object example: wikis: - name: Test Wiki showInMenu: false icon: '' content: 'Hello to all!!!
' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel user_id: 5fbce6c58703d05e5a73b6f4 meta: left: 250px top: 50px width: 150px height: 150px expoints: '10' type: html tweetUrl: '' _id: $id: 5fbd060eaec04b6e6943828b pagination: total: 1 currentPage: '1' totalPages: 1 '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/wiki/getById/{wikiId}: get: operationId: adminapiWikiGetbyid summary: GetById tags: - wiki description: Return wiki with given id parameters: - name: wikiId in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: wiki: name: Test Wiki showInMenu: false icon: '' content: 'Hello to all!!!
' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel user_id: 5fbce6c58703d05e5a73b6f4 meta: left: 250px top: 50px width: 150px height: 150px expoints: '10' type: html tweetUrl: '' _id: $id: 5fbd060eaec04b6e6943828b incorrectAnswers: [] '404': description: Not found '500': description: Server error security: - AdminToken: [] /adminApi/wiki/update/{wikiId}: post: operationId: adminapiWikiUpdate summary: Update tags: - wiki description: Update selected wiki parameters: - name: wikiId in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: wiki: name: Title showInMenu: false icon: '' content: 'header
' streamers: [] meta: left: 50px top: 50px width: 50px height: 50px expoints: '500' type: html tweetUrl: '' '404': description: Not found '500': description: Server error security: - AdminToken: [] /leaderboards/leaderboardEngine_new_2: get: operationId: socketLeaderboard summary: Leaderboard tags: - socket description: Socket message returns winners array with info about won points, current streak responses: '200': description: SocketTest content: text/plain: schema: type: string example: "{\r\n \"0\": \"leaderboard\",\r\n \"1\": {\r\n \"winners\": [{\r\n\ \ \"amount_of_credits\": \"15\",\r\n \"amount_of_credits_won\":\ \ \"1500\",\r\n \"amount_of_credits_won_temp\": \"1500\",\r\n \"\ available_points\": \"1500\",\r\n \"available_shouts\": \"0\",\r\n \ \ \"broadcaster_id\": \"api_tester\",\r\n \"email\": \"\",\r\n \ \ \"expirience_points\": \"1500\",\r\n \"level\": \"3\",\r\n \"\ name\": \"Guest_0655shb1078\",\r\n \"password\": \"3c940a3a0e7a30" '404': description: Not found '500': description: Server error /upload/scanDir/streamer: post: operationId: adminapiUploadsScandir summary: ScanDir tags: - uploads description: Load on screen saved image responses: '200': description: API Test content: application/json: schema: type: object example: uploadPath: /uploads/streamers images: [] '404': description: Not found '500': description: Server error security: - AdminToken: [] /upload/uploadImage: post: operationId: adminapiUploadsUploadimage summary: UploadImage tags: - uploads description: 'Upload selected image to relevant directory on the server. Form data: file - file itself; terget: folder to upload' requestBody: content: multipart/form-data: schema: type: object properties: file: type: string target: type: string example: target: '{folder_to_upload}' responses: '200': description: API Test content: application/json: schema: type: object example: filepath: /uploads/entities/ee456eadddd6b031e22ae6df1f849964.3f4427d78a721b6281b681a528fbf5fe.png '404': description: Not found '500': description: Server error security: - AdminToken: [] /upload/uploadVideo: post: operationId: adminapiUploadsUploadvideo summary: UploadVideo tags: - uploads description: 'Upload selected video with form data: file - video format file binary; target - folder to upload' requestBody: content: multipart/form-data: schema: type: object properties: file: type: string target: type: string example: file: binary target: folder responses: '200': description: API Test content: application/json: schema: type: object example: filepath: /uploads/videos/streamers/2aa7f0ca05f87f6a0e7b4ddbb614a23e.fba66777a7fade4c142dc97eb8895c0b.mp4 '404': description: Not found '500': description: Server error security: - AdminToken: [] /userApi/analytics/add: post: operationId: userapiAnalyticsAdd summary: Add tags: - analytics description: add user activity to db requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: status: success '404': description: Not found '500': description: Server error /userApi/chat/banChatUser: post: operationId: userapiChatBanuser summary: BanUser tags: - chat description: Send user data for ban in chat requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: APITest content: application/json: schema: type: object example: name: Test page useUrl: false channel_name: test_channel channel_id: test_channel broadcaster_id: api_tester pageUrl: '' additionalPageSettings: '' stream_url: https://api-dev.inthegame.io/uploads/videos/streamers/9240e2fbfca8dcf912016b83541a6325.ba46792ede92a2eec53f35d8fd4c49e7.mp4 chat_url: '' registration_bonus: '' game: Test category game_id: 5fbceda5636497107a1cbdf3 is_permanent: 1 is_featured: 0 status: 1 modules: logo: true is_open_menu: false predictions: false predictions_menu: false leaderboard: true leaderboard_menu: true leaderboard_icon: false leaderboard_icon_image: '' account: true account_menu: true account_icon: false account_icon_image: '' shouts: false shouts_menu: false quiz: true polls: true polls_menu: true poll_icon: false poll_icon_image: '' contact: false contact_menu: false chat: true chat_menu: true wiki: true rating: true rating_menu: true rating_icon: false rating_icon_image: '' retention: false close: true shop: true shop_menu: true clocks: - id: 5fbd060eaec04b6e6943828b module: wiki timeToStay: '10' time: 0 simpleModule: null - id: 5fbd096648196740b75d323c simpleModule: null timeToStay: '10' module: quiz time: 15 - id: 5fbd07fc48196740b75d323b module: polls timeToStay: '10' time: '25' simpleModule: null - id: 5fbd09ff0174d8346b7cce86 module: wiki timeToStay: '10' time: '50' simpleModule: null streamSourceType: file moderators: - userId: 5fbfbf7b7938293c320ac1dc name: Cool User email: '' - userId: 5fbf866a3ba52a1ded3c0f2e name: API Tester email: '' banList: - userId: 5fbff72dda6e9d2d691e0953 name: UserForBan email: banner@ban.com offersInterval: 0 direction: 0 user_id: 5fbce6c58703d05e5a73b6f4 chatDelay: '15' profanityList: - '' useCustomProfanity: false streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki languagesList: [] customCSS: '' hide_on_smartphone_portrait_mode: true approvalMessageMode: manual broadcasterUseBlocks: chat: customCoords: x: 0 y: 0 useCustomCoords: false rating: customCoords: x: 0 y: 0 useCustomCoords: false polls: customCoords: x: 0 y: 0 useCustomCoords: false position: 0 moderator_data: - _id: $oid: 5fbcf1b4a759e61e0f7b0bc4 user_id: 5fbce6c58703d05e5a73b6f4 banList: [] profanityList: - '' useCustomProfanity: true customCSS: '' levelsDefinition: - level: 1 name: novice expoints: 50 - level: 2 name: advanced expoints: 300 - level: 3 name: pro expoints: 1000 - level: 4 name: legendary expoints: 5000 streamer: chat_url: '' stream_url: '' registration_bonus: 0 streamSourceType: '' game: '' game_id: null position: 0 modules: logo: true predictions: true predictions_menu: true leaderboard: true leaderboard_menu: true account: true account_menu: true shouts: true shouts_menu: true quiz: true quiz_menu: true polls: true polls_menu: true contact: true contact_menu: true chat: true chat_menu: true wiki: false wiki_menu: false rating: false rating_menu: false retention: false close: false shop: true shop_menu: true clocks: [] offersInterval: 0 chatDelay: 0 streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki broadcaster_name: api_tester _id: $id: 5fbcee2e636497107a1cbdf4 '404': description: Not found '500': description: Server error /userApi/chat/chatMessage: post: operationId: userapiChatSend summary: Send tags: - chat description: Send user message and return verified text to client requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: message: message: Hello Bro!Q!! username: Cool User userId: 5fbfbf7b7938293c320ac1dc '404': description: Not found '500': description: Server error /userApi/chat/deleteChatMessage: post: operationId: userapiChatDelete summary: Delete tags: - chat description: Delete message from chat with provided id requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: status: success '404': description: Not found '500': description: Server error /userApi/entity/add: post: operationId: userapiEntityAdd summary: Add tags: - entity description: Create entity by user choice requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: APITest content: application/json: schema: type: object example: answer: userId: '***' entityId: '***' entityName: '***' isAdded: true '404': description: Not found '500': description: Server error /userApi/entity/remove: post: operationId: userapiEntityRemove summary: Remove tags: - entity description: Delete entity from user entities requestBody: content: application/json: schema: type: object example: data: entityId: '***' channelId: '***' userToken: '***' responses: '200': description: Default content: application/json: schema: type: object example: status: success '404': description: Not found '500': description: Server error /userApi/general/getGeneralData: post: operationId: userapiGeneralGetgeneraldata summary: GetGeneralData tags: - general description: "Loads the following general data:\n - translations\n - levels\n - expoints" requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: translations: language: en countryCode: US userIp: 172.31.248.118 extendedData: levels: - id: '1' name: '1' points: '700' nickname: Apprentice open_event_id: '0' give_prize_id: '7' static_bet_limit: '500' - id: '2' name: '2' points: '1000' nickname: Scorer open_event_id: '0' give_prize_id: '7' static_bet_limit: '700' - id: '3' name: '3' points: '2000' nickname: Hawk open_event_id: '0' give_prize_id: '7' static_bet_limit: '900' - id: '4' name: '4' points: '4000' nickname: Analyzer open_event_id: '0' give_prize_id: '5' static_bet_limit: '1000' - id: '5' name: '5' points: '7000' nickname: Strategist open_event_id: '0' give_prize_id: '4' static_bet_limit: '1200' - id: '6' name: '6' points: '10000' nickname: Expert open_event_id: '0' give_prize_id: '4' static_bet_limit: '1500' - id: '7' name: '7' points: '15000' nickname: Master open_event_id: '0' give_prize_id: '4' static_bet_limit: '3000' - id: '8' name: '8' points: '20000' nickname: Royal open_event_id: '0' give_prize_id: '3' static_bet_limit: '5000' - id: '9' name: '9' points: '30000' nickname: Guru open_event_id: '0' give_prize_id: '1' static_bet_limit: '10000' - id: '10' name: '10' points: '40000' nickname: Oracle open_event_id: '0' give_prize_id: '2' static_bet_limit: '20000' - id: '11' name: '11' points: '1000000' nickname: The Ninja open_event_id: '0' give_prize_id: '0' static_bet_limit: '50000' expointsPerActions: staticBet: id: '4' name: staticBet points: '100' status: active staticBet_1: id: '5' name: staticBet_1 points: '100' status: active dynamicBet: id: '6' name: dynamicBet points: '10' status: active dynamicBet_1: id: '7' name: dynamicBet_1 points: '1000' status: active matchAttendance: id: '8' name: matchAttendance points: '50' status: active matchAttendance_2: id: '9' name: matchAttendance_2 points: '100' status: active openLoot: id: '11' name: openLoot points: '100' status: active finishedOnboarding: id: '12' name: finishedOnboarding points: '500' status: active creating_shout: id: '13' name: creating_shout points: '100' status: active lootFeatured: [] '404': description: Not found '500': description: Server error /userApi/leaderboard/get/{broadcaster}: get: operationId: userapiLeaderboardGet summary: Get tags: - leaderboard description: Return users data list parameters: - name: broadcaster in: path required: true schema: type: string responses: '200': description: API Test content: application/json: schema: type: object example: api_tester: - name: Guest_1545hbu6587 email: '' type: registered thumbnail: /uploads/default_avatar.png broadcaster_id: api_tester amount_of_credits: 15 amount_of_credits_won: 50 available_shouts: 0 expirience_points: 70 level: 1 stats: winsCount: 1 betsCount: 1 currentStreak: 1 status: 1 updated: false amount_of_credits_won_temp: 50 available_points: 70 _id: $id: 5fbfbf7b7938293c320ac1dc '404': description: Not found '500': description: Server error /userApi/poll/answer_new/{questionId}: post: operationId: userapiPollAnswer summary: Answer tags: - poll description: Send user answer data and save it in db parameters: - name: questionId in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: answer: userId: 5fbfbf7b7938293c320ac1dc questionId: 5fbd1fc904e3c324c21aed48 answer: Inception channelId: test_channel isAnswered: true expoints_given: '150' userLevel: 1 '404': description: Not found '500': description: Server error /userApi/rating/answer_new/{questionId}: post: operationId: userapiRatingAnswer summary: Answer tags: - rating description: Send user answer data and save it in db parameters: - name: questionId in: path required: true schema: type: string requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: answer: userId: 5fbfbf7b7938293c320ac1dc ratingId: 5fbcf1325e784e3816715935 answer: 5 channelId: test_channel isAnswered: true expoints_given: '80' userLevel: 2 '404': description: Not found '500': description: Server error /userApi/shop/buyItem: post: operationId: userapiShopBuyitem summary: BuyItem tags: - shop description: Send item data paid by user requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: APITest content: application/json: schema: type: object example: status: success '404': description: Not found '500': description: Server error /userApi/shop/getProducts: post: operationId: userapiShopGetproducts summary: GetProducts tags: - shop description: Return list of users purchases for broadcaster requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: APITest content: application/json: schema: type: object example: - name: test item description: test pointsXP: '100' user_id: 5fbce6c58703d05e5a73b6f4 image: /uploads/shop/4c043d20a7673bcc1189956cef8edc63.ba46792ede92a2eec53f35d8fd4c49e7.png _id: $id: 5fbcee8ae6cc2a181c6d5422 '404': description: Not found '500': description: Server error /userApi/streamer/getInfo: post: operationId: userapiStreamerGetinfo summary: GetInfo tags: - streamer description: Load all related information about streamer requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: request: type: string example: request: data responses: '200': description: API Test content: application/json: schema: type: object example: name: Test page useUrl: false channel_name: test_channel channel_id: test_channel broadcaster_id: api_tester pageUrl: '' additionalPageSettings: '' stream_url: https://api-dev.inthegame.io/uploads/videos/streamers/9240e2fbfca8dcf912016b83541a6325.ba46792ede92a2eec53f35d8fd4c49e7.mp4 chat_url: '' registration_bonus: '' game: Test category game_id: 5fbceda5636497107a1cbdf3 is_permanent: 1 is_featured: 0 status: 1 modules: logo: true is_open_menu: false predictions: false predictions_menu: false leaderboard: true leaderboard_menu: true leaderboard_icon: false leaderboard_icon_image: '' account: true account_menu: true account_icon: false account_icon_image: '' shouts: false shouts_menu: false quiz: true polls: true polls_menu: true poll_icon: false poll_icon_image: '' contact: false contact_menu: false chat: true chat_menu: true wiki: true rating: true rating_menu: true rating_icon: false rating_icon_image: '' retention: false close: true shop: true shop_menu: true clocks: - id: 5fbd060eaec04b6e6943828b module: wiki timeToStay: '10' time: 0 simpleModule: null - id: 5fbd07fc48196740b75d323b module: polls timeToStay: '10' time: '25' - id: 5fbd096648196740b75d323c simpleModule: null timeToStay: '10' module: quiz time: 15 - id: 5fbd09ff0174d8346b7cce86 module: wiki timeToStay: '10' time: '50' streamSourceType: file moderators: [] banList: [] offersInterval: 0 direction: 0 user_id: 5fbce6c58703d05e5a73b6f4 chatDelay: 0 profanityList: - '' useCustomProfanity: false streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki languagesList: [] customCSS: '' hide_on_smartphone_portrait_mode: true approvalMessageMode: timer broadcasterUseBlocks: chat: customCoords: x: 0 y: 0 useCustomCoords: false rating: customCoords: x: 0 y: 0 useCustomCoords: false polls: customCoords: x: 0 y: 0 useCustomCoords: false position: 0 moderator_data: - _id: $oid: 5fbcf1b4a759e61e0f7b0bc4 user_id: 5fbce6c58703d05e5a73b6f4 banList: [] profanityList: - '' useCustomProfanity: true customCSS: '' levelsDefinition: - level: 1 name: novice expoints: 50 - level: 2 name: advanced expoints: 300 - level: 3 name: pro expoints: 1000 - level: 4 name: legendary expoints: 5000 streamer: chat_url: '' stream_url: '' registration_bonus: 0 streamSourceType: '' game: '' game_id: null position: 0 modules: logo: true predictions: true predictions_menu: true leaderboard: true leaderboard_menu: true account: true account_menu: true shouts: true shouts_menu: true quiz: true quiz_menu: true polls: true polls_menu: true contact: true contact_menu: true chat: true chat_menu: true wiki: false wiki_menu: false rating: false rating_menu: false retention: false close: false shop: true shop_menu: true clocks: [] offersInterval: 0 chatDelay: 0 streamerLogo: '' wikiList: [] additionalInfo: wikiTitle: Wiki broadcaster_name: api_tester id: 5fbcee2e636497107a1cbdf4 polls: - id: 5fbcf049f2d31b5bc07df5ce name: Test poll question: Filling good? questionType: poll type: streamer hideButtons: 0 image: '' time_limit: 0 items: - id: 5fbcee2e636497107a1cbdf4 name: test_channel viewType: numbers answers: - answer: 'Yes' image: '' reward: 0 isRewardSent: false answerSending: false - answer: 'No' image: '' reward: 0 isRewardSent: false answerSending: false - answer: So so image: '' reward: 0 isRewardSent: false answerSending: false expoints: '200' prizes: [] ratings: - id: 5fbcf1325e784e3816715935 name: Harry Potter description: film icon: '' optionsNumber: '5' averageRate: 0 totalPeople: 0 totalPoints: 0 streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel expoints: '80' prizes: [] wikis: - id: 5fbd060eaec04b6e6943828b name: Test Wiki showInMenu: false icon: '' content: 'Hello to all!!!
' streamers: - id: 5fbcee2e636497107a1cbdf4 channel_name: test_channel meta: left: 250px top: 50px width: 150px height: 150px expoints: '10' type: html tweetUrl: '' prizes: [] - id: 5fbd09ff0174d8346b7cce86 name: Whats Up showInMenu: false icon: '' content: '