PgBeam Docs
Support

ListSupportCases

List support cases

Lists support cases for the organization with optional status and search filters.

Usage

result, err := client.Support.ListSupportCases(ctx, "org_abc123", nil)

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context
orgIDstringYesUnique organization identifier.
params*pgbeam.ListSupportCasesParamsNoQuery parameters
params.Statuspgbeam.SupportCaseStatusNoFilter by case status.
params.SearchstringNoSearch cases by title.
params.PageSizeintNoNumber of results per page (1-100, default 20).
params.PageintNoPage number (1-based, default 1).

Response

(*pgbeam.ListSupportCasesResponse, error) — list of support cases.

Example

import pgbeam "go.pgbeam.com/sdk"

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

result, err := client.Support.ListSupportCases(ctx, "org_abc123", &pgbeam.ListSupportCasesParams{
    Status: "open",
    Search: "...",
    PageSize: 20,
    Page: 20,
  })
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.

On this page