Attach your own domain to any Worker or static site on the Pro plan. Domains follow a Worker's production alias by default (or any named alias you choose), so deployments and rollbacks never require DNS changes.
#Adding a Custom Domain
bash
skopik add_domain --worker api --hostname api.example.com
skopik verify_domain --worker api --hostname api.example.combash
curl -X POST https://api.platform.skopik.com/v1/workers/api/domains \
-H "Authorization: Bearer $SKOPIK_API_KEY" \
-H "content-type: application/json" \
-d '{"hostname": "api.example.com", "alias": "production"}'json
{
"tool": "add_domain",
"arguments": { "worker": "api", "hostname": "api.example.com" }
}#Subdomains vs. Bare (Apex) Domains
The API response returns the exact DNS records to configure at your DNS provider:
| Domain type | DNS record | Routing & TLS |
|---|---|---|
Subdomain (app.example.com) | CNAME pointing to your Worker's .skopik.app hostname | Served through CloudFront with CloudFront-managed TLS and CDN caching. |
Bare domain (example.com) | Two A records pointing to the platform's fixed Elastic IPs | Served directly through the Network Load Balancer with automatic Let's Encrypt TLS. |
#Verification & Removal
- Once DNS resolves, the platform verifies ownership, issues a TLS certificate automatically, and transitions the domain to
active. - Trigger an immediate check after updating DNS with
verify_domain(POST /v1/workers/{worker}/domains/{hostname}/verify). - List all domains across your org with
list_org_domains(GET /v1/domains), or detach one immediately withremove_domain(DELETE /v1/workers/{worker}/domains/{hostname}).