GET /site/domain
Updated Oct 1, 20261 minute read
Get the custom domain
The public site's custom domain and the DNS records still to add. domain is null when the site only has its median.website address.
Part of Site.
Responses
| Status | Description |
|---|---|
200 | The custom domain, or null. |
401 | The bearer token is missing, revoked, or expired. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
domain | object | null | No |
Example request
curl https://api.median.sh/v1/site/domain \
-H "Authorization: Bearer $BEARER_AUTH"