PgBeam Docs
Support

GetSupportCase

Get a support case

Returns a support case with all its messages.

Usage

result, err := client.Support.GetSupportCase(ctx, "org_abc123", "sc_xxx")

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context
orgIDstringYesUnique organization identifier.
caseIDstringYesUnique support case identifier (prefixed, e.g. sc_xxx).

Response

(*pgbeam.GetSupportCaseResponse, error) — support case with messages.

Example

import pgbeam "go.pgbeam.com/sdk"

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

result, err := client.Support.GetSupportCase(ctx, "org_abc123", "sc_xxx")
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.
404Resource not found.

On this page