PgBeam Docs
Analytics

ListPlans

List available plans

Returns all available plan tiers with their limits and pricing.

Usage

result, err := client.Analytics.ListPlans(ctx)

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context

Response

(*pgbeam.ListPlansResponse, error) — list of available plans.

Example

import pgbeam "github.com/pgbeam/pgbeam-go"

client := pgbeam.NewClient(&pgbeam.ClientOptions{
  APIKey: "pgb_your_api_key",
})

result, err := client.Analytics.ListPlans(ctx)
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)

Errors

StatusDescription
401Missing or invalid authentication.
429Rate limited. Try again later.

On this page