site-controller

Download one file of a multi-file site

The path after /assets/ is the file's path relative to the version root, so it may contain slashes: /api/sites/my-site/assets/styles/main.css. Sent as an attachment, like the entrypoint. Viewer role or better; public sites serve without a token.

get/api/sites/{slug}/assets/{path}

Request

  • Base URL: https://api.pagegoat.com
  • URL: https://api.pagegoat.com/api/sites/{slug}/assets/{path}
  • Auth: HTTP bearer

Path parameters

slugstring required
pathstring required

The file's path relative to the version root. May contain slashes: styles/main.css is served at /api/sites/{slug}/assets/styles/main.css.

Response

The file, typed by its extension.

Changes

No recorded changes to this operation across all 1 revision of this API.