---
title: "Read the exact stored HTML source of a site you own."
method: GET
path: "/sites/{idOrSlug}/content"
tags: ["Sites"]
---

# Read the exact stored HTML source of a site you own.

`GET /sites/{idOrSlug}/content`

## Request

- Base URL: `https://api.stacktr.ee`
- URL: `https://api.stacktr.ee/sites/{idOrSlug}/content`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.stacktr.ee/oauth/authorize`, token URL `https://api.stacktr.ee/oauth/token`, scopes: `sites:write`, `sites:read`)

Returns index.html verbatim (not the rendered page or the text-stripped /raw view), so an agent can read a page, edit it, and PUT it back in place without losing CSS or inline charts. The read→edit→update loop behind "personalise this template with your agent". Owner-authed.

## Response `200`

The stored HTML, byte for byte, sent as text/plain so no proxy rewrites it.

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Resource not found.

---

[API](https://skmtc.dev/stacktr/apis/stacktree-api.md) · [All operations](https://skmtc.dev/stacktr/apis/stacktree-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stacktr/apis/stacktree-api/revisions/5878cce46977?raw)
