An app can serve its hosted pages from a domain you own, for example verify.example.com. You register the domain, add a CNAME record at your DNS provider pointing to the target Scute returns, then ask Scute to check it. When the check passes the domain is active and the TLS certificate is issued.
Each app has at most one custom domain. Adding one needs a plan with custom domains; reading, checking and removing one do not.
The key in Authorization must be the app's key or a workspace key of the app's workspace or a workspace above it. X-Authorization is not read.
Domain object#
| Field | Type | Meaning |
|---|---|---|
| id | string | Domain ID |
| domain | string | The hostname |
| status | string | pending, active or failed |
| failure_reason | string or null | Why the last check failed |
| cname_target | string | The host the CNAME record must point to |
| verified_at | string or null | When the domain became active |
| last_checked_at | string or null | When DNS was last checked |
| created_at | string | When the domain was added |
Add a custom domain#
/v1/apps/:app_id/custom_domainApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/custom_domain \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "Content-Type: application/json" \ -d '{"domain": "verify.example.com"}'{ "custom_domain": { "id": "0193fa10-7777-7888-8999-000000000001", "domain": "verify.example.com", "status": "pending", "failure_reason": null, "cname_target": "tenants.example-target.scute.app", "verified_at": null, "last_checked_at": null, "created_at": "2026-11-19T10:00:00.000Z" }, "instructions": { "type": "CNAME", "host": "verify.example.com", "target": "tenants.example-target.scute.app", "message": "Add a CNAME record pointing verify.example.com to tenants.example-target.scute.app, then verify." }}Create the CNAME record with the target from the response. On Cloudflare, set the record to DNS only (proxy off): with the proxy on, the check finds no CNAME record.
| Status | Body | When |
|---|---|---|
| 422 | domain is required | No domain |
| 422 | error_code feature_not_available | The plan does not include custom domains |
| 422 | The domain is invalid or cannot be registered |
Check the DNS record#
Looks up the domain's CNAME record now and updates the status.
/v1/apps/:app_id/custom_domain/verifyApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/custom_domain/verify \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "verified": true, "domain": "verify.example.com", "status": "active"}When the check fails, verified is false and the body adds cname_target and error. When the record points elsewhere, it also has actual_cname.
{ "verified": false, "domain": "verify.example.com", "status": "failed", "cname_target": "tenants.example-target.scute.app", "actual_cname": "old-host.example.net", "error": "DNS resolves to old-host.example.net, expected tenants.example-target.scute.app."}A domain that is already active stays active when the lookup returns no CNAME record; only a record pointing elsewhere moves it to failed. With no domain configured the call returns 404 with No custom domain configured.
Retrieve the custom domain#
/v1/apps/:app_id/custom_domainApp keycurl https://api.scute.io/v1/apps/$SCUTE_APP_ID/custom_domain \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns {"custom_domain": {...}}, or {"custom_domain": null} when the app has none.
Remove the custom domain#
/v1/apps/:app_id/custom_domainApp keycurl -X DELETE https://api.scute.io/v1/apps/$SCUTE_APP_ID/custom_domain \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Returns 204 with no body.
Errors#
| Status | Body | When |
|---|---|---|
| 401 | No valid key | |
| 403 | API key not authorized for this app | The key does not own the app |
| 404 | App not found | The app does not exist |