Get a Kafka user's credentials

Get the user's password and the settings a client needs to connect. You can get them at any time.

GET https://{availability_zone}.betterstackcloud.com/v1/kafka/{kafka_id}/users/{id}/credentials
kafka_id string required

The ID of the kafka the Kafka user belongs to.

id string required

The ID of the Kafka user.

Authorization string required

Bearer $TOKEN

200 OK
{
  "username": "example",
  "password": "example",
  "bootstrap_servers": "example",
  "public_bootstrap_servers": "example",
  "security_protocol": "example",
  "sasl_mechanism": "example",
  "ca_certificate": "example",
  "properties": {
    "bootstrap.servers": "example",
    "security.protocol": "example",
    "sasl.mechanism": "example",
    "sasl.username": "example",
    "sasl.password": "example",
    "ssl.ca.location": "example"
  }
}

Returns the user's credentials and the client settings as one object.

username string

The user's username.

password string

The user's password.

bootstrap_servers string

The private bootstrap address, as host:port.

public_bootstrap_servers string

The public bootstrap address, as host:port. Only a cluster with public access has it.

security_protocol string

The protocol clients connect with, always SASL_SSL.

sasl_mechanism string

The authentication mechanism, always SCRAM-SHA-512.

ca_certificate string

The CA certificate to verify the cluster's TLS certificate with. Save it to a file for your client.

properties object

The client settings to connect with, ready to use with librdkafka and kcat. Replace /path/to/betterstack-ca.pem with the path where you saved ca_certificate.

properties.bootstrap.servers string

The private bootstrap address, as host:port.

properties.security.protocol string

The protocol clients connect with, always SASL_SSL.

properties.sasl.mechanism string

The authentication mechanism, always SCRAM-SHA-512.

properties.sasl.username string

The user's username.

properties.sasl.password string

The user's password.

properties.ssl.ca.location string

The placeholder /path/to/betterstack-ca.pem. Replace it with the path where you saved ca_certificate.