Adset.ProAdset.ProKnowledge base
To app

Domains

Domains are the addresses on which campaign tracking links and PWAs run. Through the API, domains are read-only: you can get the list of team domains with their statuses and pick an id for the campaign domain field. Registration, purchase, parking and Cloudflare operations are performed in the dashboard (see the Domains section).

Getting a token, the general response format, list parameters and errors are covered in the main article of the section.

Scopes

Scope Access In PAT default
api:domains read: list and domain card yes

There is no write scope for domains.

Endpoints

Method Path Scope RBAC permission
GET /api/domains api:domains domain:list
GET /api/domains/{id} api:domains domain:read

All roles have these permissions. Visibility: ADMIN — all domains, other roles — domains of their own team. Someone else's domain → 404.

List parameters GET /api/domains

Fields
Filters filter[...] domain, type, format, status, cf, team, user, isActive, tags
Sorting sort domain, type, format, status, cf, team, isActive, expireDate, gsbCheck.error, virusCheck.error, created, updated
Default populate registrator (name), cf (name, dnsRecords), user (name, email, avatar), team (name), campaigns (name, isActive), tags (name, color)
# active campaign domains, soonest to expire first
curl -G 'https://adset.pro/api/domains' \
  -H 'Authorization: Bearer pat_…' \
  --data-urlencode 'pageSize=100' \
  --data-urlencode 'filter[type]=campaign' \
  --data-urlencode 'filter[status]=active' \
  --data-urlencode 'filter[isActive]=true' \
  --data-urlencode 'sort=expireDate:asc' \
  --data-urlencode 'select=domain,status,type,expireDate,campaigns'

Domain object

Field Type Description
id string ObjectId
domain string domain name
isActive boolean whether the domain is enabled
type tracker | campaign | pwa | pending | free purpose: system tracker domain; domain for campaigns; domain for PWA; awaiting assignment; available for purchase
status see below lifecycle stage
format global | personal shared (system) domain or team domain
price number purchase price with markup (for domains from the catalog)
registrator id | { id, name } registrar account
cf id | object Cloudflare account
cfZoneId, cfNsServers[] string, string[] Cloudflare zone and NS servers
dnsRecords[] objects current DNS records: { type, name, content, proxied, ttl, cfRecordId }
servingMode cf-saas | agent how the domain is served: via Cloudflare on the platform edge or via a proxy agent on the client's server
serverId, server id, object | null linked client server (for agent)
customHostnameId, verificationTxt string | null Cloudflare SaaS connection data
gsbCheck, virusCheck { lastCheck, error } Google Safe Browsing and antivirus check results; error is filled in if the domain is flagged
healthCheck { lastCheck, error, consecutiveFails } domain availability
registrationError string | null error of the last registration attempt
campaigns[] id[] | objects campaigns using the domain (empty for system domains)
tags[] id[] | objects tags
team, user id | object | null team and owner
expireDate date registration expiry date
created, updated date read-only

status values

Value Meaning
pending awaiting registration
reserved reserved for purchase
registration being registered: purchase and adding to Cloudflare
registered registered with the registrar, awaiting Cloudflare setup
active fully active — can be used in campaigns
transfer being transferred to the platform
expired registration has expired
blocked blocked based on check results (health / virus / Safe Browsing)
cancelled registration cancelled
deleted permanently deleted

For campaigns, use domains with type = campaign, status = active, isActive = true and an empty gsbCheck.error.

Example response of GET /api/domains/{id}:

{
  "data": {
    "id": "6650f0e1d2c3b4a5f6e7d8c9",
    "domain": "track-de.example.com",
    "isActive": true,
    "type": "campaign",
    "status": "active",
    "format": "personal",
    "price": 0,
    "registrator": "6600…",
    "cf": "6601…",
    "domainId": 0,
    "cfZoneId": "a1b2…",
    "cfNsServers": ["ns1.cloudflare.com", "ns2.cloudflare.com"],
    "dnsRecords": [ { "type": "A", "name": "@", "content": "203.0.113.10", "proxied": true, "ttl": 1, "cfRecordId": "f3e2…" } ],
    "customHostnameId": null,
    "servingMode": "cf-saas",
    "serverId": null,
    "server": null,
    "verificationTxt": null,
    "registrationError": null,
    "gsbCheck": { "lastCheck": "2026-10-13T06:00:00.000Z" },
    "virusCheck": { "lastCheck": "2026-10-13T06:00:00.000Z" },
    "healthCheck": { "lastCheck": "2026-10-13T09:55:00.000Z", "consecutiveFails": 0 },
    "campaigns": ["6704a1b2c3d4e5f6a7b8c9d0"],
    "tags": [],
    "team": "64b0…",
    "user": "64a0…",
    "expireDate": "2027-03-01T00:00:00.000Z",
    "created": "2026-03-01T10:00:00.000Z",
    "updated": "2026-10-13T09:55:00.000Z"
  },
  "traceId": "01HX…"
}

In the card, references are not expanded (string ids); in the list, registrator, cf, user, team, campaigns, tags come as objects. Secrets of registrar and Cloudflare accounts are masked in responses.

What is not part of the public API

Creating and editing domains, the registration wizard (/wizard/*), purchase (/buying-domains), transfer (/transfer), checks (/check, /gsb-check), Cloudflare operations (/add-to-cf, /sync-dns, /purge-cache, /detach-cf), /free-list, deletion. These endpoints have no scope and are not guaranteed for integrations.

Errors

HTTP When
403 forbidden + Insufficient OAuth scope. Required: api:domains the token does not have the api:domains scope
404 notFound the domain does not exist or belongs to another team

Related articles