Skip to content

Browse messages

GET
/api/v1/clusters/{id}/topics/{topic}/messages
curl --request GET \
--url 'http://localhost:8080/api/v1/clusters/example/topics/example/messages?from=latest&limit=50' \
--cookie brokerium_session=<brokerium_session>

Role: viewer. Non-UTF-8 keys and values are returned base64-encoded.

id
required
string
topic
required
string
partition
integer format: int32
from
string
default: latest
Allowed values: latest earliest offset timestamp
offset
integer format: int64

Start offset when from=offset.

timestamp
integer format: int64

Start time in Unix milliseconds when from=timestamp.

limit
integer
default: 50 >= 1 <= 500

Messages.

Media typeapplication/json
object
messages
Array<object>
object
partition
integer format: int32
offset
integer format: int64
timestamp
string format: date-time
key
string | null
value
string | null
headers
Array<object>
object
key
required
string
value
required
string
keyEncoding
string
Allowed values: utf8 base64
valueEncoding
string
Allowed values: utf8 base64

Example

{
"messages": [
{
"keyEncoding": "utf8",
"valueEncoding": "utf8"
}
]
}

Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.