Zipped.devDocs

API keys

Paid plans get Bearer keys for the REST API at app.zipped.dev with sites:read and sites:write, including review rounds and comments. The secret is shown only once.

Paid plans can mint long-lived Bearer tokens for scripts, CI, and MCP clients. Free accounts cannot create or use API keys.

Create an API key

  1. Sign in at app.zipped.dev and open Settings → API keys.
  2. Click Create key (Freelancer or above).
  3. In the dialog, enter a Name, choose an Expiration (default 90 days, or Never / 30 days / 1 year), and click Create key.
  4. Copy the token in the reveal step (Copy key), then click Done. Zipped.dev stores only a hash and will not show the secret again.

New keys include both scopes: sites:read (list and read sites) and sites:write (create, deploy, delete). Production tokens start with zp_live_. Local dev on zipped.test uses zp_test_.

Expiration and rotation

Expired keys return 401 Unauthorized on API and MCP requests. Revoked keys do the same immediately. To rotate a key, create a new one, update your scripts or CI secrets, then Revoke the old key in the list.

Authenticate requests

Send the token on every request:

Authorization: Bearer zp_live_xxxx

Replace zp_live_xxxx with your key. Missing, malformed, revoked, or expired keys return 401 with "Unauthorized" in the JSON body (see Errors).

API access requires Freelancer or above. A free account gets 403 with code api_not_available even if a key row exists.

Base URL

Environment Base URL
Production https://app.zipped.dev/api/v1
Local https://zipped.test/api/v1

All successful JSON responses use application/json; charset=utf-8. Upload endpoints use multipart/form-data.

List sites

GET /api/v1/sites (scope sites:read)

Optional query: clientId filters to one client folder.

curl -s "https://app.zipped.dev/api/v1/sites" \
  -H "Authorization: Bearer zp_live_xxxx"

Returns 200 with a sites array (id, slug, displayName, publicUrl, status, sizeBytes, role, createdAt, expiresAt).

Get one site

GET /api/v1/sites/:id (scope sites:read)

curl -s "https://app.zipped.dev/api/v1/sites/PROJECT_ID" \
  -H "Authorization: Bearer zp_live_xxxx"

Returns 200 with site metadata, your role, and plan caps (maxSizeBytes, maxProjects). Unknown or inaccessible sites return 403 (Forbidden) or 404 depending on access rules.

Create a site

POST /api/v1/sites (scope sites:write). Content-Type: multipart/form-data

Field Required Description
file yes Folder, ZIP, HTML, PDF, Office file, or Markdown upload (same rules as the dashboard)
slug yes Subdomain for the live URL
name no Display name
clientId no Client folder ID; omit for the default client
curl -s -X POST "https://app.zipped.dev/api/v1/sites" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -F "file=@dist.zip" \
  -F "slug=my-site" \
  -F "name=My Site"

Success is 201 with id, slug, publicUrl, and optional skipped paths. An empty or missing file field returns 400 with upload_empty. A blank slug returns invalid_slug. A taken slug returns 409 with slug_taken.

Deploy to an existing site

POST /api/v1/sites/:id/deploy (scope sites:write). Content-Type: multipart/form-data

Field Required
file yes
curl -s -X POST "https://app.zipped.dev/api/v1/sites/PROJECT_ID/deploy" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -F "file=@dist.zip"

Returns 200 with id, sizeBytes, and skipped. The slug does not change; use the dashboard to rename.

Publish and deploy responses also include findings: a list of { code, level, paths, count, detail? } describing what the export doctor fixed (wrapper_folder_removed, home_page_promoted) or wants you to check (source_not_built, server_rendered_app, no_home_page, files_not_uploaded, secrets_left_out, missing_files, calls_own_server). If two folders could be the site, the call fails with 409 and site_root_ambiguous, and error.details.candidates lists the folders. Send the same request again with a root form field set to one of them.

Upload a big site, file by file

The single-request ZIP upload above is limited to 50 files, 10 MB, and 500 KB per file. For anything bigger, upload each file on its own. This is the same file-by-file upload the dashboard uses, so the same limits apply: up to 2,000 files, 100 MB per file, and your plan’s storage.

  1. Start. POST /api/v1/uploads (scope sites:write) with JSON. Send slug to create a site, or siteId to replace the files of an existing one. List every file with its size in bytes:
