{
 "openapi": "3.1.0",
 "info": {
  "title": "MyAICEO API",
  "version": "1.0.0",
  "description": "MyAICEO is an AI chief of staff for small businesses: goals, briefings, scenario planning and connected tools. The plans action returns the public plan list with each plan's monthly AI limits and the integrations it can link. The support plans action returns the Support module prices exactly as the Support page shows them.",
  "contact": {
   "url": "https://myaiceo.org/agents"
  }
 },
 "servers": [
  {
   "url": "https://myaiceo.org"
  }
 ],
 "paths": {
  "/agent-api/v1/company": {
   "get": {
    "operationId": "getCompany",
    "summary": "Company profile and agent entry points",
    "security": [
     {},
     {
      "apiKey": []
     }
    ],
    "x-scope": "company:read",
    "x-free": true,
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "403": {
      "description": "key lacks the scope"
     },
     "429": {
      "description": "rate limited"
     }
    },
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    }
   }
  },
  "/agent-api/v1/pricing": {
   "get": {
    "operationId": "getPricing",
    "summary": "Plans and USD prices",
    "security": [
     {},
     {
      "apiKey": []
     }
    ],
    "x-scope": "pricing:read",
    "x-free": true,
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "403": {
      "description": "key lacks the scope"
     },
     "429": {
      "description": "rate limited"
     }
    },
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    }
   }
  },
  "/api/pricing": {
   "get": {
    "operationId": "apiPricing",
    "summary": "Plans and USD prices (plan, interval, amount_usd, currency, what_you_get)",
    "security": [
     {},
     {
      "apiKey": []
     }
    ],
    "x-scope": "pricing:read",
    "x-free": true,
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "403": {
      "description": "key lacks the scope"
     },
     "429": {
      "description": "rate limited"
     }
    },
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    }
   }
  },
  "/agent-api/v1/search": {
   "get": {
    "operationId": "searchSite",
    "summary": "Search pages on this site",
    "security": [
     {},
     {
      "apiKey": []
     }
    ],
    "x-scope": "search:read",
    "x-free": true,
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "403": {
      "description": "key lacks the scope"
     },
     "429": {
      "description": "rate limited"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "default": 5
      }
     }
    ],
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    }
   }
  },
  "/agent-api/v1/keys": {
   "post": {
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    },
    "operationId": "createKey",
    "summary": "Issue a scoped API key (shown once)",
    "security": [
     {}
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "scopes": {
          "type": "array",
          "items": {
           "type": "string",
           "enum": [
            "company:read",
            "pricing:read",
            "search:read"
           ]
          }
         },
         "label": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "key issued"
     },
     "429": {
      "description": "too many keys from this address"
     }
    }
   }
  },
  "/agent-api/v1/keys/me": {
   "get": {
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    },
    "operationId": "getKey",
    "summary": "Scopes of the presented key",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "missing or unknown key"
     }
    }
   }
  },
  "/mcp": {
   "post": {
    "x-pricing": {
     "price_usd": 0,
     "metered": false,
     "note": "free; anonymous 30 req/min, key 300 req/min"
    },
    "operationId": "mcp",
    "summary": "MCP streamable HTTP endpoint (JSON-RPC 2.0)",
    "security": [
     {},
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     }
    }
   }
  },
  "/v1/plans": {
   "get": {
    "operationId": "myaiceo_plans",
    "summary": "List plans, AI limits and integrations",
    "description": "Returns the public plans in display order with price, billing period and monthly AI limits, plus the names of the integrations a workspace can connect.",
    "tags": [
     "actions"
    ],
    "x-scope": "read",
    "x-free": true,
    "security": [
     {},
     {
      "bearerKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "Bad input",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing, unknown or revoked key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Key lacks the required scope",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit hit; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Limit": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Remaining": {
        "schema": {
         "type": "integer"
        }
       }
      }
     }
    },
    "x-pricing": {
     "unit": "call",
     "price_usd": 0,
     "free_quota": "200 per day per IP",
     "note": "Keyed volume pricing is published at https://myaiceo.org/pricing"
    }
   }
  },
  "/v1/support/plans": {
   "get": {
    "operationId": "myaiceo_support_plans",
    "summary": "List Support module plans and monthly prices",
    "description": "Returns each Support plan with its monthly price and what it includes. The rows are the ones the Support page renders, so the two cannot drift apart.",
    "tags": [
     "actions"
    ],
    "x-scope": "read",
    "x-free": true,
    "security": [
     {},
     {
      "bearerKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "Bad input",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing, unknown or revoked key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Key lacks the required scope",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit hit; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Limit": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Remaining": {
        "schema": {
         "type": "integer"
        }
       }
      }
     }
    },
    "x-pricing": {
     "unit": "call",
     "price_usd": 0,
     "free_quota": "200 per day per IP",
     "note": "Keyed volume pricing is published at https://myaiceo.org/pricing"
    }
   }
  },
  "/v1/about": {
   "get": {
    "operationId": "myaiceo_about",
    "summary": "What MyAICEO does and what is free",
    "description": "What MyAICEO does and what is free",
    "tags": [
     "actions"
    ],
    "x-scope": "read",
    "x-free": true,
    "security": [
     {},
     {
      "bearerKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "Bad input",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing, unknown or revoked key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Key lacks the required scope",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit hit; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Limit": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Remaining": {
        "schema": {
         "type": "integer"
        }
       }
      }
     }
    },
    "x-pricing": {
     "unit": "call",
     "price_usd": 0,
     "free_quota": "200 per day per IP",
     "note": "Keyed volume pricing is published at https://myaiceo.org/pricing"
    }
   }
  },
  "/v1/pricing": {
   "get": {
    "operationId": "myaiceo_pricing",
    "summary": "Where prices live and what costs nothing",
    "description": "Where prices live and what costs nothing",
    "tags": [
     "actions"
    ],
    "x-scope": "read",
    "x-free": true,
    "security": [
     {},
     {
      "bearerKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "Bad input",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing, unknown or revoked key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Key lacks the required scope",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit hit; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Limit": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Remaining": {
        "schema": {
         "type": "integer"
        }
       }
      }
     }
    },
    "x-pricing": {
     "unit": "call",
     "price_usd": 0,
     "free_quota": "200 per day per IP",
     "note": "Keyed volume pricing is published at https://myaiceo.org/pricing"
    }
   }
  },
  "/v1/usage": {
   "get": {
    "operationId": "usage_get",
    "summary": "Usage for the calling key (last 30 days)",
    "tags": [
     "account"
    ],
    "x-scope": "read",
    "security": [
     {
      "bearerKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Usage counters",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "key_id": {
           "type": "string"
          },
          "calls": {
           "type": "integer"
          },
          "by_operation": {
           "type": "object",
           "additionalProperties": {
            "type": "integer"
           }
          }
         }
        }
       }
      }
     },
     "401": {
      "description": "Missing, unknown or revoked key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Key lacks the required scope",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit hit; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Limit": {
        "schema": {
         "type": "integer"
        }
       },
       "X-RateLimit-Remaining": {
        "schema": {
         "type": "integer"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "apiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key",
    "description": "Optional scoped key (company:read, pricing:read, search:read). Issue one at POST /agent-api/v1/keys."
   },
   "bearerKey": {
    "type": "http",
    "scheme": "bearer",
    "description": "API key. Free-tier operations also work without a key (rate limited)."
   }
  },
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string"
       },
       "message": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 },
 "x-rate-limits": {
  "free": {
   "requests_per_minute": 10,
   "requests_per_day": 200
  },
  "keyed": {
   "requests_per_minute": 120
  }
 },
 "x-pricing": {
  "currency": "USD",
  "summary": "The plan list and the Support plan list is free without a key, up to 200 calls a day per IP. Keyed volume pricing is published at https://myaiceo.org/pricing.",
  "default": {
   "unit": "call",
   "price_usd": 0,
   "free_quota": "200 per day per IP",
   "note": "Keyed volume pricing is published at https://myaiceo.org/pricing"
  }
 },
 "x-f7455-augmented": "agent endpoints + optional scoped API keys added by the F7455 agent surface"
}