Bonsai
Managed Elasticsearch and OpenSearch clusters
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API token (bonsai_…)SecretRequired
Where to find them
- Go to app.bonsai.io, open your account settings and the “API Tokens” tab.
- Click “New Token”, choose the permissions (account:read and clusters:read are enough to read; clusters:write only if you want to create or delete clusters) and an expiry date.
- Copy the token (bonsai_…) right after creating it: it is not shown again. If your token is an old one (key and secret separately), enter it as key:secret.
Tools (1)
Bonsai API request
BONSAI_SEND_REQUESTAuthenticated call to the Bonsai API (https://api.bonsai.io). Any endpoint of the API is allowed. Examples: GET /clusters, GET /clusters/{slug}, GET /spaces, GET /spaces/{path}, GET /plans. With the clusters:write permission: POST /clusters, PUT /clusters/{slug}, DELETE /clusters/{slug} {"name": "…"}.
Required scopes
No scopes required
Input
Bonsai API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

