{
  "openapi": "3.1.0",
  "info": {
    "title": "Emoji Score API",
    "version": "17.0",
    "description": "Database-backed emoji intelligence, deterministic scoring, sentiment scoring, Unicode-style proposal scoring, proposal export, data-domain reads, model-degraded scaffolding, and MCP tooling for emoji.platphormnews.com."
  },
  "servers": [
    {
      "url": "https://emoji.platphormnews.com"
    }
  ],
  "security": [],
  "components": {
    "securitySchemes": {
      "PlatPhormBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Use PLATPHORM_API_KEY for protected actions."
      },
      "PlatPhormHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-PlatPhorm-API-Key",
        "description": "Use PLATPHORM_API_KEY for protected actions."
      }
    },
    "schemas": {
      "RestOk": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "data": {
            "type": "object"
          }
        }
      },
      "RestError": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "details": {
                "type": "object"
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Public health summary.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "summary": "Standard health summary.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emoji": {
      "get": {
        "summary": "List database-backed canonical emoji records.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emoji/{slug}": {
      "get": {
        "summary": "Get one canonical emoji record by slug.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emoji/by-codepoint/{codepoint}": {
      "get": {
        "summary": "Get one canonical emoji record by Unicode codepoint sequence.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search": {
      "get": {
        "summary": "Search canonical emoji records by name, keyword, group, subgroup, emoji, or codepoint.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/categories": {
      "get": {
        "summary": "List database-backed categories.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/groups": {
      "get": {
        "summary": "List database-backed groups.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/subgroups": {
      "get": {
        "summary": "List database-backed subgroups.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/keywords": {
      "get": {
        "summary": "List database-backed keyword index records.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emojis": {
      "get": {
        "summary": "List Unicode emoji.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emojis/search": {
      "get": {
        "summary": "Search Unicode emoji.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emojis/categories": {
      "get": {
        "summary": "List emoji categories.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emojis/{codepoint}": {
      "get": {
        "summary": "Get one emoji by code point.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/timeline": {
      "get": {
        "summary": "Database-backed Unicode emoji timeline.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/new": {
      "get": {
        "summary": "Recently added emoji records from the canonical data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/score": {
      "post": {
        "summary": "Score an existing emoji or proposal payload.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/score/{emojiSlug}": {
      "get": {
        "summary": "Reserved public score lookup; use POST /api/v1/score for current deterministic scoring.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/battle": {
      "post": {
        "summary": "Compare two emoji scores head-to-head.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sentiment/score": {
      "post": {
        "summary": "Score sentiment and symbolic meaning.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/combinations/score": {
      "post": {
        "summary": "Score emoji combinations and phrase+emoji expressions.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals/score": {
      "post": {
        "summary": "Score a Unicode-style proposal.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals": {
      "get": {
        "summary": "List ephemeral public-safe proposal results in this runtime.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Protected server persistence hook backed by the configured database.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals/{id}": {
      "get": {
        "summary": "Get a public-safe proposal score or stored proposal metadata when available.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals/{id}/score": {
      "post": {
        "summary": "Score a stored proposal by id or slug.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals/{id}/export": {
      "post": {
        "summary": "Export proposal markdown when result is available.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposals/{id}/download": {
      "get": {
        "summary": "Download proposal markdown when result is available.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/proposal-criteria": {
      "get": {
        "summary": "List versioned proposal criteria from the scoring registry.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/score-dimensions": {
      "get": {
        "summary": "List versioned score dimensions from the scoring registry.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model/proposal-draft": {
      "post": {
        "summary": "Protected model-ready proposal writing adapter.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model/improve-proposal": {
      "post": {
        "summary": "Protected model-ready improvement adapter.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model/explain-sentiment": {
      "post": {
        "summary": "Protected model-ready sentiment explanation adapter.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model/image-prompt": {
      "post": {
        "summary": "Protected model-ready image prompt adapter.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model/accessibility-review": {
      "post": {
        "summary": "Protected model-ready accessibility review adapter.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/unicode/snapshot": {
      "get": {
        "summary": "Unicode data snapshot metadata.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/unicode/refresh": {
      "post": {
        "summary": "Protected refresh hook.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/import/unicode": {
      "post": {
        "summary": "Protected Unicode import hook.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/import/emoji": {
      "post": {
        "summary": "Protected emoji import hook.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data/rebuild-search": {
      "post": {
        "summary": "Protected search index rebuild hook.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data/recalculate-scores": {
      "post": {
        "summary": "Protected score recalculation hook.",
        "security": [
          {
            "PlatPhormBearer": []
          },
          {
            "PlatPhormHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/docs": {
      "get": {
        "summary": "Machine-readable API docs.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.yaml": {
      "get": {
        "summary": "OpenAPI 3.1 specification.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "OpenAPI 3.1 specification as JSON.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "get": {
        "summary": "MCP metadata and usage.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "MCP JSON-RPC 2.0 endpoint.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/emoji": {
      "get": {
        "summary": "Read public-safe canonical emoji records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/unicode": {
      "get": {
        "summary": "Read public-safe canonical unicode records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/categories": {
      "get": {
        "summary": "Read public-safe canonical categories records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/groups": {
      "get": {
        "summary": "Read public-safe canonical groups records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/subgroups": {
      "get": {
        "summary": "Read public-safe canonical subgroups records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/keywords": {
      "get": {
        "summary": "Read public-safe canonical keywords records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/aliases": {
      "get": {
        "summary": "Read public-safe canonical aliases records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/timeline": {
      "get": {
        "summary": "Read public-safe canonical timeline records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/proposals": {
      "get": {
        "summary": "Read public-safe canonical proposals records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/scoring": {
      "get": {
        "summary": "Read public-safe canonical scoring records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/sentiment": {
      "get": {
        "summary": "Read public-safe canonical sentiment records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/images": {
      "get": {
        "summary": "Read public-safe canonical images records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/sources": {
      "get": {
        "summary": "Read public-safe canonical sources records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/search": {
      "get": {
        "summary": "Read public-safe canonical search records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/imports": {
      "get": {
        "summary": "Read public-safe canonical imports records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/discovery": {
      "get": {
        "summary": "Read public-safe canonical discovery records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/fixtures": {
      "get": {
        "summary": "Read public-safe canonical fixtures records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    },
    "/data/snapshots": {
      "get": {
        "summary": "Read public-safe canonical snapshots records from the Emoji Score data layer.",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestOk"
                }
              }
            }
          },
          "401": {
            "description": "Auth required for protected actions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestError"
                }
              }
            }
          }
        }
      }
    }
  }
}