sites

Create a site from a folder of files.

The site belongs to the account that authorized the call — there is no claim link and no 24-hour expiry, unlike an anonymous deploy to /api/upload. A single shared top-level folder is stripped, junk files (.DS_Store, __MACOSX…) are dropped, and the homepage is chosen as the root index.html if there is one. 50 MB and 500 files.

post/api/v1/sites

Request

  • Base URL: https://harvis.dev
  • URL: https://harvis.dev/api/v1/sites
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token

Response

Create a site from a folder of files.

deployTokenstring required

Scoped to this one site. Shown here so a CI job can be given it without the account key.

Changes

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