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();Parameters
None.
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();Errors
| Status | Description |
|---|---|
| 400 | Invalid request parameters. |
| 401 | Missing or invalid authentication. |
| 403 | Custom domains require a Scale or Enterprise plan. |
| 404 | Resource not found. |
| 429 | Rate limited. Try again later. |