---
title: K2
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# K2

#### K2Streams

##### [List K2 streams](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/methods/list)

client.K2.Streams.List(ctx, params) (\*V4PagePaginationArray\[[StreamListResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams%20%3E%20(model)%20StreamListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/k2/streams

##### [Get K2 stream](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/methods/get)

client.K2.Streams.Get(ctx, streamID, query) (\*[StreamGetResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams%20%3E%20(model)%20StreamGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/k2/streams/{stream\_id}

##### [Create K2 stream](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/methods/create)

client.K2.Streams.New(ctx, params) (\*[StreamNewResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams%20%3E%20(model)%20StreamNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/k2/streams

##### [Update K2 stream](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/methods/update)

client.K2.Streams.Update(ctx, streamID, params) (\*[StreamUpdateResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams%20%3E%20(model)%20StreamUpdateResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/k2/streams/{stream\_id}

##### [Delete K2 stream](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/methods/delete)

client.K2.Streams.Delete(ctx, streamID, body) (\*[StreamDeleteResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams%20%3E%20(model)%20StreamDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/k2/streams/{stream\_id}

#### K2StreamsSubscriptions

##### [List K2 stream subscriptions](https://developers.cloudflare.com/api/go/resources/k2/subresources/streams/subresources/subscriptions/methods/list)

client.K2.Streams.Subscriptions.List(ctx, streamID, query) (\*SinglePage\[[StreamSubscriptionListResponse](<https://developers.cloudflare.com/api/go/resources/k2#(resource)%20k2.streams.subscriptions%20%3E%20(model)%20StreamSubscriptionListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/k2/streams/{stream\_id}/subscriptions