API

Deploy sites with code

The Supadrop API lets you deploy and manage static sites programmatically. Upload a file, get a live URL. Perfect for CI/CD pipelines, scripts, and automation.

Base URL https://app.supadrop.host/api/v1

Use with your AI coding tool

Download a ready-to-use skill file containing the full Supadrop API reference. Drop it into your project and your AI assistant will know every endpoint, parameter, and error code.

Works with Claude Code Cursor Codex Windsurf Copilot Open-code
Download skill.md

Or point your tool directly at https://supadrop.host/supadrop-skill/skill.md

Overview

The API gives you full control over your Supadrop sites. List, create, update, and delete sites, and choose whether search engines can index them, with simple HTTP requests. Every response is JSON. Authentication uses Bearer tokens.

API access is available on Pro and Large plans. The Free and Starter plans do not include API access.

Authentication

All /api/v1/* endpoints require a Bearer token in the Authorization header:

Authorization: Bearer sk_live_a1b2c3d4...

Getting an API key

  1. In your dashboard, open API in the sidebar.
  2. Click Create key.
  3. Name the key after the tool that will use it, and pick an expiration.
  4. Click Copy and store the key somewhere safe. It is shown only once.

Each account can have up to 10 active API keys. Each key has a name and an optional expiration date. To free a slot, revoke a key you no longer use.

Key format

Keys follow the pattern sk_live_ followed by 64 hex characters (72 characters total):

sk_live_a1b2c3d4e5f67890abcdef1234567890abcdef1234567890abcdef12345678

The dashboard shows a masked prefix like sk_live_a1b2c3d4... for identification.

Authentication errors

Status Message Cause
401Missing or invalid Authorization headerHeader absent or not Bearer ...
401Invalid API key formatKey doesn't match expected pattern
401Invalid API keyKey not found in database
401API key expiredKey past its expiration date
403API access requires a Pro plan or higherAccount tier does not include API access
403Account suspendedAccount banned by admin
403Account deletedAccount marked for deletion
422Your subscription has expiredSubscription status is EXPIRED

Rate limiting

Requests are limited to 60 per minute per API key.

Every authenticated response includes rate limit headers:

Header Description
X-RateLimit-LimitMaximum requests per window (60)
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp (seconds) when the window resets

When the limit is exceeded, the API returns 429 Too Many Requests.

Response format

All endpoints return JSON. Site objects use this shape:

{
  "id": "uuid",
  "slug": "my-site",
  "file_name": "site.zip",
  "file_size": 102400,
  "status": "DEPLOYED",
  "created_at": "2026-06-17T10:00:00.000Z",
  "deployed_at": "2026-06-17T10:00:01.000Z",
  "custom_domain": null,
  "noindex": false,
  "url": "https://my-site.supadrop.site"
}

Fields

FieldDescription
slugIdentifies the site in every /api/v1/sites/{slug} route, including sites on a custom domain
custom_domainThe site's custom domain, or null for a site served on its supadrop.site subdomain
noindextrue when the site is hidden from search engines (see Search engine visibility)
urlWhere the site is served: https://{custom_domain} when set, https://{slug}.supadrop.site otherwise

Status values

StatusMeaning
PROCESSINGFile queued for processing
DEPLOYEDSite is live
SUSPENDEDContent flagged by automated scanner
FAILEDProcessing failed

Error responses

{
  "statusCode": 400,
  "statusMessage": "Slug must contain only lowercase letters, numbers, and hyphens"
}

Endpoints

GET /api/v1/sites

Returns all sites owned by the authenticated user, newest first.

Response 200

{
  "sites": [
    {
      "id": "...",
      "slug": "my-site",
      "file_name": "site.zip",
      "file_size": 102400,
      "status": "DEPLOYED",
      "created_at": "2026-06-17T10:00:00.000Z",
      "deployed_at": "2026-06-17T10:00:01.000Z",
      "custom_domain": null,
      "noindex": false,
      "url": "https://my-site.supadrop.site"
    }
  ]
}

Example

curl https://app.supadrop.host/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
GET /api/v1/sites/{slug}

Returns a single site by slug.

Parameters

ParameterInRequiredDescription
slugpathyesThe site slug

Response 200

{
  "site": {
    "id": "...",
    "slug": "my-site",
    "file_name": "site.zip",
    "file_size": 102400,
    "status": "DEPLOYED",
    "created_at": "2026-06-17T10:00:00.000Z",
    "deployed_at": "2026-06-17T10:00:01.000Z",
    "custom_domain": null,
    "noindex": false,
    "url": "https://my-site.supadrop.site"
  }
}

Errors

StatusMessage
400Missing slug
404Site not found

Example

curl https://app.supadrop.host/api/v1/sites/my-site \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
POST /api/v1/sites

Deploy a new static site. Send the file as multipart form data.

Parameters

FieldInRequiredDescription
fileformyesThe file to deploy (ZIP, HTML, PDF, or image)
slugformnoCustom slug. Auto-generated from filename if omitted.
noindexformnotrue to hide the site from search engines, false (default) to keep it indexable.

Slug rules

  • 3 to 63 characters
  • Lowercase letters, numbers, and hyphens only
  • Must start and end with a letter or number
  • Pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
  • Some slugs are reserved (e.g. api, admin, www)

If omitted, the slug is generated from the filename (e.g. portfolio.zip becomes portfolio). If that slug is taken, a suffix is appended (portfolio-2, portfolio-3, etc.).

Accepted file types

MIME typeDetected as
application/zip, application/x-zip-compressedzip
text/htmlhtml
application/pdfpdf
image/jpeg, image/png, image/webp, image/gifimage

Response 201

{
  "site": {
    "id": "...",
    "slug": "my-site",
    "file_name": "my-site.zip",
    "file_size": 102400,
    "status": "DEPLOYED",
    "created_at": "2026-06-17T10:00:00.000Z",
    "deployed_at": "2026-06-17T10:00:01.000Z",
    "custom_domain": null,
    "noindex": false,
    "url": "https://my-site.supadrop.site"
  }
}

The status field may be PROCESSING if the file was queued for async processing. Poll GET /api/v1/sites/{slug} until it becomes DEPLOYED.

Errors

StatusMessage
400Multipart form data required
400File is required
400Unsupported file type
400Slug must contain only lowercase letters, numbers, and hyphens
400This slug is reserved
400This slug is not available
400Invalid noindex value (must be true or false)
403Site limit reached
403Storage limit exceeded
403Your account is under review
409Slug already taken

Examples

# Deploy a ZIP archive
curl -X POST https://app.supadrop.host/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./dist.zip" \
  -F "slug=my-portfolio"

# Deploy a single HTML file (auto-generated slug)
curl -X POST https://app.supadrop.host/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./resume.html"

# Deploy a site hidden from search engines
curl -X POST https://app.supadrop.host/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./preview.zip" \
  -F "noindex=true"

The API creates sites on a supadrop.site subdomain only. To use a custom domain, create the site from the dashboard (see Custom domain sites).

PUT /api/v1/sites/{slug}

Replace the files of an existing site. The slug and URL stay the same, and so does the noindex setting.

Parameters

ParameterInRequiredDescription
slugpathyesThe site slug
fileformyesThe new file to deploy

Response 200

{
  "site": {
    "id": "...",
    "slug": "my-site",
    "file_name": "dist-v2.zip",
    "file_size": 204800,
    "status": "DEPLOYED",
    "created_at": "2026-06-17T10:00:00.000Z",
    "deployed_at": "2026-06-17T10:05:00.000Z",
    "custom_domain": null,
    "noindex": false,
    "url": "https://my-site.supadrop.site"
  }
}

Errors

StatusMessage
400Missing slug
400Multipart form data required
400File is required
403Storage limit exceeded
403Your account is under review
404Site not found

Example

curl -X PUT https://app.supadrop.host/api/v1/sites/my-portfolio \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./dist-v2.zip"
PUT /api/v1/sites/{slug}/noindex

Hide a site from search engines, or make it visible again. When noindex is true, every response of the site carries the X-Robots-Tag: noindex header, on its subdomain and on its custom domain. Your files are not modified. The change applies immediately, without a redeploy.

Search engines drop a page that is already indexed on their next crawl, which can take days.

Parameters

ParameterInRequiredDescription
slugpathyesThe site slug
noindexJSON bodyyestrue to hide the site, false to make it visible

Response 200

{
  "site": {
    "id": "...",
    "slug": "my-site",
    "file_name": "site.zip",
    "file_size": 102400,
    "status": "DEPLOYED",
    "created_at": "2026-06-17T10:00:00.000Z",
    "deployed_at": "2026-06-17T10:00:01.000Z",
    "custom_domain": null,
    "noindex": true,
    "url": "https://my-site.supadrop.site"
  }
}

Errors

StatusMessage
400Missing slug
400Invalid body (noindex must be a boolean)
404Site not found
500Failed to update search engine visibility

Example

curl -X PUT https://app.supadrop.host/api/v1/sites/my-portfolio/noindex \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"noindex": true}'
DELETE /api/v1/sites/{slug}

Permanently delete a site. Removes all files from storage and frees the slug.

Parameters

ParameterInRequiredDescription
slugpathyesThe site slug

Response 200

{
  "deleted": true,
  "slug": "my-site"
}

Errors

StatusMessage
400Missing slug
404Site not found

Example

curl -X DELETE https://app.supadrop.host/api/v1/sites/my-portfolio \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Custom domain sites

Sites on a custom domain are created and connected from the dashboard. Once they exist, the API manages them like any other site, by their slug: get, update, search engine visibility, and delete.

The slug of a custom domain site is derived from the domain (for example mycafe.com becomes mycafe-com). It is shown on the site page of the dashboard, and returned by GET /api/v1/sites. For these sites, custom_domain holds the domain and url points to it:

{
  "slug": "mycafe-com",
  "custom_domain": "mycafe.com",
  "url": "https://mycafe.com"
}

Deleting a custom domain site through the API also stops serving it on its domain. The DNS records at your registrar stay as they are.

Common error codes

StatusMeaning
400Bad request (invalid input, missing fields)
401Authentication failed
403Forbidden (tier limit, account issue)
404Resource not found
409Conflict (slug already taken)
422Subscription expired
429Rate limit exceeded
500Server error

Tier limits

TierMax sitesMax storagePrice
Pro105 GB$15/mo
Large3020 GB$30/mo

When a limit is reached, the API returns 403 with a descriptive message.

Quick start

Four commands to deploy, check, update, and delete a site:

# 1. Deploy a site
curl -X POST https://app.supadrop.host/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./site.zip" \
  -F "slug=demo"

# 2. Check it's live
curl https://app.supadrop.host/api/v1/sites/demo \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

# 3. Update with a new version
curl -X PUT https://app.supadrop.host/api/v1/sites/demo \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -F "file=@./site-v2.zip"

# 4. Delete when done
curl -X DELETE https://app.supadrop.host/api/v1/sites/demo \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

Your site is available at https://demo.supadrop.site as soon as the status is DEPLOYED.

Ready to automate?

Generate your API key in the dashboard and start deploying with code.

Go to dashboard