{
 "openapi": "3.1.0",
 "info": {
  "title": "FixMyPlant API",
  "version": "1.0.0",
  "description": "FixMyPlant helps people keep plants alive: identification, diagnosis, care guides and a pet toxicity list. The toxicity lookup reads the same plant list as the toxicity page and needs no key. The care guide is written per request and needs a key.",
  "contact": {
   "url": "https://fixmyplant.io/agents"
  }
 },
 "servers": [
  {
   "url": "https://fixmyplant.io"
  }
 ],
 "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/toxicity": {
   "get": {
    "operationId": "fixmyplant_toxicity",
    "summary": "Check a plant's toxicity",
    "description": "Looks a plant up in the toxicity list by name (exact match first, then partial) and returns who it is toxic to and the listed symptoms.",
    "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://fixmyplant.io/pricing"
    },
    "parameters": [
     {
      "name": "plant",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/care-guide": {
   "post": {
    "operationId": "fixmyplant_care_guide",
    "summary": "Write a care guide (key required)",
    "description": "Returns a care guide covering light, watering, soil, feeding, temperature, pruning and common problems. Needs a write-scoped key; each call is metered.",
    "tags": [
     "actions"
    ],
    "x-scope": "write",
    "x-free": false,
    "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": null,
     "pricing_url": "https://fixmyplant.io/pricing",
     "free_quota": 0,
     "per_key_daily_cap": 25,
     "note": "Needs a scoped API key. The per-call price is not published yet; keys are issued on request."
    },
    "x-requires-confirm": true,
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "plant_name": {
          "type": "string"
         }
        },
        "required": [
         "plant_name"
        ]
       }
      }
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/about": {
   "get": {
    "operationId": "fixmyplant_about",
    "summary": "What FixMyPlant does and what is free",
    "description": "What FixMyPlant 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://fixmyplant.io/pricing"
    }
   }
  },
  "/v1/pricing": {
   "get": {
    "operationId": "fixmyplant_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://fixmyplant.io/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": 30,
   "requests_per_day": 25
  }
 },
 "x-pricing": {
  "currency": "USD",
  "summary": "The toxicity lookup is free without a key, up to 200 calls a day per IP. Keyed volume pricing is published at https://fixmyplant.io/pricing.",
  "default": {
   "unit": "call",
   "price_usd": 0,
   "free_quota": "200 per day per IP",
   "note": "Keyed volume pricing is published at https://fixmyplant.io/pricing"
  }
 },
 "x-f7455-augmented": "agent endpoints + optional scoped API keys added by the F7455 agent surface"
}