pages

Download a site's code project as a zip

Streams the site's code project as the zip it would build from: a site you brought as a finished bundle gives back its newest staged revision (the platform's own bundle.json left out and its migration relocation undone, so the zip re-imports as it is); a site built here gives back its current source tree. The bytes are built on the way out and never stored, auth is re-checked on every call, and the zip is deterministic for a given revision. X-Goosy-Export-Ref names the revision or source ref the zip is byte-identical to. The site's database, storage, media and data tables are not part of the code project and are not in the zip. Pulling a site's code is recorded on the audit ledger and is not metered.

get/api/pages/{siteId}/export

Request

  • Base URL: https://app.goosybear.ai
  • URL: https://app.goosybear.ai/api/pages/{siteId}/export
  • Auth: HTTP bearer

Path parameters

siteIdstring uuid required

The UUID of a site in the resolved workspace.

Query parameters

workspacestring

Which workspace to act in — its slug or id. The SAME argument every workspace-scoped tool takes, resolved the same way: an account-wide key may select any workspace its holder currently reaches, a workspace-pinned key may only name its own, and a call that names nothing falls through to your default. It is a QUERY parameter rather than a body field on purpose: this endpoint's body is a multipart upload, and reading a field out of it would decode that body before the bearer and the rate limiter had run.

Response

The zip. Content-Disposition: attachment; filename="<site>-<ref>.zip", X-Goosy-Export-Kind (managed or bundle) and X-Goosy-Export-Ref (the ref the zip is byte-identical to).

Changes

No recorded changes to this operation across all 4 revisions of this API.