Skip to content

Authentication ​

This section talks about how to authenticate with the Typesense Cloud Cluster Management API.

If you're looking for the Typesense Server API docs, see here.

Getting an API Key ​

  1. Log in to Typesense Cloud
  2. Switch to the account you want to generate an API Key for, using the account switcher on the top right.
  3. Navigate to your account page.
  4. Scroll all the way down, and click on the "Read More" link next to "Need programmatic access to create clusters".
  5. On the next page, pick the key's capabilities, then click "New Cluster Management API Key".

Make sure you note this API Key down, as this will be the only time you'll be able to see the full API Key.

Capabilities ​

When you create a key in the Typesense Cloud dashboard, you can pick one or more of these capabilities. If a key doesn't have the capability a request needs, you'll get an HTTP 403 that names the capability (see Response Codes).

GroupCapabilityWhat it allows
adminEvery capability below. A few requests need admin itself because they write to the data inside a cluster, such as accepting a synonym suggestion.
Clustersclusters:readList clusters and read their configuration and status, their history of configuration changes, cloning and rolling restarts, and their server parameters
clusters:createCreate clusters (billed to the account)
clusters:configureResize, change topology, rename and toggle auto-upgrade (billable changes)
clusters:restartStart and cancel rolling restarts
clusters:cloneClone clusters
clusters:terminateTerminate clusters
Server parameterscluster_parameters:manageChange Typesense server parameters and synonym suggestion settings, and read and change analytics rule notifications (scheduling them also needs search_insights:read)
Metricsmetrics:readRead cluster metrics and request logs, including when each API key was last used
search_insights:readRead a collection's search insights and list its synonym suggestions
Backupsbackups:readList a cluster's backups and read its backup settings and their estimated cost
backups:manageTurn backups on or off and change their schedule and regions (billed), and delete backups
backups:restoreRestore a backup onto a new cluster (billed), or onto the backed-up cluster itself, replacing all of its data
Cluster API keyscluster_credentials:issueIssue a cluster's standard admin and search-only key pair
cluster_credentials:manageList, create and revoke a cluster's keys, including keys with a custom scope
Network accesscluster_network:manageRead and replace a cluster's IP allowlist
Dashboard linksdashboard_links:manageCreate, list and revoke links that open one cluster's dashboard for a person without a Typesense Cloud account
Billingbilling:readRead invoices, the billing summary and usage, costs by cluster and prices
billing:manageSwitch the account between weekly and monthly billing

On a team account, a key can only carry what your own role allows.

Grant these with care

  • cluster_credentials:issue and cluster_credentials:manage can each return a wildcard Typesense Server admin key, so you want to grant them only to trusted workflows that need to create cluster credentials.
  • cluster_network:manage can cut off every client of the cluster.
  • dashboard_links:manage hands out sign-ins to a cluster's dashboard. AI agents connected through the MCP server can't be given it at all.
  • Cloning and restoring copy cluster data, and billing access can reveal billing information, so those capabilities are separate from clusters:read.

Making API Calls ​

Set the API key in the X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY HTTP header. An AI agent that cannot open a browser can also present this key as a bearer token to the Typesense Cloud MCP server.

shell
curl -X GET --location "https://cloud.typesense.org/api/v1/clusters" \
    -H "Accept: application/json" \
    -H "X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY: YOUR-API-KEY"

Check which account a key acts on ​

Any key can look up the account it belongs to and the capabilities it carries:

shell
curl -X GET --location "https://cloud.typesense.org/api/v1/account" \
    -H "Accept: application/json" \
    -H "X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY: YOUR-API-KEY"

Response:

json
{
  "id": 123456789,
  "name": "acme",
  "type": "team",
  "status": "active",
  "credential": {
    "type": "management_api_key",
    "capabilities": ["clusters:read", "metrics:read"],
    "acting_as": null
  }
}

type is individual or team. credential.capabilities lists the key's capabilities, or ["admin"] for a key with every capability. When an AI agent calls this through the MCP server with your consent, credential.type is oauth_grant and acting_as is your username.

Revoking API Keys ​

To revoke a key, click the trash icon next to it on the Cluster Management API Keys page.

Keys belong to the account, so a key keeps working after the user who created it leaves the account.