curl -s -X POST "https://app.zipped.dev/api/v1/uploads" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{"slug":"my-big-site","files":[{"path":"index.html","size":1204},{"path":"video/intro.mp4","size":48230112}]}'

The answer has a sessionId, the files to upload, skipped files (with a reason), and findings.

  1. Upload each file. One request per file, with the raw bytes as the body. The Content-Length must match the size you listed.
curl -s -X PUT "https://app.zipped.dev/api/v1/uploads/SESSION_ID/file?path=index.html" \
  -H "Authorization: Bearer zp_live_xxxx" \
  --data-binary @index.html
  1. Finish. POST /api/v1/uploads/SESSION_ID/commit. If the answer has done: false, send it again until done is true. The final answer has id, slug, publicUrl, fileCount and sizeBytes.

To give up, send DELETE /api/v1/uploads/SESSION_ID. Unfinished uploads expire on their own. You can have 3 uploads open at once; a fourth start answers 429 with upload_sessions_limit. An upload with no file sent and no commit for 30 minutes stops counting toward the 3. Another account’s key cannot read or change your session.

Change site settings

PATCH /api/v1/sites/:id (scope sites:write). Content-Type: application/json

Field Type Description
spaFallback boolean App-style pages: an address with no file opens index.html (for React or Vue sites)
hideFromSearch boolean Ask search engines not to list the site

Send one or both. Returns 200 with the saved values. An empty body returns 400 (invalid_settings). GET /api/v1/sites/:id also returns both fields.

Delete a site

DELETE /api/v1/sites/:id (scope sites:write) marks a site for deletion. It never deletes straight away.

curl -s -X DELETE "https://app.zipped.dev/api/v1/sites/PROJECT_ID" \
  -H "Authorization: Bearer zp_live_xxxx"

Success is 202 with a JSON body: id, status (pending_deletion), deleteAfter (the earliest time the site can be deleted, in UTC), and graceDays (the waiting period for your plan). The site goes offline at once, and the account owner gets an email with a Keep site button. Sending the request again for a site that is already marked returns 409. A key that does not own the site returns 403.

To undo a delete, or to delete a site right away, use the dashboard. See Delete a site or account.

Review rounds and comments

Studio and Agency sites with client review enabled. The API key acts as the billing owner (same ownership rules as the dashboard owner). Keys still need sites:read / sites:write.

List rounds

GET /api/v1/sites/:siteId/review/rounds (scope sites:read)

Returns 200 with a rounds array (id, number, status, title, createdAt, closedAt).

List comments

GET /api/v1/review/rounds/:roundId/comments (scope sites:read)

Query:

Param Values Default
status open, resolved, all open
format json, markdown json

format=json returns { comments: [...] }. format=markdown returns text/markdown, the same Copy for dev handoff (page, selector, pin, viewport, styles, screenshot URL, body, replies, deep link).

Get comment context

GET /api/v1/review/comments/:id (scope sites:read)

Returns { comment, screenshotUrl } with the full comment DTO and an absolute screenshot URL when a crop exists.

Resolve a comment

PATCH /api/v1/review/comments/:id (scope sites:write)

Body: { "resolved": true } or { "resolved": false } (reopen).

curl -s -X PATCH "https://app.zipped.dev/api/v1/review/comments/COMMENT_ID" \
  -H "Authorization: Bearer zp_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{"resolved":true}'

Other accounts’ rounds and comments return 403 or 404. Free plans cannot use these endpoints (api_not_available).

Errors

REST errors use this shape:

{
  "error": {
    "code": "api_not_available",
    "message": "api_not_available"
  }
}

For most DomainError codes, code and message are the same string (not a full sentence). Clients should branch on error.code.

HTTP Typical error.code When
400 upload_empty, invalid_slug, invalid_name Bad multipart body or slug
401 Unauthorized No Bearer token, wrong prefix, or revoked key
403 Forbidden, api_not_available, site_blocked Free plan, missing scope, or blocked site
404 not_found Unknown route under /api/v1
409 slug_taken Slug already in use
500 internal_error Unexpected server error

Click Revoke on an active key in Settings → API keys to invalidate it immediately.