App domains
App domains are the base domains that the platform makes available for custom app subdomains. A custom domain is set on an app at creation time (or when deploying from a template) by combining one of these base domains with a subdomain of your choice, for example grafana.galaxygate.app. Before assigning a domain to an app, use the availability check to confirm the full name is not already taken.
List available domains
/v1/apps/domainsList available domainsReturns the list of base domains that can be used for app subdomains. Any authenticated user may call this endpoint.
Returns 200 OK with an array of domain objects. Both fields are required.
| Field | Type | Description |
|---|---|---|
name | string | Base domain name, for example galaxygate.app |
proxy_mode | string | Proxy mode reported by the domain service. The API does not define an enum for this field. |
curl -A 'curl/8.5' \
-H "Authorization: Bearer $GALAXYGATE_TOKEN" \
"https://api.galaxygate.net/v1/apps/domains"Check domain availability
/v1/apps/domainsCheck domain availabilityChecks whether a full domain name is already assigned to an app. The response status code carries the result. The body is empty in both cases.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
domain | string | yes | Full domain name to check, for example grafana.galaxygate.app |
Responses
| Status | Meaning |
|---|---|
200 OK | The domain is already in use. Choose a different subdomain. |
404 Not Found | The domain is available and can be assigned to an app. |
curl -X POST -A 'curl/8.5' \
-H "Authorization: Bearer $GALAXYGATE_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "domain": "grafana.galaxygate.app" }' \
"https://api.galaxygate.net/v1/apps/domains"A 404 response means the name is free. A 200 response means it is taken.