PgBeam Docs
Projects

listCustomDomains

List custom domains

Lists all custom domains registered for the project.

Usage

const result = await api.projects.listCustomDomains();

Parameters

ParameterTypeRequiredDescription
queryParams.page_sizenumberNoMaximum number of items to return (1-100, default 20).
queryParams.page_tokenstringNoOpaque token for cursor-based pagination.

Response

Promise<ListCustomDomainsResponse> — list of custom domains.

Example

import { PgBeamClient } from "pgbeam";

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

const result = await client.api.projects.listCustomDomains({
  queryParams: { page_size: 20, page_token: "..." },
});

Errors

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

On this page