{
  "openapi": "3.1.0",
  "info": {
    "title": "GOOtester Public & Scoped Android Closed Testing CI API",
    "version": "12.6.0",
    "summary": "Machine-readable API for Google Play 12-tester / 14-day closed testing capacity, entity facts, technical blog catalog, and scoped CI/CD Android App Bundle (.aab) release synchronization.",
    "description": "GOOtester coordinates 12 to 25 real consented human testers across 14 to 24 service days with separate physical-device ARM64 ADB QA diagnostics ($6 Basic, $12 Standard, $20 Premium one-time USD per app). Generate scoped CI API tokens (ci:release, ci:read) inside https://dashboard.gootester.com.",
    "contact": {
      "name": "GOOtester Engineering & Operations",
      "url": "https://staging.gootester.com/support",
      "email": "support@gootester.com"
    },
    "license": {
      "name": "Proprietary Platform / MIT GitHub Action",
      "url": "https://github.com/nghi25211dd1488/gootester-ci-release-action/blob/main/LICENSE"
    }
  },
  "externalDocs": {
    "description": "Full LLM & Agent Technical Context (llms-full.txt)",
    "url": "https://staging.gootester.com/llms-full.txt"
  },
  "servers": [
    {
      "url": "https://staging.gootester.com",
      "description": "Production Edge API & Public Knowledge Hub"
    },
    {
      "url": "https://dashboard.gootester.com",
      "description": "Authenticated Developer Console"
    }
  ],
  "components": {
    "securitySchemes": {
      "ScopedCiBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "gt_live_<token>",
        "description": "Scoped, revocable CI API key issued in dashboard.gootester.com with ci:release and/or ci:read scopes."
      }
    }
  },
  "paths": {
    "/api/public/summary": {
      "get": {
        "operationId": "getPublicPricingAndCapacitySummary",
        "summary": "Live per-app USD pricing tiers ($6 / $12 / $20) and verified available human tester capacity",
        "responses": {
          "200": {
            "description": "Current pricing tiers, seat targets, buffer days, and purchasability status."
          }
        }
      }
    },
    "/api/public/facts": {
      "get": {
        "operationId": "getEntityAndPolicyFacts",
        "summary": "Canonical machine-readable entity facts, Google Play 12-tester mandate dates, and provenance invariants",
        "responses": {
          "200": {
            "description": "Authoritative JSON facts specification (also served at /facts.json)."
          }
        }
      }
    },
    "/api/public/blog": {
      "get": {
        "operationId": "listEngineeringBlogGuides",
        "summary": "List all long-form Google Play Closed Testing & Android Release Engineering guides",
        "responses": {
          "200": {
            "description": "Catalog of blog categories and article metadata."
          }
        }
      }
    },
    "/api/v1/ci/release": {
      "post": {
        "operationId": "syncClosedTestingRelease",
        "summary": "Register a new signed Android App Bundle (.aab) versionCode release from GitHub Actions or CI",
        "security": [
          {
            "ScopedCiBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            },
            "description": "Deterministic key (e.g. gha-com.example.app-2-<sha>) preventing duplicate release rows."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "app_package",
                  "version_code",
                  "version_name"
                ],
                "properties": {
                  "app_package": {
                    "type": "string",
                    "example": "com.example.myapp"
                  },
                  "version_code": {
                    "type": "integer",
                    "minimum": 1,
                    "example": 2
                  },
                  "version_name": {
                    "type": "string",
                    "example": "1.0.1"
                  },
                  "campaign_id": {
                    "type": "string"
                  },
                  "aab_sha256": {
                    "type": "string",
                    "minLength": 64,
                    "maxLength": 64,
                    "description": "64-char hex SHA-256 digest of the compiled .aab bundle."
                  },
                  "release_notes": {
                    "type": "string"
                  },
                  "commit_sha": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Release lineage recorded and bound to campaign."
          },
          "401": {
            "description": "Missing, expired, or revoked CI API key."
          },
          "403": {
            "description": "Insufficient scope (requires ci:release) or campaign mismatch."
          }
        }
      }
    },
    "/api/v1/ci/status": {
      "get": {
        "operationId": "getClosedTestingCampaignStatus",
        "summary": "Query observed human tester opt-ins, GOOtester service clock days, and separate physical ARM64 ADB QA status",
        "security": [
          {
            "ScopedCiBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "app_package",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Campaign status envelope with strictly separated human_summary, service_clock, google_outcome, and qa_runs."
          }
        }
      }
    }
  }
}