Skip to content

Domains API

Domain management allows you to use custom domains for your campaigns with automatic DNS verification and SSL provisioning via Cloudflare.

All endpoints require either a JWT token or an API key (gf_...) in the Authorization header.

MethodPathScopeDescription
GET/api/v1/domainsread:domainsList all domains
POST/api/v1/domainswrite:domainsAdd a new domain
GET/api/v1/domains/{id}read:domainsGet domain details
DELETE/api/v1/domains/{id}write:domainsRemove a domain
POST/api/v1/domains/{id}/verifywrite:domainsTrigger DNS verification
GET/api/v1/domains/{id}/dns-recordsread:domainsGet required DNS records
Terminal window
curl -X POST https://devcore.getghostflow.io/api/v1/domains \
-H "Authorization: Bearer gf_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"domain": "trk.example.com",
"type": "tracking"
}'
Terminal window
curl -X POST https://devcore.getghostflow.io/api/v1/domains/{id}/verify \
-H "Authorization: Bearer gf_your_api_key"
Terminal window
curl https://devcore.getghostflow.io/api/v1/domains/{id}/dns-records \
-H "Authorization: Bearer gf_your_api_key"

Response 200 OK:

{
"records": [
{
"type": "CNAME",
"name": "trk",
"value": "proxy.getghostflow.io",
"ttl": 300
}
]
}