Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.0.3",
"info": {
"title": "SeggWat Service API",
"version": "1.3.0",
"description": "API for health checks, submitting feedback, managing feedback data, ratings, ideas, churn events, and contact messages. Includes project-level summary and stats endpoints optimised for mobile dashboards."
},
"servers": [
{
"url": "https://seggwat.com/api/v1",
"description": "Production server"
},
{
"url": "https://seggwat.oxidt.com/api/v1",
"description": "Staging server"
}
],
"paths": {
"/health": {
"get": {
"operationId": "getDeepHealth",
"summary": "Deep health check",
"description": "Returns overall status.",
"responses": {
"200": {
"description": "Detailed health information including subsystem statuses.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthStatus"
},
"examples": {
"allHealthy": {
"summary": "All systems healthy",
"value": {
"status": "ok"
}
},
"degraded": {
"summary": "Degraded service",
"value": {
"status": "degraded"
}
}
}
}
}
}
},
"tags": [
"Health"
]
}
},
"/feedback/submit": {
"post": {
"operationId": "submitFeedback",
"summary": "Submit feedback",
"description": "Submit a feedback message for a specific project. Feedback is stored and can be retrieved for analysis and customer support purposes.",
"parameters": [
{
"$ref": "#/components/parameters/RefererHeader"
}
],
"requestBody": {
"required": true,
"description": "Feedback submission payload containing project identifier and message.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackSubmission"
},
"examples": {
"basicFeedback": {
"summary": "Simple feedback submission",
"value": {
"project_key": "550e8400-e29b-41d4-a716-446655440000",
"message": "Great feature! Would love to see dark mode support."
}
},
"feedbackWithPath": {
"summary": "Feedback with URL path",
"value": {
"project_key": "550e8400-e29b-41d4-a716-446655440000",
"message": "The checkout button is not working properly.",
"path": "/checkout"
}
},
"feedbackWithVersion": {
"summary": "Feedback with version tracking",
"value": {
"project_key": "550e8400-e29b-41d4-a716-446655440000",
"message": "Dashboard loading is slower after the update.",
"path": "/dashboard",
"version": "1.2.3"
}
},
"feedbackWithUser": {
"summary": "Feedback with user tracking",
"value": {
"project_key": "550e8400-e29b-41d4-a716-446655440000",
"message": "The export feature is not working for large datasets.",
"path": "/reports/export",
"version": "2.1.0",
"submitted_by": "user_12345"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Feedback successfully accepted and processed.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubmissionResult"
},
"examples": {
"stored": {
"summary": "Feedback stored successfully",
"value": {
"status": "stored"
}
},
"queued": {
"summary": "Feedback queued for processing",
"value": {
"status": "queued"
}
}
}
}
}
},
"400": {
"description": "Validation error in the request payload.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"missingProjectKey": {
"summary": "Missing project key",
"value": {
"error": "validation_error",
"message": "project_key is required"
}
},
"invalidUUID": {
"summary": "Invalid UUID format",
"value": {
"error": "validation_error",
"message": "project_key must be a valid UUID"
}
},
"emptyMessage": {
"summary": "Empty message",
"value": {
"error": "validation_error",
"message": "message cannot be empty"
}
}
}
}
}
}
},
"tags": [
"Feedback"
]
}
},
"/projects": {
"get": {
"operationId": "listProjects",
"summary": "List all projects",
"description": "Retrieve all projects belonging to the authenticated organization.",
"security": [
{
"ApiKeyAuth": []
}
],
"responses": {
"200": {
"description": "List of projects with their metadata and feedback counts.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectListResponse"
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Projects"
]
},
"post": {
"operationId": "createProject",
"summary": "Create a project",
"description": "Create a project, or return the existing one with the same name (trimmed, case-insensitive) in the organization, so setup can be re-run safely. Runs the same trial, plan-limit and input checks as the dashboard. Requires full access or the `project:write` scope; a project-restricted key is refused.",
"security": [
{
"ApiKeyAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateProjectRequest"
}
}
}
},
"responses": {
"201": {
"description": "Project created.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateProjectResponse"
}
}
}
},
"200": {
"description": "A project with this name already existed and was returned unchanged (`created: false`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateProjectResponse"
}
}
}
},
"400": {
"description": "Invalid name, description or origin.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Missing scope, project-restricted key, no org access, no active trial, or the plan's project limit is reached. The message carries a billing link when billing is the cause.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Projects"
]
}
},
"/projects/{project_id}": {
"get": {
"operationId": "getProject",
"summary": "Get single project",
"description": "Retrieve a single project by its ID. Useful for deep-linking into a specific project from a mobile app or integration without fetching the full project list.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
}
],
"responses": {
"200": {
"description": "The requested project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Project"
},
"examples": {
"example": {
"summary": "A project",
"value": {
"id": "507f1f77bcf86cd799439011",
"key": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Web App",
"description": "Main production application",
"allowed_origins": [
"https://example.com"
],
"org_id": "507f1f77bcf86cd799439022",
"feedback_count": 142
}
}
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Projects"
]
}
},
"/projects/{project_id}/summary": {
"get": {
"operationId": "getProjectSummary",
"summary": "Get project summary",
"description": "All-in-one project overview that returns the project details plus feedback counts (broken down by type and status), churn stats, idea counts, contact message counts, rating statistics (helpful, star, NPS), and a list of recent feedback items in a single request. Designed to minimise round trips for mobile dashboard home screens.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
}
],
"responses": {
"200": {
"description": "Project summary with aggregated statistics.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectSummary"
},
"examples": {
"example": {
"summary": "Project summary",
"value": {
"project": {
"id": "507f1f77bcf86cd799439011",
"key": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Web App",
"description": "Main production application",
"allowed_origins": [
"https://example.com"
],
"org_id": "507f1f77bcf86cd799439022",
"feedback_count": 142
},
"feedback": {
"total": 142,
"current_month": 18,
"last_month": 24,
"by_type": {
"bug": 32,
"feature": 55,
"praise": 21,
"question": 14,
"improvement": 12,
"other": 8
},
"by_status": {
"new": 41,
"active": 28,
"hold": 7,
"closed": 33,
"resolved": 18
}
},
"churn": {
"total": 12,
"this_month": 3,
"last_month": 5,
"by_reason": {
"TooExpensive": 4,
"MissingFeatures": 3,
"SwitchedService": 2,
"Unused": 2,
"Other": 1,
"LowQuality": 0,
"TooComplex": 0,
"CustomerService": 0,
"Unknown": 0
}
},
"ideas": {
"total": 37,
"pending": 5
},
"messages": {
"total": 9
},
"ratings": {
"helpful": {
"total": 250,
"helpful": 215,
"not_helpful": 35,
"percentage": 86.0
},
"star": {
"total": 85,
"average": 4.2,
"distribution": {
"1": 2,
"2": 5,
"3": 15,
"4": 30,
"5": 33
}
},
"nps": {
"total": 0,
"score": 0,
"promoters": 0,
"passives": 0,
"detractors": 0,
"distribution": {}
}
},
"recent_feedback": [
{
"id": "507f1f77bcf86cd799439031",
"message_preview": "The export button doesn't work in Firefox when I try to download...",
"feedback_type": "Bug",
"path": "/dashboard/reports",
"created_at": "2024-01-15T14:32:00Z"
},
{
"id": "507f1f77bcf86cd799439032",
"message_preview": "Would love a dark mode option for the main interface",
"feedback_type": "Feature",
"path": "/settings",
"created_at": "2024-01-15T11:20:00Z"
},
{
"id": "507f1f77bcf86cd799439033",
"message_preview": "Great update! The new search is much faster than before",
"feedback_type": "Praise",
"path": null,
"created_at": "2024-01-14T09:05:00Z"
}
]
}
}
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Projects"
]
}
},
"/projects/{project_id}/feedback": {
"get": {
"operationId": "listProjectFeedback",
"summary": "List project feedback",
"description": "Retrieve a paginated list of feedback items for a specific project with optional filtering.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
},
{
"name": "page",
"in": "query",
"description": "Page number (1-indexed)",
"schema": {
"type": "integer",
"default": 1,
"minimum": 1
}
},
{
"name": "limit",
"in": "query",
"description": "Number of items per page",
"schema": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 100
}
},
{
"name": "status",
"in": "query",
"description": "Filter by feedback status",
"schema": {
"$ref": "#/components/schemas/FeedbackStatus"
}
},
{
"name": "type",
"in": "query",
"description": "Filter by feedback type",
"schema": {
"$ref": "#/components/schemas/FeedbackType"
}
},
{
"name": "search",
"in": "query",
"description": "Search term to filter feedback by message content",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Paginated list of feedback items.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackListResponse"
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Feedback"
]
},
"post": {
"operationId": "createProjectFeedback",
"summary": "Create feedback via API",
"description": "Create a new feedback item for a project using API key authentication. Unlike the widget submit endpoint, this requires authentication and enforces subscription tier limits.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
}
],
"requestBody": {
"required": true,
"description": "Feedback creation payload",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackCreateRequest"
},
"examples": {
"basicFeedback": {
"summary": "Simple feedback creation",
"value": {
"message": "Customer reported a bug via support ticket"
}
},
"fullFeedback": {
"summary": "Feedback with all optional fields",
"value": {
"message": "User requested dark mode feature",
"type": "Feature",
"path": "/settings",
"version": "2.1.0",
"submitted_by": "user-123"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Feedback created successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Feedback"
}
}
}
},
"400": {
"description": "Bad request - validation error or trial limit reached.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"emptyMessage": {
"summary": "Empty message",
"value": {
"error": "bad_request",
"message": "Message cannot be empty"
}
},
"trialLimitReached": {
"summary": "Trial tier limit reached",
"value": {
"error": "bad_request",
"message": "Trial tier feedback limit reached (50 items). Please upgrade your plan."
}
}
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Feedback"
]
}
},
"/projects/{project_id}/feedback/stats": {
"get": {
"operationId": "getProjectFeedbackStats",
"summary": "Get feedback statistics",
"description": "Retrieve feedback counts for a project — total, current calendar month, and previous calendar month. Useful for home screen badges and trend indicators in mobile apps.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
}
],
"responses": {
"200": {
"description": "Feedback counts for the project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackCounts"
},
"examples": {
"example": {
"summary": "Feedback stats",
"value": {
"total": 142,
"current_month": 18,
"last_month": 24
}
}
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Feedback"
]
}
},
"/projects/{project_id}/feedback/{feedback_id}": {
"get": {
"operationId": "getProjectFeedback",
"summary": "Get single feedback",
"description": "Retrieve a single feedback item by ID.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
},
{
"name": "feedback_id",
"in": "path",
"required": true,
"description": "Unique identifier of the feedback item",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The requested feedback item.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Feedback"
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project or feedback not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Feedback"
]
},
"patch": {
"operationId": "updateProjectFeedback",
"summary": "Update feedback",
"description": "Update the message, type, or status of a feedback item. At least one field must be provided.",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/ProjectIdPath"
},
{
"name": "feedback_id",
"in": "path",
"required": true,
"description": "Unique identifier of the feedback item",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"required": true,
"description": "Fields to update. At least one field must be provided.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackUpdate"
},
"examples": {
"updateStatus": {
"summary": "Update status only",
"value": {
"status": "Active"
}
},
"updateType": {
"summary": "Update type only",
"value": {
"type": "Bug"
}
},
"updateMultiple": {
"summary": "Update multiple fields",
"value": {
"status": "Resolved",
"type": "Feature",
"message": "Updated feedback message"
}
}
}
}
}
},
"responses": {
"200": {
"description": "The updated feedback item.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Feedback"
}
}
}
},
"400": {
"description": "Validation error - no fields provided or invalid values.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Authentication failed - invalid or missing API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Access denied - API key does not have access to this project.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Project or feedback not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Feedback"
]
},
"delete": {
"operationId": "deletePr
# --- truncated at 32 KB (269 KB total) ---
# Full source: https://artifacts.apis.io/seggwat-com/openapi/_original/seggwat-com-api-openapi.json