Skip to content

Custom Domains

Attach your own domain names to web services and static sites on Runsite. Each service can have one or more custom domains with automatic TLS.

POST /api/custom-domains?web_service_id={web_service_id}
Content-Type: application/json
{
"domain": "app.example.com"
}

After adding, you need to configure DNS and verify ownership.

Point your domain at Runsite using either of the following records:

Use caseRecordNameValue
Root or apex (example.com)Aexample.comPlatform IP (shown in dashboard)
Subdomain (app.example.com)CNAMEapp.example.com<your-service>.runsite.app (web) or <your-site>.runsite.site (static)

The exact value to use is shown in the Custom domain dialog when you add the domain.

After configuring DNS, trigger verification:

POST /api/custom-domains/{domain_id}/verify?web_service_id={web_service_id}

Response:

{
"domain": "app.example.com",
"verified": true,
"expected_ip": "203.0.113.1",
"actual_ips": ["203.0.113.1"],
"message": "Domain verified successfully"
}

If verification fails, the response shows the expected and actual DNS records to help debug the issue.

GET /api/custom-domains?web_service_id={web_service_id}
GET /api/custom-domains/{domain_id}?web_service_id={web_service_id}
DELETE /api/custom-domains/{domain_id}?web_service_id={web_service_id}
StatusDescription
pendingDomain added, DNS not yet verified
verifiedDNS verified, TLS provisioning in progress
activeDomain fully active with TLS
failedVerification or TLS provisioning failed