{
  "openapi": "3.0.3",
  "info": {
    "title": "SID Singular Intelligence Domain API",
    "version": "1.0.0",
    "description": "Public SID API. Get an API key at https://sidislab.com/api-portal and send it as `Authorization: Bearer <key>`."
  },
  "servers": [
    { "url": "https://api.sidislab.com" }
  ],
  "paths": {
    "/health": {
      "get": {
        "summary": "Control plane health",
        "operationId": "health",
        "responses": { "200": { "description": "Healthy" } }
      }
    },
    "/mcp": {
      "post": {
        "summary": "Model Context Protocol (streamable HTTP) endpoint",
        "operationId": "mcp",
        "responses": { "200": { "description": "MCP response" } }
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "summary": "OAuth 2.0 authorization server metadata (RFC 8414)",
        "operationId": "oauthAuthorizationServer",
        "responses": { "200": { "description": "Metadata document" } }
      }
    },
    "/.well-known/openid-configuration": {
      "get": {
        "summary": "OpenID Connect discovery document",
        "operationId": "openidConfiguration",
        "responses": { "200": { "description": "Discovery document" } }
      }
    },
    "/oauth/token": {
      "post": {
        "summary": "OAuth 2.0 token endpoint",
        "operationId": "token",
        "responses": { "200": { "description": "Token response" } }
      }
    },
    "/oauth/register": {
      "post": {
        "summary": "Dynamic Client Registration (RFC 7591)",
        "operationId": "register",
        "responses": { "201": { "description": "Client registered" } }
      }
    }
  }
}
