Hanzo
OpenapiMq

Returns the org's streams, name-ordered, with their live state.

Returns the org's streams, name-ordered, with their live state.

GET /v1/mq/stream

Addresshttps://api.hanzo.ai/v1/mq/stream
MethodGET
Operationget_mq_stream
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the org's streams, name-ordered, with their live state.

Request

2 fields.

FieldInTypeRequiredDescription
limitqueryintegerLimit caps the streams returned (1–1000, default 100).
offsetqueryintegerOffset skips that many streams, name-ordered.

Response

StatusBodyMeaning
200Streamsok

200 body — 24 fields.

FieldInTypeAlwaysDescription
streamsbodyStream[]Streams is the page, ordered by name.
streams[].configbodyConfig
streams[].config.max_agebodystringMaxAge caps message age, e.g.
streams[].config.max_bytesbodyintegerMaxBytes caps the stream's total stored bytes; -1 (default) is unlimited.
streams[].config.max_msg_sizebodyintegerMaxMsgSize caps one message's size in bytes; -1 (default) is the broker's limit.
streams[].config.max_msgsbodyintegerMaxMsgs caps the number of stored messages; -1 (default) is unlimited.
streams[].config.namebodystringName is the stream name, unique within the org (alphanumeric, hyphens, underscores).
streams[].config.num_replicasbodyintegerReplicas is the number of stream replicas (1–5); this plane runs 1.
streams[].config.retentionbodystringRetention is the retention policy: limits (default), interest, or workqueue.
streams[].config.storagebodystringStorage is the storage backend: file (default) or memory.
streams[].config.subjectsbodystring[]Subjects are the org-relative subjects bound to this stream (wildcards supported).
streams[].createdbodystring (date-time)Created is when the stream was created.
streams[].namebodystringName is the stream name within the org.
streams[].statebodyState
streams[].state.bytesbodyintegerBytes is the total stored size.
streams[].state.consumer_countbodyintegerConsumers is the number of consumers attached to this stream.
streams[].state.first_seqbodyintegerFirstSeq is the sequence of the first stored message.
streams[].state.first_tsbodystring (date-time)FirstTS is the timestamp of the first stored message.
streams[].state.last_seqbodyintegerLastSeq is the sequence of the last stored message.
streams[].state.last_tsbodystring (date-time)LastTS is the timestamp of the last stored message.
streams[].state.messagesbodyintegerMessages is the number of messages currently stored.
streams[].state.num_deletedbodyintegerDeleted is the number of deleted messages (sequence gaps).
streams[].state.num_subjectsbodyintegerSubjects is the number of distinct subjects stored.
totalbodyintegerTotal is the org's stream count before paging.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


MQ API · All Hanzo APIs · Interactive reference

How is this guide?

On this page