PgBeam Docs
Analytics

getOrganizationPlan

Get organization plan

Returns the current plan and limits for the organization.

Usage

const result = await api.analytics.getOrganizationPlan({
    pathParams: { org_id: "org_xxx" },
  });

Parameters

ParameterTypeRequiredDescription
pathParams.org_idstringYesUnique organization identifier.

Response

Promise<OrganizationPlan> — organization plan details.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.analytics.getOrganizationPlan({
  pathParams: { org_id: "org_xxx" },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
429Rate limited. Try again later.

On this page