PgBeam Docs
Projects

verifyCustomDomain

Verify custom domain DNS

Checks DNS TXT record to verify domain ownership. Updates domain status on success. Requires a Scale or Enterprise plan.

Usage

const result = await api.projects.verifyCustomDomain({
  pathParams: { project_id: "prj_xxx", domain_id: "dom_xxx" },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
pathParams.domain_idstringYesUnique custom domain identifier (prefixed, e.g. dom_xxx).

Response

Promise<VerifyCustomDomainResponse> — verification result.

Example

import { PgBeamClient } from "pgbeam";

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

const result = await client.api.projects.verifyCustomDomain({
  pathParams: { project_id: "prj_xxx", domain_id: "dom_xxx" },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Custom domains require a Scale or Enterprise plan.
404Resource not found.
429Rate limited. Try again later.

On this page