Skip to content
Start here

Fetch all apps

client.RealtimeKit.Apps.Get(ctx, query) (*AppGetResponse, error)
GET/accounts/{account_id}/realtime/kit/apps

Fetch all apps for your account

Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Realtime AdminRealtime
ParametersExpand Collapse
query AppGetParams
AccountID param.Field[string]

The account identifier tag.

maxLength32
ReturnsExpand Collapse
type AppGetResponse struct{…}
Data []AppGetResponseDataoptional
ID stringoptional
CreatedAt stringoptional
Name stringoptional
Success booloptional

Fetch all apps

package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/realtime_kit"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  app, err := client.RealtimeKit.Apps.Get(context.TODO(), realtime_kit.AppGetParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", app.Data)
}
{
  "data": [
    {
      "created_at": "2025-01-01T08:16:40.644Z",
      "id": "my-app-id",
      "name": "my-first-app"
    }
  ],
  "success": true
}
Returns Examples
{
  "data": [
    {
      "created_at": "2025-01-01T08:16:40.644Z",
      "id": "my-app-id",
      "name": "my-first-app"
    }
  ],
  "success": true
}