List Kafka events

List a Kafka cluster's audit trail. A destroyed cluster keeps its audit trail until we remove the cluster for good.

GET https://{availability_zone}.betterstackcloud.com/v1/kafka/{kafka_id}/events
kafka_id string required

The ID of the Kafka cluster. Get it via betterstack kafka list.

page integer default: 1

The page to return, starting at 1.

per_page integer default: 25

How many entries to return per page. Maximum 1000.

Authorization string required

Bearer $TOKEN

Results are paginated

Use page and per_page to move through pages. See Pagination.

200 OK
{
  "data": [
    {
      "id": "example",
      "kafka_id": "123456789",
      "action": "example",
      "user_id": 123456789,
      "actor": "user",
      "details": {
        "example": "value"
      },
      "created_at": "2026-07-01T12:00:00.000Z"
    }
  ],
  "meta": {}
}

Returns the list of Kafka events.

id string

The event's ID, a UUID.

kafka_id string

The ID of the Kafka cluster.

action string

What happened, such as topic_created. Events cover the cluster, its brokers, topics and users.

user_id integer or null

The Better Stack ID of the user who did it, when actor is user. Otherwise it's null.

actor string

Who or what did it.
Valid values:
user: A Better Stack user did it.
api_token: A request with an API token did it.
system: Better Stack did it.

details object

More about the event, such as the broker ID, topic or username. The keys depend on action.

created_at datetime

When it happened. For a change, it's when we accepted the change. In ISO 8601 format, such as 2026-07-01T12:00:00Z.