---
title: "Get site document"
method: GET
path: "/api/v1/sites/{subdomain}"
tags: ["sites"]
---

# Get site document

`GET /api/v1/sites/{subdomain}`

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}`
- Auth: HTTP bearer

## Query parameters

- `include` string

## Response `200`

Site payload

- SiteGetResponse
  - `subdomain` string, required
  - `rowUpdatedAt` integer, required: DB row timestamp for optimistic concurrency (compare with expectUpdatedAt on PUT).
  - `site` object, required: Site document: includes `pages` (array of SitePageDef), `theme`, title, SEO fields. Use GET to copy shapes from a template-backed site.

## Other responses

- `401`: Missing or invalid credentials
- `403`: Not allowed for this resource
- `404`: Resource not found

---

[API](https://skmtc.dev/slatehut/apis/slatehut-api.md) · [All operations](https://skmtc.dev/slatehut/apis/slatehut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slatehut/apis/slatehut-api/revisions/32dae277550c?raw)
