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

result, err := client.Projects.VerifyCustomDomain(ctx)

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest context

Response

(*pgbeam.VerifyCustomDomainResponse, error) — verification result.

Example

import pgbeam "github.com/pgbeam/pgbeam-go"

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

result, err := client.Projects.VerifyCustomDomain(ctx)
if err != nil {
  log.Fatal(err)
}
fmt.Println(result)

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