# Resolve custom domain

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

HTML version: https://blogizi.com/docs/api-resolve-domain
Markdown version: https://blogizi.com/docs/api-resolve-domain.md

## Request

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

## Response

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

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