{ "swagger": "2.0", "info": { "description": "This is a REST API service for any operations.", "title": "API Service", "contact": {}, "version": "1.0" }, "paths": { "/v1/login": { "post": { "description": "Authenticates a user and returns a JWT token.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Authentication" ], "summary": "User Login", "parameters": [ { "description": "User credentials", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.LoginRequest" } } ], "responses": { "200": { "description": "Successful login", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/api-service_internal_app_dto.LoginResponse" } } } ] } }, "400": { "description": "Invalid input data", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Invalid credentials", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project": { "post": { "description": "Creates a new project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Project Creation", "parameters": [ { "description": "Project details", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.CreateProjectRequest" } } ], "responses": { "200": { "description": "Successful project creation", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectCreateResponse" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}": { "get": { "description": "Retrieves a project by ID", "tags": [ "Project" ], "summary": "Get Project by ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "Successful project retrieval", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectResponse" } } } ] } }, "400": { "description": "Missing or invalid project ID", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "put": { "description": "Update project details", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Update Project", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "Update project payload", "name": "payload", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.UpdateProjectRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "delete": { "description": "Deletes a project by ID", "tags": [ "Project" ], "summary": "Delete Project", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "object" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/chart": { "get": { "description": "Get chart data for a specific project based on filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Get chart data for a project", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Search by tweet content, username, or full name", "name": "search", "in": "query" }, { "type": "string", "description": "Filter by author username or full name", "name": "author", "in": "query" }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Filter by visited status (values: 'all', 'visited', 'not_visited')", "name": "visited_status", "in": "query" }, { "type": "string", "description": "Filter by source (e.g., twitter.com)", "name": "source", "in": "query" }, { "type": "string", "description": "Partial search on source (e.g., 'twit')", "name": "domain_search", "in": "query" }, { "type": "string", "description": "Interval for grouping data (values: 'days', 'weeks', 'months')", "name": "interval", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/influencers/{user_id}/mute": { "post": { "description": "Mute influencer for a project. Platform will be detected automatically.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Mute Influencer", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Influencer ID", "name": "user_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/notifications": { "get": { "description": "Get email notifications for a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "List Notifications", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.NotificationListResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "post": { "description": "Create project email notification", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Create Notification", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "Notification info", "name": "payload", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.CreateNotificationRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.CreateNotificationResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/notifications/{notification_id}": { "delete": { "description": "Delete project notification", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Delete Notification", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Notification ID", "name": "notification_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts": { "get": { "description": "Get posts for a specific project with pagination, search, and filtering", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Get Posts by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Search by tweet content, username, or full name", "name": "search", "in": "query" }, { "type": "string", "description": "Filter by author username or full name", "name": "author", "in": "query" }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Filter by visited status (values: 'all', 'visited', 'not_visited')", "name": "visited_status", "in": "query" }, { "type": "string", "description": "Comma-separated list of host names (e.g., twitter.com, instagram.com, youtube.com, tiktok.com, facebook.com, etc.)", "name": "sources", "in": "query" }, { "type": "string", "description": "Comma-separated list of sentiment (e.g., positive,negative,neutral)", "name": "sentiments", "in": "query" }, { "type": "string", "description": "Partial host name search (e.g., twit)", "name": "domain_search", "in": "query" }, { "type": "string", "description": "Sort by recent or popular (values: 'recent', 'popular')", "name": "sort_by", "in": "query" }, { "type": "integer", "description": "Page number (default: 1)", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page (default: 10)", "name": "per_page", "in": "query" } ], "responses": { "200": { "description": "Paginated list of posts", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectPostsResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "delete": { "description": "Disintegrates multiple posts from the given project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Bulk Delete Posts from Project", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "List of Post IDs to remove", "name": "payload", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.BulkDeletePostsRequest" } } ], "responses": { "200": { "description": "Posts successfully removed", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/sentiment": { "put": { "description": "Updates or inserts sentiment for multiple posts", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Bulk update sentiment of multiple posts in a project", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "Bulk Sentiment Payload", "name": "payload", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.BulkUpdateSentimentRequest" } } ], "responses": { "200": { "description": "Sentiments updated", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid input", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/ugc": { "put": { "description": "Set user type and post content origin based on UGC flag", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Update posts UGC status", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "UGC status payload", "name": "payload", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.UpdateUGCStatusRequest" } } ], "responses": { "200": { "description": "Status updated", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid input", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "404": { "description": "Post not found", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/{post_id}": { "get": { "description": "Get a specific post by project ID and post ID", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Get Post by Project ID and Post ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Post ID", "name": "post_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectPostResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/{post_id}/mute-site": { "post": { "description": "Mute the site (host) of a specific post in a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Mute Post Site", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Post ID", "name": "post_id", "in": "path", "required": true } ], "responses": { "200": { "description": "Site muted successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/{post_id}/tags": { "post": { "description": "Add a tag to a specific post in a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Add Tag to Post", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Post ID", "name": "post_id", "in": "path", "required": true }, { "description": "Tag to add", "name": "tag", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.TagRequest" } } ], "responses": { "200": { "description": "Tag added successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "delete": { "description": "Remove a tag from a specific post in a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Remove Tag from Post", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Post ID", "name": "post_id", "in": "path", "required": true }, { "description": "Tag to remove", "name": "tag", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.TagRequest" } } ], "responses": { "200": { "description": "Tag removed successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/posts/{post_id}/visit": { "post": { "description": "Mark a post as visited", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Mark Post as Visited", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Post ID", "name": "post_id", "in": "path", "required": true } ], "responses": { "200": { "description": "Post marked as visited successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/project/{id}/tags": { "get": { "description": "Get all unique tags for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Get tags by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTagsResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "post": { "description": "Add a tag to multiple posts in a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Bulk Add Tag to Posts", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "Tag to add", "name": "tag", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.BulkTagRequest" } } ], "responses": { "200": { "description": "Tag added successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "delete": { "description": "Remove a tag from multiple posts in a project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "Bulk Remove Tag from Posts", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "description": "Tag to remove", "name": "tag", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.BulkTagRequest" } } ], "responses": { "200": { "description": "Tag removed successfully", "schema": { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects": { "get": { "description": "Returns a list of projects for the authenticated user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project" ], "summary": "List Projects", "responses": { "200": { "description": "Successful project listing", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectListResponse" } } } ] } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/export": { "get": { "description": "Export analysis data for a specific project as an XLSX file", "produces": [ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ], "tags": [ "Project Summary" ], "summary": "Export project analysis", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Search term", "name": "search", "in": "query" }, { "type": "string", "description": "Start date", "name": "start_date", "in": "query" }, { "type": "string", "description": "End date", "name": "end_date", "in": "query" }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Comma separated sources", "name": "sources", "in": "query" }, { "type": "string", "description": "Comma separated sentiments", "name": "sentiments", "in": "query" }, { "type": "string", "description": "Author search", "name": "author", "in": "query" }, { "type": "string", "description": "Visited status", "name": "visited_status", "in": "query" }, { "type": "string", "description": "Tags", "name": "tags", "in": "query" }, { "type": "string", "description": "Domain search", "name": "domain_search", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/mention-by-source": { "get": { "description": "Get mention counts per source using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get analysis mention by source by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMentionBySourceResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/most-active-sites": { "get": { "description": "Get sites with most link mentions using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get most active sites", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMostActiveSitesResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/most-followers": { "get": { "description": "Get influencers ordered by followers using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get influencers by follower count", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMostFollowersResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/most-share-of-voices": { "get": { "description": "Get influencers based on share of voice using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get influencers by most share of voices", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMostShareOfVoicesResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/presence-score/chart": { "get": { "description": "Get presence score chart for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get project presence score chart", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectPresenceScoreChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/presence-score/donut": { "get": { "description": "Get presence score donut for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get project presence score donut", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.PresenceScoreDonutResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/sentiment-breakdown": { "get": { "description": "Get sentiment breakdown percentages using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get project sentiment breakdown", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSentimentBreakdownResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/sentiment-by-categories": { "get": { "description": "Get sentiment counts per category using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get project sentiment by categories", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSentimentByCategoriesResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/summary": { "get": { "description": "Get analysis summary for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get analysis summary by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.AnalysisSummaryResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/top-profile-mentions": { "get": { "description": "Get profiles with most mentions including latest post using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get profiles with top mentions", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTopProfileMentionsResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/trending-hashtags": { "get": { "description": "Get top hashtags using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get trending hashtags", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTrendingHashtagsResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/trending-links": { "get": { "description": "Get top links using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get trending links", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTrendingLinksResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/analysis/wordcloud": { "get": { "description": "Get wordcloud data using advanced filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get wordcloud", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Search term", "name": "search", "in": "query" }, { "type": "string", "description": "Start date", "name": "start_date", "in": "query" }, { "type": "string", "description": "End date", "name": "end_date", "in": "query" }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Comma separated sources", "name": "sources", "in": "query" }, { "type": "string", "description": "Comma separated sentiments", "name": "sentiments", "in": "query" }, { "type": "string", "description": "Author search", "name": "author", "in": "query" }, { "type": "string", "description": "Visited status", "name": "visited_status", "in": "query" }, { "type": "string", "description": "Tags", "name": "tags", "in": "query" }, { "type": "string", "description": "Domain search", "name": "domain_search", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectWordcloudResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/categories-share": { "get": { "description": "Get categories share data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get categories share by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectCategoriesSharePeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/mention-chart": { "get": { "description": "Get mention chart data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get mention chart by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMentionChartPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/negative-sentiment-chart": { "get": { "description": "Get negative sentiment chart data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get negative sentiment chart by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectNegativeSentimentChartPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/overview": { "get": { "description": "Get project overview for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get project overview by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectOverviewPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/positive-sentiment-chart": { "get": { "description": "Get positive sentiment chart data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get positive sentiment chart by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectPositiveSentimentChartPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/reach-chart": { "get": { "description": "Get reach chart data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get reach chart by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true }, { "type": "string", "description": "Source category (values: 'all', 'social_media', 'non_social_media')", "name": "source_category", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectReachChartPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-periods/sentiment-breakdown": { "get": { "description": "Get sentiment breakdown data for current and previous periods", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get sentiment breakdown by periods", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Current period start date", "name": "current_period_from", "in": "query", "required": true }, { "type": "string", "description": "Current period end date", "name": "current_period_to", "in": "query", "required": true }, { "type": "string", "description": "Previous period start date", "name": "previous_period_from", "in": "query", "required": true }, { "type": "string", "description": "Previous period end date", "name": "previous_period_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSentimentBreakdownPeriodResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/categories-share": { "get": { "description": "Compare projects by categories share", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get categories share for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsCategoriesShareResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/mention-chart": { "get": { "description": "Compare projects by mention chart", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get mention chart for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Interval (days, weeks, months)", "name": "interval", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsMentionChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/negative-sentiment-chart": { "get": { "description": "Compare projects by negative sentiment chart", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get negative sentiment chart for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Interval (days, weeks, months)", "name": "interval", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsNegativeSentimentChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/overview": { "get": { "description": "Get overview data comparing projects", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get overview data for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Interval (days, weeks, months)", "name": "interval", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsOverviewResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/positive-sentiment-chart": { "get": { "description": "Compare projects by positive sentiment chart", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get positive sentiment chart for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Interval (days, weeks, months)", "name": "interval", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsPositiveSentimentChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/reach-chart": { "get": { "description": "Compare projects by reach chart", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get reach chart for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Interval (days, weeks, months)", "name": "interval", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsReachChartResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/sentiment-breakdown": { "get": { "description": "Compare projects by sentiment breakdown", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get sentiment breakdown for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsSentimentBreakdownResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/compare-by-projects/voice-share": { "get": { "description": "Compare projects by voice share", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Comparison" ], "summary": "Get voice share for projects", "parameters": [ { "type": "string", "description": "Main Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Comma separated list of project IDs to compare", "name": "project_ids", "in": "query" }, { "type": "string", "description": "Start date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "End date", "name": "date_to", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectsVoiceShareResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/data/influencers": { "get": { "description": "Get influencers for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Data" ], "summary": "Get Influencers by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Search term", "name": "search", "in": "query" }, { "type": "string", "description": "Start date", "name": "start_date", "in": "query" }, { "type": "string", "description": "End date", "name": "end_date", "in": "query" }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Comma separated sources", "name": "sources", "in": "query" }, { "type": "string", "description": "Comma separated sentiments", "name": "sentiments", "in": "query" }, { "type": "string", "description": "Author search", "name": "author", "in": "query" }, { "type": "string", "description": "Visited status", "name": "visited_status", "in": "query" }, { "type": "string", "description": "Tags", "name": "tags", "in": "query" }, { "type": "string", "description": "Domain search", "name": "domain_search", "in": "query" }, { "type": "string", "description": "Sort by field", "name": "sort_by", "in": "query" }, { "type": "string", "description": "Sort order", "name": "sort_order", "in": "query" }, { "type": "integer", "description": "Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "Items per page", "name": "per_page", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectInfluencerResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/data/sources": { "get": { "description": "Get sources for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Data" ], "summary": "Get Sources by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query", "required": true }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query", "required": true }, { "type": "string", "description": "Sort by host_name, mentions, visits or influencer_score", "name": "sort_by", "in": "query" }, { "type": "string", "description": "Sort order ascending or descending (values: 'asc', 'desc')", "name": "sort_order", "in": "query" }, { "type": "integer", "description": "Page number (default: 1)", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page (default: 10)", "name": "per_page", "in": "query" }, { "type": "integer", "description": "Filter sources with mentions greater or equal", "name": "num_of_mentions_from", "in": "query" }, { "type": "integer", "description": "Filter sources with mentions less or equal", "name": "num_of_mentions_to", "in": "query" }, { "type": "string", "description": "Operator for visits filter (gt, lt, eq)", "name": "num_of_visits_op", "in": "query" }, { "type": "integer", "description": "Number of visits value for filter", "name": "num_of_visits", "in": "query" }, { "type": "string", "description": "Influencer score filter (high, medium, low)", "name": "influencer_score", "in": "query" } ], "responses": { "200": { "description": "Paginated list of sources", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSourcesResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/mention-by-source": { "get": { "description": "Get mention by source for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get mention by source by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectMentionBySourceResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/posts/latest": { "get": { "description": "Get latest posts for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get Latest Posts by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" } ], "responses": { "200": { "description": "Paginated list of posts", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectPostsResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/posts/most-popular": { "get": { "description": "Get most-popular posts for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get Most-Popular Posts by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "integer", "description": "Page number (default: 1)", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page (default: 10)", "name": "per_page", "in": "query" } ], "responses": { "200": { "description": "Paginated list of posts", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectPostsResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/posts/profiles/top": { "get": { "description": "Get top profiles for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get Top Profiles by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Sort by name, voice_share or reach (values: 'name', 'voice_share', 'reach')", "name": "sort_by", "in": "query" }, { "type": "string", "description": "Sort order ascending or descending (values: 'asc', 'desc')", "name": "sort_order", "in": "query" }, { "type": "integer", "description": "Page number (default: 1)", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page (default: 10)", "name": "per_page", "in": "query" } ], "responses": { "200": { "description": "Paginated list of posts", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTopProfilesResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/posts/sources/top": { "get": { "description": "Get top sources for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get Top Sources by Project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Sort by name, voice_share or reach (values: 'name', 'mentions', 'visits')", "name": "sort_by", "in": "query" }, { "type": "string", "description": "Sort order ascending or descending (values: 'asc', 'desc')", "name": "sort_order", "in": "query" }, { "type": "integer", "description": "Page number (default: 1)", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page (default: 10)", "name": "per_page", "in": "query" } ], "responses": { "200": { "description": "Paginated list of posts", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectTopSourcesResponse" } }, "400": { "description": "Invalid request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/statistics": { "get": { "description": "Get statistics for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get statistics by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectStatisticsResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/summary": { "get": { "description": "Get summary for a specific project", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get summary by project ID", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSummaryResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/projects/{id}/summary/chart/mention": { "get": { "description": "Get reach chart data for a specific project based on filters", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Project Summary" ], "summary": "Get reach chart data for a project summary", "parameters": [ { "type": "string", "description": "Project ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Filter posts created after this date", "name": "date_from", "in": "query" }, { "type": "string", "description": "Filter posts created before this date", "name": "date_to", "in": "query" }, { "type": "string", "description": "Interval for grouping data (values: 'days', 'weeks', 'months')", "name": "interval", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/api-service_internal_app_dto.GetProjectSummaryChartMentionResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/proxy": { "get": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "put": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "post": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "delete": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "options": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "head": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } }, "patch": { "description": "Forwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.\nForwards the incoming request to the given external URL. Supports GET, POST, PUT, PATCH, DELETE, etc.", "consumes": [ "*/*", "*/*" ], "produces": [ "*/*", "*/*" ], "tags": [ "Proxy", "Proxy" ], "summary": "Proxy external requests", "parameters": [ { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true }, { "type": "string", "example": "\"https://api.example.com/data\"", "description": "Target URL to proxy", "name": "url", "in": "query", "required": true } ], "responses": { "200": { "description": "Proxied response", "schema": {} }, "400": { "description": "Missing or invalid URL", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Failed to proxy request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/register": { "post": { "description": "Registers user.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Authentication" ], "summary": "User Register", "parameters": [ { "description": "User credentials", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.RegisterRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "object" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/request-password-reset": { "post": { "description": "Sends a password reset email.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Authentication" ], "summary": "Request Password Reset", "parameters": [ { "description": "User email", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.RequestPasswordResetRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "object" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/reset-password": { "post": { "description": "Resets a user's password using a token.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Authentication" ], "summary": "Reset Password", "parameters": [ { "description": "Reset token and new password", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/api-service_internal_app_dto.PasswordResetRequest" } } ], "responses": { "200": { "description": "Successful login", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "object" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/user/profile": { "get": { "security": [ { "BearerAuth": [] } ], "description": "Shows user profile.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "User" ], "summary": "User Profile", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/api-service_internal_app_dto.ProfileResponse" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/verify-email": { "get": { "description": "Verifies a user's email by clicking the link in the email.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Authentication" ], "summary": "Verify Email", "parameters": [ { "type": "string", "description": "Verification Token", "name": "token", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/api-service_internal_api_response.SuccessResponse" }, { "type": "object", "properties": { "data": { "type": "object" } } } ] } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } }, "/v1/{platform}/webhook": { "post": { "description": "Receives Apify webhook payload and forwards to post fetcher service.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Webhook" ], "summary": "Handle Apify webhook", "parameters": [ { "enum": [ "twitter", "instagram", "youtube", "rss", "tiktok", "facebook" ], "type": "string", "description": "platform", "name": "platform", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": {} }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/api-service_internal_api_response.FailResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/api-service_internal_api_response.ErrorResponse" } } } } } }, "definitions": { "api-service_internal_api_response.ErrorResponse": { "type": "object", "properties": { "code": { "type": "integer", "example": 401 }, "message": { "type": "string", "example": "invalid credentials" }, "status": { "type": "string", "example": "error" } } }, "api-service_internal_api_response.FailResponse": { "type": "object", "properties": { "data": {}, "status": { "type": "string", "example": "fail" } } }, "api-service_internal_api_response.SuccessResponse": { "type": "object", "properties": { "data": {}, "status": { "type": "string", "example": "success" } } }, "api-service_internal_app_dto.ActiveSite": { "type": "object", "properties": { "host_name": { "type": "string" }, "mentions": { "type": "integer" } } }, "api-service_internal_app_dto.AnalysisSummaryResponse": { "type": "object", "properties": { "summary": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummary" } } }, "api-service_internal_app_dto.BulkDeletePostsRequest": { "type": "object", "required": [ "post_ids" ], "properties": { "post_ids": { "type": "array", "minItems": 1, "items": { "type": "string" } } } }, "api-service_internal_app_dto.BulkTagRequest": { "type": "object", "required": [ "post_ids", "tag" ], "properties": { "post_ids": { "type": "array", "items": { "type": "string" } }, "tag": { "type": "string" } } }, "api-service_internal_app_dto.BulkUpdateSentimentRequest": { "type": "object", "required": [ "post_ids", "sentiment" ], "properties": { "post_ids": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "sentiment": { "type": "string", "enum": [ "positive", "negative", "neutral" ] } } }, "api-service_internal_app_dto.CategoriesShare": { "type": "object", "properties": { "facebook": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" }, "instagram": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" }, "rss": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" }, "tiktok": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" }, "twitter": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" }, "youtube": { "$ref": "#/definitions/api-service_internal_app_dto.PlatformCategoryData" } } }, "api-service_internal_app_dto.Chart": { "type": "object", "properties": { "id": { "type": "string" }, "series": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ChartData" } }, "xAxis": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.ChartData": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "integer" } }, "id": { "type": "string" }, "type": { "type": "string" } } }, "api-service_internal_app_dto.ChartDataFloat": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "number" } }, "id": { "type": "string" }, "type": { "type": "string" } } }, "api-service_internal_app_dto.ChartFloat": { "type": "object", "properties": { "id": { "type": "string" }, "series": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ChartDataFloat" } }, "xAxis": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.CreateNotificationRequest": { "type": "object", "required": [ "email", "frequency" ], "properties": { "email": { "type": "string" }, "frequency": { "enum": [ "daily", "half_day", "weekly", "monthly" ], "allOf": [ { "$ref": "#/definitions/api-service_internal_schema.NotificationFrequency" } ] }, "is_include_neutral_sentiment": { "type": "boolean" } } }, "api-service_internal_app_dto.CreateNotificationResponse": { "type": "object", "properties": { "notification_id": { "type": "string" } } }, "api-service_internal_app_dto.CreateProjectRequest": { "type": "object", "required": [ "keywords", "language", "name" ], "properties": { "keywords": { "type": "array", "items": { "type": "string" } }, "language": { "type": "string" }, "name": { "type": "string" } } }, "api-service_internal_app_dto.GetProjectCategoriesSharePeriodResponse": { "type": "object", "properties": { "periods": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectCategoriesShare" } } } }, "api-service_internal_app_dto.GetProjectChartResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectChart" } } }, "api-service_internal_app_dto.GetProjectInfluencerResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "profiles": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.InfluencerProfile" } } } }, "api-service_internal_app_dto.GetProjectMentionBySourceResponse": { "type": "object", "properties": { "count": { "$ref": "#/definitions/api-service_internal_schema.ProjectMentionBySource" } } }, "api-service_internal_app_dto.GetProjectMentionChartPeriodResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectSummaryChart" } } }, "api-service_internal_app_dto.GetProjectMostActiveSitesResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ActiveSite" } } } }, "api-service_internal_app_dto.GetProjectMostFollowersResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "profiles": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.MostFollowersProfile" } } } }, "api-service_internal_app_dto.GetProjectMostShareOfVoicesResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "profiles": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ShareOfVoiceProfile" } } } }, "api-service_internal_app_dto.GetProjectNegativeSentimentChartPeriodResponse": { "type": "object", "properties": { "negativeSentimentChart": { "$ref": "#/definitions/api-service_internal_app_dto.NegativeSentimentChart" } } }, "api-service_internal_app_dto.GetProjectPositiveSentimentChartPeriodResponse": { "type": "object", "properties": { "positiveSentimentChart": { "$ref": "#/definitions/api-service_internal_app_dto.PositiveSentimentChart" } } }, "api-service_internal_app_dto.GetProjectPostResponse": { "type": "object", "properties": { "post": { "type": "object", "additionalProperties": true } } }, "api-service_internal_app_dto.GetProjectPresenceScoreChartResponse": { "type": "object", "properties": { "presenceScoreChart": { "$ref": "#/definitions/api-service_internal_app_dto.PresenceScoreChart" } } }, "api-service_internal_app_dto.GetProjectReachChartPeriodResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectSummaryChart" } } }, "api-service_internal_app_dto.GetProjectSentimentBreakdownPeriodResponse": { "type": "object", "properties": { "series": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.SentimentSeries" } }, "xAxis": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.GetProjectSentimentBreakdownResponse": { "type": "object", "properties": { "donut_chart": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.SentimentBreakdownItem" } } } }, "api-service_internal_app_dto.GetProjectSentimentByCategoriesResponse": { "type": "object", "properties": { "series": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.SentimentCategorySeries" } }, "xAxis": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.GetProjectSourcesResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.SourceData" } } } }, "api-service_internal_app_dto.GetProjectStatisticsResponse": { "type": "object", "properties": { "statistics": { "$ref": "#/definitions/api-service_internal_schema.ProjectStatistic" } } }, "api-service_internal_app_dto.GetProjectSummaryChartMentionResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectSummaryChart" } } }, "api-service_internal_app_dto.GetProjectSummaryResponse": { "type": "object", "properties": { "summary": { "$ref": "#/definitions/api-service_internal_schema.ProjectSummary" } } }, "api-service_internal_app_dto.GetProjectTagsResponse": { "type": "object", "properties": { "tags": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.GetProjectTopProfileMentionsResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "profiles": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.TopProfileMention" } } } }, "api-service_internal_app_dto.GetProjectTopProfilesResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "profiles": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.TopProfile" } } } }, "api-service_internal_app_dto.GetProjectTopSourcesResponse": { "type": "object", "properties": { "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.TopSource" } } } }, "api-service_internal_app_dto.GetProjectTrendingHashtagsResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.TrendingHashtag" } }, "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" } } }, "api-service_internal_app_dto.GetProjectTrendingLinksResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.TrendingLink" } }, "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" } } }, "api-service_internal_app_dto.GetProjectWordcloudResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.WordcloudItem" } } } }, "api-service_internal_app_dto.GetProjectsCategoriesShareResponse": { "type": "object", "properties": { "projects": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectCategoriesShare" } } } }, "api-service_internal_app_dto.GetProjectsMentionChartResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectSummaryChart" } } }, "api-service_internal_app_dto.GetProjectsNegativeSentimentChartResponse": { "type": "object", "properties": { "negativeSentimentChart": { "$ref": "#/definitions/api-service_internal_app_dto.NegativeSentimentChart" } } }, "api-service_internal_app_dto.GetProjectsOverviewResponse": { "type": "object", "properties": { "projects": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectOverview" } } } }, "api-service_internal_app_dto.GetProjectsPositiveSentimentChartResponse": { "type": "object", "properties": { "positiveSentimentChart": { "$ref": "#/definitions/api-service_internal_app_dto.PositiveSentimentChart" } } }, "api-service_internal_app_dto.GetProjectsReachChartResponse": { "type": "object", "properties": { "projectChart": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectSummaryChart" } } }, "api-service_internal_app_dto.GetProjectsSentimentBreakdownResponse": { "type": "object", "properties": { "series": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.SentimentSeries" } }, "xAxis": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.GetProjectsVoiceShareResponse": { "type": "object", "properties": { "mention": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.VoiceShareItem" } }, "reach": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.VoiceShareItem" } } } }, "api-service_internal_app_dto.InfluencerDetail": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "platform_id": { "$ref": "#/definitions/api-service_internal_schema.PlatformID" } } }, "api-service_internal_app_dto.InfluencerProfile": { "type": "object", "properties": { "followers": { "type": "integer" }, "full_name": { "type": "string" }, "host_name": { "type": "string" }, "id": { "type": "string" }, "influencer_score": { "type": "integer" }, "mentions": { "type": "integer" }, "profile_picture_url": { "type": "string" }, "reach": { "type": "integer" }, "share_of_voice": { "type": "number" }, "user_real_id": { "type": "string" }, "username": { "type": "string" } } }, "api-service_internal_app_dto.LoginRequest": { "type": "object", "required": [ "email", "password" ], "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "api-service_internal_app_dto.LoginResponse": { "type": "object", "properties": { "token": { "type": "string" } } }, "api-service_internal_app_dto.Meta": { "type": "object", "properties": { "page": { "type": "integer" }, "per_page": { "type": "integer" }, "total_count": { "type": "integer" }, "total_pages": { "type": "integer" } } }, "api-service_internal_app_dto.MostFollowersProfile": { "type": "object", "properties": { "followers": { "type": "integer" }, "full_name": { "type": "string" }, "host_name": { "type": "string" }, "influencer_score": { "type": "integer" }, "mention_count": { "type": "integer" }, "profile_picture_url": { "type": "string" }, "reach": { "type": "integer" }, "user_id": { "type": "string" }, "user_real_id": { "type": "string" }, "username": { "type": "string" } } }, "api-service_internal_app_dto.NegativeSentimentChart": { "type": "object", "properties": { "negativeSentimentChart_number": { "$ref": "#/definitions/api-service_internal_app_dto.Chart" }, "negativeSentimentChart_percentage": { "$ref": "#/definitions/api-service_internal_app_dto.ChartFloat" }, "projectId": { "type": "string" } } }, "api-service_internal_app_dto.Notification": { "type": "object", "properties": { "created_at": { "type": "string" }, "email": { "type": "string" }, "frequency": { "$ref": "#/definitions/api-service_internal_schema.NotificationFrequency" }, "id": { "type": "string" }, "is_include_neutral_sentiment": { "type": "boolean" }, "project_id": { "type": "string" } } }, "api-service_internal_app_dto.NotificationListResponse": { "type": "object", "properties": { "notifications": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.Notification" } } } }, "api-service_internal_app_dto.PasswordResetRequest": { "type": "object", "required": [ "new_password", "token" ], "properties": { "new_password": { "type": "string", "minLength": 8 }, "token": { "type": "string" } } }, "api-service_internal_app_dto.PlatformCategoryData": { "type": "object", "properties": { "percentage": { "type": "number" }, "value": { "type": "integer" } } }, "api-service_internal_app_dto.PositiveSentimentChart": { "type": "object", "properties": { "positiveSentimentChart_number": { "$ref": "#/definitions/api-service_internal_app_dto.Chart" }, "positiveSentimentChart_percentage": { "$ref": "#/definitions/api-service_internal_app_dto.ChartFloat" }, "projectId": { "type": "string" } } }, "api-service_internal_app_dto.PresenceScoreChart": { "type": "object", "properties": { "presenceScoreChart_months": { "$ref": "#/definitions/api-service_internal_app_dto.ChartFloat" }, "presenceScoreChart_weeks": { "$ref": "#/definitions/api-service_internal_app_dto.ChartFloat" }, "projectId": { "type": "string" } } }, "api-service_internal_app_dto.PresenceScoreDonutResponse": { "type": "object", "properties": { "donut_chart": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.PresenceScoreItem" } }, "label": { "type": "string" } } }, "api-service_internal_app_dto.PresenceScoreItem": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "total": { "type": "number" } } }, "api-service_internal_app_dto.ProfileResponse": { "type": "object", "properties": { "profile": { "$ref": "#/definitions/api-service_internal_app_dto.UserResponse" } } }, "api-service_internal_app_dto.Project": { "type": "object", "properties": { "active_sources": { "type": "array", "items": { "type": "string" } }, "advertising_cost_facebook": { "type": "integer" }, "advertising_cost_instagram": { "type": "integer" }, "advertising_cost_rss": { "type": "integer" }, "advertising_cost_tiktok": { "type": "integer" }, "advertising_cost_twitter": { "type": "integer" }, "advertising_cost_youtube": { "type": "integer" }, "created_at": { "type": "string" }, "created_by": { "type": "string" }, "excluded_keywords": { "type": "array", "items": { "type": "string" } }, "id": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "language": { "type": "string" }, "name": { "type": "string" }, "new_mentions_count": { "type": "string" }, "required_keywords": { "type": "array", "items": { "type": "string" } }, "updated_at": { "type": "string" }, "updated_by": { "type": "string" }, "user_id": { "type": "string" } } }, "api-service_internal_app_dto.ProjectCategoriesShare": { "type": "object", "properties": { "categories": { "$ref": "#/definitions/api-service_internal_app_dto.CategoriesShare" }, "id": { "type": "string" }, "name": { "type": "string" } } }, "api-service_internal_app_dto.ProjectChart": { "type": "object", "properties": { "mentionsChart": { "$ref": "#/definitions/api-service_internal_app_dto.Chart" }, "projectId": { "type": "string" }, "sentimentsChart": { "$ref": "#/definitions/api-service_internal_app_dto.Chart" } } }, "api-service_internal_app_dto.ProjectCreateResponse": { "type": "object", "properties": { "project_id": { "type": "string" } } }, "api-service_internal_app_dto.ProjectDTO": { "type": "object", "properties": { "active_sources": { "type": "array", "items": { "type": "string" } }, "advertising_cost_facebook": { "type": "integer" }, "advertising_cost_instagram": { "type": "integer" }, "advertising_cost_rss": { "type": "integer" }, "advertising_cost_tiktok": { "type": "integer" }, "advertising_cost_twitter": { "type": "integer" }, "advertising_cost_youtube": { "type": "integer" }, "excluded_influencers": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.InfluencerDetail" } }, "excluded_keywords": { "type": "array", "items": { "type": "string" } }, "excluded_sites": { "type": "array", "items": { "type": "string" } }, "id": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "language": { "type": "string" }, "name": { "type": "string" }, "required_keywords": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.ProjectListResponse": { "type": "object", "properties": { "projects": { "type": "array", "items": { "$ref": "#/definitions/api-service_internal_app_dto.Project" } } } }, "api-service_internal_app_dto.ProjectOverview": { "type": "object", "properties": { "ave": { "type": "integer" }, "negative_sentiment": { "type": "number" }, "non_social_media_mentions": { "type": "integer" }, "non_social_media_reach": { "type": "integer" }, "positive_sentiment": { "type": "number" }, "presence_score": { "type": "integer" }, "project_id": { "type": "string" }, "social_media_mentions": { "type": "integer" }, "social_media_reach": { "type": "integer" }, "total_mentions": { "type": "integer" }, "user_generated_content": { "type": "integer" } } }, "api-service_internal_app_dto.ProjectOverviewPeriodResponse": { "type": "object", "properties": { "current_period": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectOverview" }, "previous_period": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectOverview" } } }, "api-service_internal_app_dto.ProjectPostsResponse": { "type": "object", "properties": { "is_fetching": { "type": "boolean" }, "meta": { "$ref": "#/definitions/api-service_internal_app_dto.Meta" }, "posts": { "type": "array", "items": {} } } }, "api-service_internal_app_dto.ProjectResponse": { "type": "object", "properties": { "project": { "$ref": "#/definitions/api-service_internal_app_dto.ProjectDTO" } } }, "api-service_internal_app_dto.ProjectSummaryChart": { "type": "object", "properties": { "mentionsChart": { "$ref": "#/definitions/api-service_internal_app_dto.Chart" }, "projectId": { "type": "string" } } }, "api-service_internal_app_dto.RegisterRequest": { "type": "object", "required": [ "email", "password" ], "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "api-service_internal_app_dto.RequestPasswordResetRequest": { "type": "object", "required": [ "email" ], "properties": { "email": { "type": "string" } } }, "api-service_internal_app_dto.SentimentBreakdownItem": { "type": "object", "properties": { "id": { "type": "string" }, "total": { "type": "number" } } }, "api-service_internal_app_dto.SentimentCategorySeries": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "integer" } }, "type": { "type": "string" } } }, "api-service_internal_app_dto.SentimentSeries": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "number" } }, "type": { "type": "string" } } }, "api-service_internal_app_dto.ShareOfVoiceProfile": { "type": "object", "properties": { "est_reach": { "type": "integer" }, "full_name": { "type": "string" }, "host_name": { "type": "string" }, "mention_count": { "type": "integer" }, "profile_picture_url": { "type": "string" }, "user_real_id": { "type": "string" }, "username": { "type": "string" }, "voice_share": { "type": "number" } } }, "api-service_internal_app_dto.SourceData": { "type": "object", "properties": { "host_name": { "type": "string" }, "influencer_score": { "type": "integer" }, "mentions": { "type": "integer" }, "visits": { "type": "integer" } } }, "api-service_internal_app_dto.TagRequest": { "type": "object", "required": [ "tag" ], "properties": { "tag": { "type": "string" } } }, "api-service_internal_app_dto.TopProfile": { "type": "object", "properties": { "full_name": { "type": "string" }, "host_name": { "description": "EstimatedReach int64 `json:\"estimated_reach\"`", "type": "string" }, "profile_picture_url": { "type": "string" }, "reach": { "type": "integer" }, "user_real_id": { "type": "string" }, "username": { "type": "string" }, "voice_share": { "type": "number" } } }, "api-service_internal_app_dto.TopProfileMention": { "type": "object", "properties": { "followers": { "type": "integer" }, "full_name": { "type": "string" }, "host_name": { "type": "string" }, "latest_post": {}, "profile_picture_url": { "type": "string" }, "user_id": { "type": "string" }, "user_real_id": { "type": "string" }, "username": { "type": "string" } } }, "api-service_internal_app_dto.TopSource": { "type": "object", "properties": { "host_name": { "type": "string" }, "mentions": { "type": "integer" }, "visits": { "type": "integer" } } }, "api-service_internal_app_dto.TrendingHashtag": { "type": "object", "properties": { "count": { "type": "integer" }, "hashtag": { "type": "string" } } }, "api-service_internal_app_dto.TrendingLink": { "type": "object", "properties": { "count": { "type": "integer" }, "link": { "type": "string" } } }, "api-service_internal_app_dto.UpdateProjectRequest": { "type": "object", "required": [ "keywords", "name" ], "properties": { "active_sources": { "type": "array", "items": { "type": "string" } }, "advertising_cost_facebook": { "type": "integer" }, "advertising_cost_instagram": { "type": "integer" }, "advertising_cost_rss": { "type": "integer" }, "advertising_cost_tiktok": { "type": "integer" }, "advertising_cost_twitter": { "type": "integer" }, "advertising_cost_youtube": { "type": "integer" }, "excluded_influencers": { "type": "array", "items": { "type": "string" } }, "excluded_keywords": { "type": "array", "items": { "type": "string" } }, "excluded_sites": { "type": "array", "items": { "type": "string" } }, "keywords": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "language": { "type": "string", "enum": [ "en", "es", "id" ] }, "name": { "type": "string" }, "required_keywords": { "type": "array", "items": { "type": "string" } } } }, "api-service_internal_app_dto.UpdateUGCStatusRequest": { "type": "object", "required": [ "post_ids" ], "properties": { "is_ugc": { "type": "boolean" }, "post_ids": { "type": "array", "minItems": 1, "items": { "type": "string" } } } }, "api-service_internal_app_dto.UserResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "id": { "type": "string" }, "username": { "type": "string" } } }, "api-service_internal_app_dto.VoiceShareItem": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "non_social_media": { "type": "number" }, "social_media": { "type": "number" }, "total": { "type": "number" } } }, "api-service_internal_app_dto.WordcloudItem": { "type": "object", "properties": { "percent": { "type": "number" }, "sentiment": { "type": "string" }, "word": { "type": "string" } } }, "api-service_internal_schema.AnalysisSummary": { "type": "object", "properties": { "ave": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "average_presence_score": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "negative_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "neutral_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "non_social_media_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "non_social_media_reach": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "positive_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_comments": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_interactions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_reach": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_reactions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "social_media_shares": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "total_mentions": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "total_reach": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" }, "user_generated_content": { "$ref": "#/definitions/api-service_internal_schema.AnalysisSummaryMetric" } } }, "api-service_internal_schema.AnalysisSummaryMetric": { "type": "object", "properties": { "change_percent": { "type": "number" }, "value": { "type": "integer" } } }, "api-service_internal_schema.NotificationFrequency": { "type": "string", "enum": [ "daily", "half_day", "weekly", "monthly" ], "x-enum-varnames": [ "FrequencyDaily", "FrequencyHalfDay", "FrequencyWeekly", "FrequencyMonthly" ] }, "api-service_internal_schema.PlatformID": { "type": "string", "enum": [ "twitter", "instagram", "youtube", "rss", "tiktok", "facebook" ], "x-enum-varnames": [ "PlatformIdTwitter", "PlatformIdInstagram", "PlatformIdYoutube", "PlatformIdRss", "PlatformIdTiktok", "PlatformIdFacebook" ] }, "api-service_internal_schema.ProjectMentionBySource": { "type": "object", "properties": { "facebook": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "instagram": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "news": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "tiktok": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "twitter": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "videos": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" } } }, "api-service_internal_schema.ProjectStatistic": { "type": "object", "properties": { "non_social_mentions": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "social_likes": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "social_mentions": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "social_shares": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" }, "videos": { "$ref": "#/definitions/api-service_internal_schema.StatisticMetric" } } }, "api-service_internal_schema.ProjectSummary": { "type": "object", "properties": { "interaction": { "$ref": "#/definitions/api-service_internal_schema.SummaryMetric" }, "mention": { "$ref": "#/definitions/api-service_internal_schema.SummaryMetric" }, "negative_sentiment": { "$ref": "#/definitions/api-service_internal_schema.SummaryMetric" }, "positive_sentiment": { "$ref": "#/definitions/api-service_internal_schema.SummaryMetric" }, "social_media_reach": { "$ref": "#/definitions/api-service_internal_schema.SummaryMetric" } } }, "api-service_internal_schema.StatisticMetric": { "type": "object", "properties": { "percentage": { "type": "number" }, "value": { "type": "integer" } } }, "api-service_internal_schema.SummaryMetric": { "type": "object", "properties": { "percentage": { "type": "number" }, "prev_value": { "type": "integer" }, "value": { "type": "integer" } } } }, "securityDefinitions": { "BearerAuth": { "description": "Type \"Bearer\" followed by a space and your token.", "type": "apiKey", "name": "Authorization", "in": "header" } } }