{
  "openapi": "3.1.0",
  "info": {
    "title": "GroundIT — Public legal content",
    "version": "0.1.0",
    "license": {
      "name": "Proprietary — GroundIT/Sysmedac internal"
    },
    "description": "Public, read-only mobile retrieval of GroundIT's existing legal and product copy. These paths are deliberately outside `/api/v1` and require no tenant session so app-store reviewers and a mobile client before sign-in can read them. The endpoint never accepts tenant/request data and does not create acknowledgements.\n"
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "public-legal",
      "description": "Public legal and product-copy retrieval for mobile clients."
    }
  ],
  "paths": {
    "/legal-content/privacy-policy": {
      "get": {
        "operationId": "xc.public_legal_content.get_privacy_policy",
        "summary": "Retrieve the published privacy policy for a mobile client",
        "tags": [
          "public-legal"
        ],
        "x-token": "xc.public_legal_content.get_privacy_policy",
        "x-realizes-features": [],
        "x-screens": [],
        "x-touches-entities": [],
        "x-idempotent": true,
        "x-market": "both",
        "x-sync-async": "sync",
        "x-emits-event": null,
        "x-rls-scope": "tenant",
        "x-append-only": false,
        "x-entitlement": null,
        "x-provisional": null,
        "responses": {
          "200": {
            "description": "The existing public privacy page as HTML, with its publication date and canonical URL.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLegalContent"
                }
              }
            }
          }
        }
      }
    },
    "/legal-content/terms": {
      "get": {
        "operationId": "xc.public_legal_content.get_terms",
        "summary": "Retrieve the existing bundled terms text for a mobile client",
        "tags": [
          "public-legal"
        ],
        "x-token": "xc.public_legal_content.get_terms",
        "x-realizes-features": [],
        "x-screens": [],
        "x-touches-entities": [],
        "x-idempotent": true,
        "x-market": "both",
        "x-sync-async": "sync",
        "x-emits-event": null,
        "x-rls-scope": "tenant",
        "x-append-only": false,
        "x-entitlement": null,
        "x-provisional": null,
        "responses": {
          "200": {
            "description": "The exact English PWA-bundled Terms text. `source_version` is null because no managed publication version exists.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLegalContent"
                }
              }
            }
          }
        }
      }
    },
    "/legal-content/about": {
      "get": {
        "operationId": "xc.public_legal_content.get_about",
        "summary": "Retrieve the existing bundled About text for a mobile client",
        "tags": [
          "public-legal"
        ],
        "x-token": "xc.public_legal_content.get_about",
        "x-realizes-features": [],
        "x-screens": [],
        "x-touches-entities": [],
        "x-idempotent": true,
        "x-market": "both",
        "x-sync-async": "sync",
        "x-emits-event": null,
        "x-rls-scope": "tenant",
        "x-append-only": false,
        "x-entitlement": null,
        "x-provisional": null,
        "responses": {
          "200": {
            "description": "The exact English PWA-bundled About text. `source_version` is null because no managed publication version exists.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLegalContent"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublicLegalContent": {
        "type": "object",
        "required": [
          "document",
          "locale",
          "content_type",
          "title",
          "content",
          "source_version",
          "provenance",
          "canonical_url"
        ],
        "additionalProperties": false,
        "properties": {
          "document": {
            "type": "string",
            "enum": [
              "privacy-policy",
              "terms",
              "about"
            ]
          },
          "locale": {
            "type": "string",
            "enum": [
              "en"
            ],
            "description": "The only currently published locale."
          },
          "content_type": {
            "type": "string",
            "enum": [
              "text/html",
              "text/plain"
            ]
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "source_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "The published privacy-page date, or null for an unversioned PWA-bundled source."
          },
          "provenance": {
            "type": "string",
            "enum": [
              "published_privacy_page",
              "pwa_bundled_source"
            ]
          },
          "canonical_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The browser canonical URL when one exists."
          }
        }
      }
    }
  }
}