
# Read a domain

Read one custom domain: its status, the site it points at, and the DNS records it still needs. Domains belong to the workspace, so the route does not name a site.

```sh
GET https://sitepaste.com/api/v1/public/domains/{domainId}
```

Requires the `settings` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/domains/d8qjx2v7mz4r" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Response

The domain record, in the shape [list domains](/api/domains/get-domains) returns each entry in, including `verification` while the domain is still `pending_verification`.

400 when `{domainId}` is malformed; 404 when it is well formed but the workspace has no domain with that ID.