# CockroachDB integrations: clusters and SQL users

> Create a cluster and create a SQL user in CockroachDB. Connect CockroachDB to the rest of your data and analytics stack with Tray.ai.

**Canonical page:** https://tray.ai/connectors/cockroachdb-integrations/
**Categories:** Data and analytics
**Connects through:** HTTP Connector

## Overview

CockroachDB is a distributed SQL database from Cockroach Labs, offered as a managed cloud service with clusters you can create and manage by API. Tray.ai connects to CockroachDB through the HTTP Connector, so your workflows can call the CockroachDB API alongside the rest of your stack.

## Use cases

### Clusters

Read and create clusters in CockroachDB from any Tray.ai workflow. The CockroachDB API covers calls such as list clusters and create a cluster.

- List clusters
- Create a cluster
- Get a cluster

### SQL users

Read, create, update, and delete sql users in CockroachDB from any Tray.ai workflow. The CockroachDB API covers calls such as list SQL users and create a SQL user.

- List SQL users
- Create a SQL user
- Delete a SQL user

### Maintenance windows

Read, update, and delete maintenance windows in CockroachDB from any Tray.ai workflow. The CockroachDB API covers calls such as set a maintenance window and get a maintenance window.

- Set a maintenance window
- Get a maintenance window
- Delete a maintenance window

### Invoices

Read invoices in CockroachDB from any Tray.ai workflow. The CockroachDB API covers calls such as list invoices and get an invoice.

- List invoices
- Get an invoice

## Frequently asked questions

### Does Tray.ai connect to CockroachDB?

Yes. Tray.ai connects to CockroachDB through the HTTP Connector, which calls the CockroachDB API directly. Any call the CockroachDB API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with CockroachDB?

The CockroachDB API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated CockroachDB connector?

CockroachDB runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated CockroachDB connector from the CockroachDB API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
