POST
/v1/services/{serviceId}/domainsCreate a custom domain⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Registers a custom hostname for the service. The hostname must CNAME to the regional switchboard target before DNS verification can succeed. Returns 429 if the service has reached its domain quota (default: 3).
Parameters
serviceIdstringpathrequiredRequest body
application/json
object
hostnamestringrequired{
"hostname": "string"
}Responses
object
dataobjectrequiredShow child attributes
appIdstringrequiredcertExpiresAtnull | string · date-timerequiredcomputeServiceIdstringrequiredDeprecated: use `appId` instead.
createdAtstring · date-timerequireddnsRecordsarray of objectrequiredShow child attributes
Show array items
namestringrequiredttlnull | numberrequiredtypestringrequiredvaluestringrequiredfailureCategorynull | stringrequiredfailureReasonnull | stringrequiredfoundryStatusstringrequiredhostnamestringrequiredidstringrequiredstatusstringrequiredtypestringrequiredupdatedAtstring · date-timerequiredurlstring · urirequired{
"data": {
"appId": "string",
"certExpiresAt": "2026-06-09T00:00:00Z",
"computeServiceId": "string",
"createdAt": "2026-06-09T00:00:00Z",
"dnsRecords": [
{
"name": "string",
"ttl": 0,
"type": "CNAME",
"value": "string"
}
],
"failureCategory": "acme",
"failureReason": "string",
"foundryStatus": "string",
"hostname": "string",
"id": "string",
"status": "active",
"type": "custom-domain",
"updatedAt": "2026-06-09T00:00:00Z",
"url": "https://example.com"
}
}object
dataobjectrequiredShow child attributes
appIdstringrequiredcertExpiresAtnull | string · date-timerequiredcomputeServiceIdstringrequiredDeprecated: use `appId` instead.
createdAtstring · date-timerequireddnsRecordsarray of objectrequiredShow child attributes
Show array items
namestringrequiredttlnull | numberrequiredtypestringrequiredvaluestringrequiredfailureCategorynull | stringrequiredfailureReasonnull | stringrequiredfoundryStatusstringrequiredhostnamestringrequiredidstringrequiredstatusstringrequiredtypestringrequiredupdatedAtstring · date-timerequiredurlstring · urirequired{
"data": {
"appId": "string",
"certExpiresAt": "2026-06-09T00:00:00Z",
"computeServiceId": "string",
"createdAt": "2026-06-09T00:00:00Z",
"dnsRecords": [
{
"name": "string",
"ttl": 0,
"type": "CNAME",
"value": "string"
}
],
"failureCategory": "acme",
"failureReason": "string",
"foundryStatus": "string",
"hostname": "string",
"id": "string",
"status": "active",
"type": "custom-domain",
"updatedAt": "2026-06-09T00:00:00Z",
"url": "https://example.com"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}