K2
K2Streams
List K2 streams
GET/accounts/{account_id}/k2/streams
Get K2 stream
GET/accounts/{account_id}/k2/streams/{stream_id}
Create K2 stream
POST/accounts/{account_id}/k2/streams
Update K2 stream
PATCH/accounts/{account_id}/k2/streams/{stream_id}
Delete K2 stream
DELETE/accounts/{account_id}/k2/streams/{stream_id}
ModelsExpand Collapse
StreamListResponse object { id, created_at, endpoint, 5 more }
StreamListResponse object { id, created_at, endpoint, 5 more }
http: object { enabled, authentication, cors } Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
http: object { enabled, authentication, cors }
Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
StreamGetResponse object { id, created_at, endpoint, 5 more }
StreamGetResponse object { id, created_at, endpoint, 5 more }
http: object { enabled, authentication, cors } Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
http: object { enabled, authentication, cors }
Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
StreamCreateResponse object { id, created_at, endpoint, 5 more }
StreamCreateResponse object { id, created_at, endpoint, 5 more }
http: object { enabled, authentication, cors } Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
http: object { enabled, authentication, cors }
Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
StreamUpdateResponse object { id, created_at, endpoint, 5 more }
StreamUpdateResponse object { id, created_at, endpoint, 5 more }
http: object { enabled, authentication, cors } Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
http: object { enabled, authentication, cors }
Configures the HTTP endpoint. Disabling HTTP keeps authentication and cors, so enabling it again restores them.
K2StreamsSubscriptions
List subscriptions with consumer lag
GET/accounts/{account_id}/k2/streams/{stream_id}/subscriptions
ModelsExpand Collapse
SubscriptionListResponse object { id, created_at, lag, 3 more }
SubscriptionListResponse object { id, created_at, lag, 3 more }
lag: object { records, status }
lag: object { records, status }
K2Data
Produce records
POST/produce
K2DataSubscriptions
List subscriptions
GET/subscriptions
Create subscription
POST/subscriptions
Get subscription
GET/subscriptions/{subscription_id}
Delete subscription
DELETE/subscriptions/{subscription_id}
Consume records
POST/subscriptions/{subscription_id}/consume
ModelsExpand Collapse
SubscriptionConsumeResponse object { batch_id, leased_until_ms, records }
SubscriptionConsumeResponse object { batch_id, leased_until_ms, records }
batch_id: string
Identifies the delivered batch for ACK, NACK, and extend. Null when the response contains no records.
leased_until_ms: number
Shows when the lease on the batch expires, in epoch milliseconds. ACK or NACK the batch before then. Null when the response contains no records.
K2DataSubscriptionsBatches
Acknowledge batch
POST/subscriptions/{subscription_id}/batches/{batch_id}/ack
Release batch
POST/subscriptions/{subscription_id}/batches/{batch_id}/nack
Extend batch lease
POST/subscriptions/{subscription_id}/batches/{batch_id}/extend