Get Program Custom Domain
growsurf_get_campaign_custom_domainFetch the custom domain that serves your GrowSurf program's landing pages, such as https://refer.example.com. Returns domain (null when none is set), isVerified, verifiedAt, and dnsRecord, the CNAME record to add at the DNS provider. This read does not check DNS; use growsurf_verify_campaign_custom_domain for a live check. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>"
},
"name": "growsurf_get_campaign_custom_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | The custom domain, such as `https://refer.example.com`, or `null` when none is set. | |
| createdAt | No | When the domain was set, in epoch milliseconds. `null` when no domain is set. | |
| dnsRecord | No | The DNS record to add at the DNS provider. `null` when no domain is set. | |
| updatedAt | No | When the domain record last changed, in epoch milliseconds. `null` when no domain is set. | |
| isVerified | No | Whether the domain's `CNAME` record pointed to `dnsRecord.value` at the last check. Landing pages load on the domain only when this is `true`. | |
| verifiedAt | No | When the DNS check passed, in epoch milliseconds. `null` while unverified. |