Skip to content
Start here

Subscriptions

List subscriptions with consumer lag
client.k2.streams.subscriptions.list(stringstreamID, SubscriptionListParams { account_id } params, RequestOptionsoptions?): SinglePage<SubscriptionListResponse { id, created_at, lag, 3 more } >
GET/accounts/{account_id}/k2/streams/{stream_id}/subscriptions
ModelsExpand Collapse
SubscriptionListResponse { id, created_at, lag, 3 more }
id: string
created_at: string
formatdate-time
lag: Lag { records, status }
records: string | null

Decimal-string distance from the subscription’s committed position to the observed exclusive stream tail, in records. Includes in-flight records and may include expired records or records acknowledged beyond an earlier gap. Null unless status is available.

status: "available" | "unsupported" | "unavailable"

Unsupported means the subscription or stream topology cannot be measured; unavailable means a required observation failed or was inconsistent.

One of the following:
"available"
"unsupported"
"unavailable"
modified_at: string
formatdate-time
name: string
start_at: StartAt { type }
type: "earliest" | "latest"
One of the following:
"earliest"
"latest"