Docs Home

Plans API Introduction

The Plans API gives users the ability to explore the different cluster subscription plans available to their account.

The Plans API gives users the ability to explore the different cluster subscription plans available to their account. This API supports the following actions:

  • View all plans available for your account.
  • View a single plan available for your account.

All calls to the Plans API must be authenticated with an active API token that has the account:read scope.

The Bonsai Plan Object

The Bonsai API provides a standard format for Plan objects. A Plan object includes:

AttributeDescription
slugA String representing a machine-readable name for the plan.
nameA String representing the human-readable name of the plan.
price_in_centsAn Integer representing the plan price in cents.
billing_interval_in_monthsAn Integer representing the plan billing interval in months.
single_tenantA Boolean indicating whether the plan is single-tenant or not. A value of false indicates the Cluster will share hardware with other Clusters. Single tenant environments can be reached via the public Internet. Additional documentation here.
private_networkA Boolean indicating whether the plan is on a publicly addressable network. Private plans provide environments that cannot be reached by the public Internet. A VPC connection will be needed to communicate with a private cluster.
available_releasesAn Array with the slugs of the search releases available for the plan. Additional information about a release can be retrieved from the Releases API.
available_spacesAn Array with the paths of every active shared Space. It is the same list for every plan, and it does not include your account's private spaces. Use the Spaces API for the spaces your account can provision clusters in.

View all plans

The Bonsai API provides a method to get a list of all plans available to your account. An HTTP GET call is made to the /plans endpoint, and Bonsai will return a JSON list of Plan objects.

Supported Parameters

No parameters are supported for this action.

HTTP Request

An HTTP GET call is made to /plans.

HTTP Response

Upon success, Bonsai responds with an HTTP 200: OK code, along with a JSON list representing the Plans available to your account:

{
  "plans": [
     {
        "slug": "sandbox",
        "name": "Sandbox",
        "price_in_cents": 0,
        "billing_interval_in_months": 1,
        "single_tenant": false,
        "private_network": false,
        "available_releases": [
            "elasticsearch-7.10.2",
            "opensearch-2.19.4"
        ],
        "available_spaces": [
            "omc/bonsai-gcp/us-east4/common",
            "omc/bonsai-gcp/us-west1/common",
            "omc/bonsai/ap-northeast-1/common",
            "omc/bonsai/ap-southeast-2/common",
            "omc/bonsai/eu-central-1/common",
            "omc/bonsai/eu-west-1/common",
            "omc/bonsai/us-east-1/common",
            "omc/bonsai/us-west-2/common"
        ]
     },
     {
        "slug": "standard-fir",
        "name": "Standard Fir",
        "price_in_cents": 2000,
        "billing_interval_in_months": 1,
        "single_tenant": false,
        "private_network": false,
        "available_releases": [
            "elasticsearch-7.10.2",
            "opensearch-2.19.4"
        ],
        "available_spaces": [
            "omc/bonsai-gcp/us-east4/common",
            "omc/bonsai-gcp/us-west1/common",
            "omc/bonsai/ap-northeast-1/common",
            "omc/bonsai/ap-southeast-2/common",
            "omc/bonsai/eu-central-1/common",
            "omc/bonsai/eu-west-1/common",
            "omc/bonsai/us-east-1/common",
            "omc/bonsai/us-west-2/common"
        ]
     }
  ]
}

View a single plan

The Bonsai API provides a method to retrieve information about a single Plan available to your account.

Supported Parameters

No parameters are supported for this action.

HTTP Request

An HTTP GET call is made to /plans/[:plan-slug].

HTTP Response

Upon success, Bonsai will respond with an HTTP 200: OK code, along with a JSON body representing the Plan object:

{
   "slug": "sandbox",
   "name": "Sandbox",
   "price_in_cents": 0,
   "billing_interval_in_months": 1,
   "single_tenant": false,
   "private_network": false,
   "available_releases": [
      "elasticsearch-7.10.2",
      "opensearch-2.19.4"
   ],
   "available_spaces": [
      "omc/bonsai-gcp/us-east4/common",
      "omc/bonsai-gcp/us-west1/common",
      "omc/bonsai/ap-northeast-1/common",
      "omc/bonsai/ap-southeast-2/common",
      "omc/bonsai/eu-central-1/common",
      "omc/bonsai/eu-west-1/common",
      "omc/bonsai/us-east-1/common",
      "omc/bonsai/us-west-2/common"
   ]
}

A slug that does not name a plan available to your account gets an HTTP 404: Not Found error:

{
  "errors": [
    "Plan 'sandboxing' not found. Please use the /plans endpoint for a list of available plans."
  ],
  "status": 404
}

Ready to power your search with AI?

Launch a fully managed Elasticsearch or OpenSearch cluster, with built-in vector search and AI capabilities.

Create an AI Ready Search Cluster
Calming Bonsai waves