openapi: 3.0.3
info:
  title: BNZ Platform API
  version: 2.4.1
  description: Platform services for portfolios, orders and automation.
servers:
  - url: https://brunomenozzi.com
components:
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://brunomenozzi.com/oauth/authorize
          tokenUrl: https://brunomenozzi.com/oauth/token
          scopes:
            infra:read: Read platform configuration
paths:
  /api/v2/internal/config:
    get:
      summary: Infrastructure configuration
      responses:
        '200': {description: config}
  /api/v2/nodes/{segment}/auth:
    get:
      summary: Node authentication
      parameters:
        - {name: segment, in: path, required: true, schema: {type: string}}
        - {name: _ref, in: query, required: true, schema: {type: string}}
  /api/v2/internal/{segment}/users:
    post:
      summary: Workspace members
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [session_token]
              properties:
                session_token: {type: string}
  /api/v2/auth/verify:
    post:
      summary: Agent registration
  /api/v2/mcp/stream:
    post:
      summary: MCP streamable HTTP endpoint
