OpenapiSystem
Resolve the current request host to a published custom-domain realm.
Used by the SPA on custom domains before it knows the realm id. This endpoint is intentionally separate from the internal Caddy ask endpoint: the ask endpoint stays shared-secret protected and never leaks realm identity, while this public endpoint is only for hosts already serving the app.
GET
Used by the SPA on custom domains before it knows the realm id. This endpoint is intentionally separate from the internal Caddy ask endpoint: the ask endpoint stays shared-secret protected and never leaks realm identity, while this public endpoint is only for hosts already serving the app.
Custom domain resolved
application/json- response
publicConfig*realmId*stringcurl -X GET 'https://example.com/api/public-config/custom-domain/resolve'Example Response
{
"publicConfig": {
"emailChannelConfigured": true,
"oauthProviders": [
{
"clientId": "string",
"displayName": "string",
"enabled": true,
"name": "string"
}
],
"realmDescription": "string",
"realmName": "string",
"registration": {
"enabled": true,
"requireEmailVerification": true
},
"whiteLabel": {
"accentColor": "string",
"background": null,
"brandName": "string",
"faviconUrl": "string",
"footerText": "string",
"loginSubtitle": "string",
"loginTitle": "string",
"logoUrl": "string",
"registerSubtitle": "string",
"registerTitle": "string"
}
},
"realmId": "string"
}