{
  "openapi": "3.0.3",
  "info": {
    "title": "GolfCore licensed course API",
    "version": "2026-09-16-monthly-v1",
    "description": "Invitation-only evaluations and negotiated fixed monthly licenses. Reviewed packages are delivered through short-lived private capabilities. No metered request charges. Existing /v1 and MCP remain keyless.",
    "termsOfService": "https://www.golfcore.org/terms/#api-service-schedule"
  },
  "servers": [
    {
      "url": "https://api.golfcore.org/licensed/v1"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Use the complete gc_test_ or gc_live_ key from the portal in the Authorization header."
      }
    }
  },
  "paths": {
    "/courses": {
      "get": {
        "summary": "List courses assigned to the account",
        "responses": {
          "200": {
            "description": "Authorized metadata; no package bytes or billable accounting"
          },
          "401": {
            "description": "Invalid or inactive credentials or agreement"
          },
          "404": {
            "description": "Authorized resource not found"
          },
          "503": {
            "description": "Temporarily unavailable"
          }
        }
      }
    },
    "/courses/{slug}/releases/{version}": {
      "get": {
        "summary": "Read permitted release metadata",
        "responses": {
          "200": {
            "description": "Authorized metadata; no package bytes or billable accounting"
          },
          "401": {
            "description": "Invalid or inactive credentials or agreement"
          },
          "404": {
            "description": "Authorized resource not found"
          },
          "503": {
            "description": "Temporarily unavailable"
          },
          "400": {
            "description": "layout_id is required"
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "layout_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/usage": {
      "get": {
        "summary": "Read usage reporting status",
        "responses": {
          "200": {
            "description": "Authorized metadata; no package bytes or billable accounting"
          },
          "401": {
            "description": "Invalid or inactive credentials or agreement"
          },
          "404": {
            "description": "Authorized resource not found"
          },
          "503": {
            "description": "Temporarily unavailable"
          }
        }
      }
    },
    "/courses/{slug}/releases/{version}/download": {
      "get": {
        "summary": "Obtain a five-minute capability for a licensed package",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "layout_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fetch url with token in the Authorization bearer header; verify sha256. Issued capabilities expire after five minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url",
                    "token",
                    "expires_at",
                    "sha256"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string"
                    },
                    "sha256": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Key or agreement unavailable"
          },
          "404": {
            "description": "No entitled reviewed artifact for that format"
          },
          "503": {
            "description": "Delivery temporarily unavailable"
          }
        }
      }
    }
  }
}
