Docs Home

Plans, regions, spaces and releases

What a cluster can be created with. Plans differ by account, so these lists show what this account can use. A plan's offers say which releases it has in each region. Private spaces are only for accounts with private placement; everyone else picks a region.

On this page: Plan object, Region object, Space object, Release object, List the plans this account can choose, Show a plan, List the regions clusters can be created in, List the account's private spaces, List the releases this account can choose.

The Plan object

FieldTypeDescription
idstringIts ID. Never changes.
namestringThe plan's name.
price_in_centsintegerThe price per billing interval, in US cents.
billing_interval_monthsintegerMonths in each billing interval.
single_tenantbooleanWhether clusters on it run on servers of their own.
private_networkbooleanWhether clusters on it are on a private network.
regionsarray of stringsRegion IDs this plan can be created in: the regions of offers.
releasesarray of stringsRelease IDs this plan can be created with in some region: every release of offers, in offer order.
offersarray of objectsWhere this plan can be created, and with which releases in each region. Empty when the plan is offered nowhere.
offers[].regionstringRegion ID.
offers[].releasesarray of stringsRelease IDs offered in this region, OpenSearch first, then newest first. A create that names no release gets the first one its space can place.
{
  "id": "sandbox",
  "name": "Sandbox",
  "price_in_cents": 0,
  "billing_interval_months": 1,
  "single_tenant": false,
  "private_network": false,
  "regions": ["aws-us-east-1", "aws-eu-west-1"],
  "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"],
  "offers": [
    {
      "region": "aws-us-east-1",
      "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"]
    },
    { "region": "aws-eu-west-1", "releases": ["opensearch-3.8.0"] }
  ]
}

The Region object

FieldTypeDescription
idstringe.g. aws-us-east-1.
namestringThe region's name.
cloudstringOne of aws, gcp. More may be added.
cloud_regionstringThe provider's own name, e.g. us-east-1.
{
  "id": "aws-us-east-1",
  "name": "AWS US East (N. Virginia)",
  "cloud": "aws",
  "cloud_region": "us-east-1"
}

The Space object

FieldTypeDescription
idstringIts ID. Never changes.
namestringThe space's name.
regionstringRegion ID.
private_networkbooleanWhether the space is on a private network.
{
  "id": "acme-private-us-east-1",
  "name": "Acme private (us-east-1)",
  "region": "aws-us-east-1",
  "private_network": true
}

The Release object

FieldTypeDescription
idstringe.g. opensearch-3.8.0.
namestringThe release's name.
enginestringOne of elasticsearch, opensearch. More may be added.
versionstringThe engine's version.
{
  "id": "opensearch-3.8.0",
  "name": "OpenSearch 3.8.0",
  "engine": "opensearch",
  "version": "3.8.0"
}

List the plans this account can choose

GET /v1/plans

  • Scope: account:read

Plans differ by account; this lists the ones this account may use that are offered somewhere.

Parameters

NameInTypeDescription
limitqueryintegerPage size. Defaults to 25.
cursorquerystringThe next_cursor of the previous page. Opaque.

Example request

curl https://api.bonsai.io/v1/plans \
  -H "Authorization: Bearer $BONSAI_TOKEN"

Response

200 OK. A page of Plan objects in data, with next_cursor. See Pagination.

{
  "data": [
    {
      "id": "sandbox",
      "name": "Sandbox",
      "price_in_cents": 0,
      "billing_interval_months": 1,
      "single_tenant": false,
      "private_network": false,
      "regions": ["aws-us-east-1", "aws-eu-west-1"],
      "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"],
      "offers": [
        {
          "region": "aws-us-east-1",
          "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"]
        },
        { "region": "aws-eu-west-1", "releases": ["opensearch-3.8.0"] }
      ]
    }
  ],
  "next_cursor": null
}

Errors

Show a plan

GET /v1/plans/{plan_id}

  • Scope: account:read

404 if the plan isn't available to this account. A plan offered nowhere is answered, with empty offers.

Parameters

NameInTypeDescription
plan_idpathstringRequired.

Example request

curl https://api.bonsai.io/v1/plans/sandbox \
  -H "Authorization: Bearer $BONSAI_TOKEN"

Response

200 OK. The plan. Returns a Plan object.

{
  "id": "sandbox",
  "name": "Sandbox",
  "price_in_cents": 0,
  "billing_interval_months": 1,
  "single_tenant": false,
  "private_network": false,
  "regions": ["aws-us-east-1", "aws-eu-west-1"],
  "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"],
  "offers": [
    {
      "region": "aws-us-east-1",
      "releases": ["opensearch-3.8.0", "elasticsearch-7.10.2"]
    },
    { "region": "aws-eu-west-1", "releases": ["opensearch-3.8.0"] }
  ]
}

Errors

List the regions clusters can be created in

GET /v1/regions

  • Scope: account:read

The regions some plan of this account can be created in.

Parameters

NameInTypeDescription
limitqueryintegerPage size. Defaults to 25.
cursorquerystringThe next_cursor of the previous page. Opaque.

Example request

curl https://api.bonsai.io/v1/regions \
  -H "Authorization: Bearer $BONSAI_TOKEN"

Response

200 OK. A page of Region objects in data, with next_cursor. See Pagination.

{
  "data": [
    {
      "id": "aws-us-east-1",
      "name": "AWS US East (N. Virginia)",
      "cloud": "aws",
      "cloud_region": "us-east-1"
    }
  ],
  "next_cursor": null
}

Errors

List the account's private spaces

GET /v1/spaces

  • Scope: account:read

The account's private spaces that some plan can be created in. Empty for accounts without private placement. Shared spaces are not listed; pick a region instead.

Parameters

NameInTypeDescription
limitqueryintegerPage size. Defaults to 25.
cursorquerystringThe next_cursor of the previous page. Opaque.

Example request

curl https://api.bonsai.io/v1/spaces \
  -H "Authorization: Bearer $BONSAI_TOKEN"

Response

200 OK. A page of Space objects in data, with next_cursor. See Pagination.

{
  "data": [
    {
      "id": "acme-private-us-east-1",
      "name": "Acme private (us-east-1)",
      "region": "aws-us-east-1",
      "private_network": true
    }
  ],
  "next_cursor": null
}

Errors

List the releases this account can choose

GET /v1/releases

  • Scope: account:read

The releases some plan of this account can be created with, OpenSearch first, then newest first.

Parameters

NameInTypeDescription
limitqueryintegerPage size. Defaults to 25.
cursorquerystringThe next_cursor of the previous page. Opaque.

Example request

curl https://api.bonsai.io/v1/releases \
  -H "Authorization: Bearer $BONSAI_TOKEN"

Response

200 OK. A page of Release objects in data, with next_cursor. See Pagination.

{
  "data": [
    {
      "id": "opensearch-3.8.0",
      "name": "OpenSearch 3.8.0",
      "engine": "opensearch",
      "version": "3.8.0"
    }
  ],
  "next_cursor": null
}

Errors

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