System
Sites by custom domain
1 endpoint.
GET
/api/v1/sites/by-custom-domainGet 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
| Name | In | Type | Description |
|---|---|---|---|
domainrequired | query | string | Custom domain (hostname) to look up |
Responses
200Successful Responseapplication/jsonByCustomDomainResponse| Field | Type | Description |
|---|---|---|
worker_namerequired | string | |
redirect_to | string | null |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.