Skip to content
Maua.Culturewire

Bonsai

Managed Elasticsearch and OpenSearch clusters

Developer toolsCatalog1 tool · 0 triggers

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

    1. Go to app.bonsai.io, open your account settings and the “API Tokens” tab.
    2. 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.
    3. 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.

    Get credentials (opens in a new tab)

Tools (1)

  • Bonsai API requestBONSAI_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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.