---
title: "Download a site's entrypoint HTML"
method: GET
path: "/api/sites/{slug}/content"
tags: ["site-controller"]
---

# Download a site's entrypoint HTML

`GET /api/sites/{slug}/content`

## Request

- Base URL: `https://api.pagegoat.com`
- URL: `https://api.pagegoat.com/api/sites/{slug}/content`
- Auth: HTTP bearer

The page at the root of the site, as a file: it is sent as an attachment, so a browser opening this URL saves it rather than showing it. A site is viewed at its own address. Viewer role or better; public sites serve without a token.

## Path parameters

- `slug` string, required

## Response `200`

The HTML.

## Other responses

- `404`: No such site, or no access to it.

---

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