For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
    • Component demos
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • API client examples
  • PlantClient
  • PlantConfig
  • createPlant
  • API method examples
  • create_plant
  • fetchPlants
  • Type definitions
  • PlantStore
  • PlantClient
  • PlantResponse
  • Get methods
Writing content

Component demos

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Reusable snippets

Next

AI features

This page contains demo content for testing and showcasing various documentation components. It’s hidden from navigation but can be linked to from examples.

API client examples

PlantClient

The PlantClient class is the main entry point for interacting with the Plant Store API. It handles authentication, request management, and provides access to all API endpoints.

Constructor parameters:

  • apiKey (string, required): Your API authentication key
  • baseUrl (string, optional): Custom API base URL for testing
  • timeout (number, optional): Request timeout in milliseconds

Example usage:

1import { PlantClient } from "@plantstore/sdk";
2
3const client = new PlantClient({
4 apiKey: "your-api-key-here"
5});

PlantConfig

Configuration object for customizing the Plant Store SDK behavior.

Properties:

  • retryAttempts (number): Number of retry attempts for failed requests
  • cacheEnabled (boolean): Enable response caching
  • logLevel (string): Logging verbosity level

createPlant

Creates a new plant entry in the database.

Parameters:

  • name (string, required): Common name of the plant
  • species (string, required): Scientific species name
  • description (string, optional): Plant description
  • careLevel (string, optional): Care difficulty level

Returns: Promise resolving to the created plant object

Example:

1const plant = await client.createPlant({
2 name: "Monstera",
3 species: "Monstera deliciosa",
4 careLevel: "easy"
5});

API method examples

create_plant

Python method for creating a new plant entry.

Signature:

1def create_plant(
2 name: str,
3 species: str,
4 description: Optional[str] = None,
5 care_level: Optional[str] = None
6) -> Plant

fetchPlants

Retrieves a list of plants from the API with optional filtering.

Parameters:

  • filters (object, optional): Filter criteria
  • limit (number, optional): Maximum number of results
  • offset (number, optional): Pagination offset

Returns: Promise resolving to an array of plant objects

Type definitions

PlantStore

The PlantStore class manages plant data storage and retrieval operations.

Constructor parameters:

  • apiKey (string, required): Your API authentication key
  • config (PlantConfig, optional): Configuration options

PlantClient

The PlantClient class provides a client interface for interacting with PlantStore.

Constructor parameters:

  • store (PlantStore, required): PlantStore instance to use

PlantResponse

Response object returned from plant-related API calls.

Properties:

  • plants (Array): List of plant objects
  • total (number): Total count of plants
  • hasMore (boolean): Whether more results are available

Get methods

Common retrieval methods for accessing plant store resources.

MethodDescriptionParametersReturns
getPlantRetrieves a single plant by its IDplant_id (string, required): The unique identifier of the plantPlant object
getGardenRetrieves a single garden by its IDgarden_id (string, required): The unique identifier of the gardenGarden object