Connect the integration
Connecting Confluent Cloud requires four values: an API key and secret scoped to your cluster, the cluster’s REST endpoint URL, and the cluster ID.API key credentials
Cluster details
Steps to connect
- Go to the Integrations & API Keys page in the sidebar of your Relevance AI dashboard.
- Click on Confluent Cloud from the available integrations.
- Click Add Integration.
- Enter your API Key and API Secret.
- Enter your REST Endpoint URL and Cluster ID.
- Click Save to complete the connection.
Getting your credentials from Confluent Cloud
1
Find the REST endpoint URL
In the Confluent Cloud console, open your cluster and go to Cluster Overview → Cluster Settings. The REST endpoint is listed under Endpoints. Copy the full URL including the port (
:443).2
Find the cluster ID
On the same Cluster Settings page, the cluster ID is displayed at the top. It starts with
lkc-.3
Create a cluster-scoped API key
Go to Cluster Overview → API Keys and click Create key. Select Granular access and scope the key to the cluster (not to the organization or cloud). Download or copy the key and secret — the secret is only shown once.
Available tool steps
The Confluent Cloud integration provides the following tool steps for use in your agents and tools.Generic Confluent Cloud API call
Makes any authenticated request to the Confluent Cloud Kafka REST API. Automatically substitutes the cluster ID into path placeholders, so you can write
{cluster_id} in the path without hardcoding the value. Use this for operations not covered by the purpose-built steps below.List topics
Retrieves all topics on the connected cluster, including their configuration and partition details.
Create topic
Creates a new topic on the cluster. You can specify the topic name, number of partitions, and replication factor.
Delete topic
Deletes a topic from the cluster by name. This action is irreversible — unconsumed records in the topic are lost.
Produce a record to a topic
Publishes a record to a specified topic. You can set the record key, value, and optional headers.
List consumer groups
Lists all consumer groups on the cluster along with their state, making it possible to monitor consumer lag and group activity.
Example use cases
- Trigger agent actions in response to Kafka topic data, or produce records that drive downstream systems.
- Automate topic creation and cleanup as part of environment provisioning workflows.
- Use agents to produce enriched or transformed records to Kafka topics from external data sources.
- Regularly list consumer groups and alert when groups fall behind, enabling proactive incident response.
Frequently asked questions (FAQs)
Why am I getting 401 errors?
Why am I getting 401 errors?
The most common cause is using an organization-level or Cloud API key instead of a cluster-scoped key. Organization and Cloud API keys target the Confluent control plane, not the Kafka REST API. Create a new cluster-scoped API key from Cluster Overview → API Keys and update your integration credentials.
Where do I find the REST endpoint URL?
Where do I find the REST endpoint URL?
In the Confluent Cloud console, go to your cluster and open Cluster Overview → Cluster Settings. The REST endpoint is listed under Endpoints. It is specific to your cluster — do not use the control plane URL (
api.confluent.cloud).Can I use the generic API call step to access topics across multiple clusters?
Can I use the generic API call step to access topics across multiple clusters?
The generic API call step is scoped to the single cluster configured in your integration credentials. To work with multiple clusters, set up a separate Confluent Cloud integration for each cluster.
Is the API secret stored securely?
Is the API secret stored securely?
Yes. Relevance AI encrypts all integration credentials at rest. The API secret is never returned in plaintext after the initial save.

