{
  "openapi": "3.1.0",
  "info": {
    "title": "enso.bot Public API",
    "version": "1.0.0",
    "summary": "Public read-only REST API for enso - the agentic growth lab.",
    "description": "Read-only endpoints exposing enso's company info, blog posts, Agentic Lab research experiments, and open roles. Designed for AI agents and integrations. No authentication is required for the /api/public/v1/* endpoints. For a richer, tool-based interface see the MCP server at https://enso.bot/mcp.",
    "contact": {
      "name": "enso",
      "url": "https://enso.bot/contact",
      "email": "hello@enso.bot"
    },
    "license": {
      "name": "Public content",
      "url": "https://enso.bot/terms"
    }
  },
  "servers": [
    {
      "url": "https://enso.bot",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "enso developer resources",
    "url": "https://enso.bot/developers"
  },
  "security": [],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.1 with Dynamic Client Registration for authenticated MCP calls at /mcp. Public REST endpoints require no auth.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://rsxyvyanjlbjrajqrrps.supabase.co/auth/v1/authorize",
            "tokenUrl": "https://rsxyvyanjlbjrajqrrps.supabase.co/auth/v1/token",
            "scopes": {
              "openid": "OpenID Connect sign-in",
              "email": "Access to the user's email",
              "profile": "Access to basic profile info"
            }
          }
        }
      }
    },
    "schemas": {
      "Company": {
        "type": "object"
      },
      "BlogPost": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Experiment": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "readTime": {
            "type": "string"
          },
          "surface": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Role": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "isNew": {
            "type": "boolean"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/api/public/v1/company": {
      "get": {
        "summary": "Get enso company overview",
        "operationId": "getCompany",
        "responses": {
          "200": {
            "description": "Company info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/blog": {
      "get": {
        "summary": "List blog posts",
        "operationId": "listBlogPosts",
        "responses": {
          "200": {
            "description": "List of blog posts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "posts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BlogPost"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/research": {
      "get": {
        "summary": "List Agentic Lab research experiments",
        "operationId": "listResearch",
        "responses": {
          "200": {
            "description": "List of experiments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "experiments": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Experiment"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/research/{slug}": {
      "get": {
        "summary": "Get a single research experiment",
        "operationId": "getResearch",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Experiment detail",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "experiment": {
                      "$ref": "#/components/schemas/Experiment"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/careers": {
      "get": {
        "summary": "List open roles",
        "operationId": "listCareers",
        "responses": {
          "200": {
            "description": "List of roles",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Role"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/v1/careers/{slug}": {
      "get": {
        "summary": "Get a single role",
        "operationId": "getCareer",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Role detail",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "$ref": "#/components/schemas/Role"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "MCP (Model Context Protocol) server endpoint",
        "description": "JSON-RPC over HTTP endpoint for the enso MCP server. Supports Streamable HTTP transport. See /.well-known/oauth-protected-resource for auth metadata.",
        "operationId": "mcpInvoke",
        "security": [
          {
            "oauth2": [
              "openid",
              "email",
              "profile"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response"
          }
        }
      }
    }
  }
}