Public API/Public blog/Resolve custom domain
GET/api/resolve-domain

Resolve custom domain

Look up which project slug owns a custom domain host. Used by edge middleware.

Request

GET /api/resolve-domain?host=blog.example.com

Response

{ "slug": "your-project-slug" }

Returns only the slug — never other project fields. 400 if host is missing; 404 if no project matches.