---
title: "Create a site by downloading a single page from a known artifact URL."
method: POST
path: "/api/v1/sites/import"
tags: ["sites"]
---

# Create a site by downloading a single page from a known artifact URL.

`POST /api/v1/sites/import`

## Request

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

The shortcut past copy-and-paste for a page an AI chat built: send the artifact's public address and the fetched HTML becomes the site's index.html. Only hosts that serve an artifact as a plain document can be fetched — see lib/artifact-sources.ts for the list — and a chat's own share link is refused with the reason, because it renders the conversation rather than the page inside it. One file, 5 MB; use sites.create for anything with assets.

## Request body

- ImportSiteInput
  - `url` string, required: The artifact's public https address, e.g. https://claude.ai/public/artifacts/<id>.
  - `name` string: Defaults to the imported page's <title>.

## Response `201`

Create a site by downloading a single page from a known artifact URL.

- ImportSiteResult
  - `site` Site, required
    - `id` string, required
    - `name` string, required
    - `subdomain` string, required
    - `url` string, required: Where the site is served, e.g. https://sunny-otter-42.harvis.page.
    - `entrypoint` string, required: The file served at the site's root.
    - `fileCount` integer, required
    - `totalSize` integer, required: Bytes stored, summed over every file.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `deployToken` string, required

## Other responses

- `400`: `importFailed`, `importUnsupported`, `invalidRequest`
- `401`: `unauthorized`
- `403`: `suspended`
- `413`: `tooLarge`

---

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