API reference

Custom domain

Serve an app's hosted verification pages from your own domain, through a CNAME record.

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#

FieldTypeMeaning
idstringDomain ID
domainstringThe hostname
statusstringpending, active or failed
failure_reasonstring or nullWhy the last check failed
cname_targetstringThe host the CNAME record must point to
verified_atstring or nullWhen the domain became active
last_checked_atstring or nullWhen DNS was last checked
created_atstringWhen the domain was added

Add a custom domain#

POST/v1/apps/:app_id/custom_domainApp key
app_idstringrequired
The app (app_...).
domainstringrequired
The hostname to serve from, for example verify.example.com.
Requestbash
curl -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"}'
Response 201json
{  "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.

StatusBodyWhen
422domain is requiredNo domain
422error_code feature_not_availableThe plan does not include custom domains
422The domain is invalid or cannot be registered

Check the DNS record#

Looks up the domain's CNAME record now and updates the status.

POST/v1/apps/:app_id/custom_domain/verifyApp key
Requestbash
curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/custom_domain/verify \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "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.

Response 200json
{  "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#

GET/v1/apps/:app_id/custom_domainApp key
Requestbash
curl 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#

DELETE/v1/apps/:app_id/custom_domainApp key
Requestbash
curl -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#

StatusBodyWhen
401No valid key
403API key not authorized for this appThe key does not own the app
404App not foundThe app does not exist