Docs Home

API Versioning

The version is in the path: https://api.bonsai.io/v1. Within v1, changes are only additive.

What can change within v1

We can, without notice:

  • Add operations, and optional parameters or body fields.
  • Add fields to responses.
  • Add values to open sets: cluster states, Action types and states, credential access types, and error codes.

So build your client to ignore fields it doesn't know, and to handle a state, type or code it doesn't know. The API reference marks each open set. See Values that can grow.

Breaking changes

A change that would break a client goes into a new version, /v2.

If we ever retire something in v1, its responses will carry Deprecation and Sunset headers (RFC 9745 and RFC 8594) first, saying when it goes.

The legacy API

The legacy API, at https://api.bonsai.io without a version in the path, keeps working and is still supported, but gets no new features. Moving from the legacy API maps each legacy call to its v1 equivalent.

Changes

  • v1: first release. Clusters, Actions, credentials, usage, metrics and top queries, and the plans, regions, spaces and releases to create clusters with.

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