Add resource custom domain

POST/v1/servers/{serverId}/custom-domain

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
serverIdpathstringYesResource ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
domainstringYesDomain name to map to the deployed resource.
forceOverridebooleanNoReserved for provider-specific override behavior.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Custom domain mapping createdapplication/json
FieldTypeRequiredDescription
serverobjectNo—
server.idstringNoUnique identifier.
server.userIdstringNoUser ID.
server.organizationIdstringNo—
server.createdByUserIdstringNo—
server.projectIdstringNoProject ID.
server.namestringNoHuman-readable name.
server.descriptionstringNoHuman-readable description.
server.kindwebsite | web_app | api | function | auth | agent_runtime | secrets | paymentsNo—
server.sourceTypestringNo—
server.sourceEnvironmentIdstringNo—
server.sourcePathstringNoWorkspace-relative file path.
server.regionstringNo—
server.runtimestringNo—
server.authModepublic | privateNo—
server.serviceUrlstringNo—
server.customDomainstringNo—
server.cloudRunServiceNamestringNo—
server.imageUrlstringNo—
server.statusdraft | deploying | deployed | failed | inactiveNoCurrent lifecycle status.
server.lastDeployedAtstringNo—
server.metadataobjectNoFree-form metadata object.
server.createdAtstringNoISO 8601 timestamp.
server.updatedAtstringNoISO 8601 timestamp.
domainobjectNo—
domain.domainstringNo—
domain.providerstringNo—
domain.statusconnected | needs_setup | pending_dns | pending | verification_requiredNoCurrent lifecycle status.
domain.urlstringNo—
domain.mappedRouteNamestringNo—
domain.recordsobject[]No—
domain.records[].actionadd | remove | noneNo—
domain.records[].typestringNo—
domain.records[].namestringNoHuman-readable name.
domain.records[].valuestringNo—
domain.records[].sourcestringNo—
domain.conditionsobject[]No—
domain.conditions[].typestringNo—
domain.conditions[].statusstringNoCurrent lifecycle status.
domain.conditions[].reasonstringNo—
domain.conditions[].messagestringNoMessage text.
domain.lastCheckedAtstringNo—
domain.verificationobjectNo—
domain.verification.requiredbooleanNo—
domain.verification.messagestringNoMessage text.
domain.verification.searchConsoleUrlstringNo—
domain.siteIdstringNo—
domain.hostStatestringNo—
domain.ownershipStatestringNo—
domain.certStatestringNo—
domain.dnsCheckTimestringNo—
domainsobject[]No—
domains[].domainstringNo—
domains[].providerstringNo—
domains[].statusconnected | needs_setup | pending_dns | pending | verification_requiredNoCurrent lifecycle status.
domains[].urlstringNo—
domains[].mappedRouteNamestringNo—
domains[].recordsobject[]No—
domains[].records[].actionadd | remove | noneNo—
domains[].records[].typestringNo—
domains[].records[].namestringNoHuman-readable name.
domains[].records[].valuestringNo—
domains[].records[].sourcestringNo—
domains[].conditionsobject[]No—
domains[].conditions[].typestringNo—
domains[].conditions[].statusstringNoCurrent lifecycle status.
domains[].conditions[].reasonstringNo—
domains[].conditions[].messagestringNoMessage text.
domains[].lastCheckedAtstringNo—
domains[].verificationobjectNo—
domains[].verification.requiredbooleanNo—
domains[].verification.messagestringNoMessage text.
domains[].verification.searchConsoleUrlstringNo—
domains[].siteIdstringNo—
domains[].hostStatestringNo—
domains[].ownershipStatestringNo—
domains[].certStatestringNo—
domains[].dnsCheckTimestringNo—
Add resource custom domain
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow