Keystone Developers
Open Keystone
API reference

System

Sites by custom domain

1 endpoint.

GET/api/v1/sites/by-custom-domain

Get worker name by custom domain

Public endpoint: map custom_domain to worker_name (website.repo_name) for routing. No auth. Returns 404 if not found.

Parameters

NameInTypeDescription
domainrequiredquerystring

Custom domain (hostname) to look up

Responses

200Successful Response
application/jsonByCustomDomainResponse
FieldTypeDescription
worker_namerequiredstring
redirect_tostring | null
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.