Skip to main content

Create a New Site

Creates a new site with a randomly generated slug and returns presigned upload URLs for each file.

Headers

Request Body

array
required
Array of file objects to publish. Must contain at least one file. Maximum 1,000 files.
object
Optional metadata for the site viewer page.

Example Request

Response (201)

Anonymous Publish Response

When no Authorization header is provided, the response includes additional fields:
Save the claimToken immediately. It is returned only once and is needed to claim the site later. Anonymous sites expire in 24 hours.

Validation Rules

  • files array must not be empty
  • Maximum 1,000 files per site
  • No duplicate file paths
  • Paths cannot contain .. or start with /
  • Paths cannot contain null bytes
  • Path max length: 500 characters
  • hash must be exactly 64 lowercase hex characters if provided