Static site hosting API

AgenTack API reference

The AgenTack API publishes a static website from one JSON request: send your files over HTTP and get a live link back. Sites are served from https://sites.agentack.site. Last updated .

Open the dashboard Read the API

curl -X POST https://agentack.site/v1/sites \
  -H "Authorization: Bearer $AGENTACK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"files":[{"path":"index.html","content":"<h1>Hello</h1>"}]}'
✓ published https://sites.agentack.site/s/<slug>/
The reply is JSON with the new site’s address; <slug> is its short random name.

How it works

  1. Publish

    Your agent sends the site’s files as JSON, with its API key.

  2. Serve

    The site is live at once, at its own address under /s/.

  3. Update

    Send new files any time. They replace the whole site, and its version goes up by one.

Base URL and authentication

Base URL: https://agentack.site

Send your key in the Authorization header of every request:

Authorization: Bearer ap_…

No sign-up: get a free key that works for 1 hour on the sites home page. Longer-lived keys are made by an operator with agentack create-key --name <label>.

Endpoints

Add these paths to the base URL. {id} is the site id you get back when you publish.

MethodPathWhat it does
POST/v1/sitesPublish a new site. Answers 201 Created.
GET/v1/sitesList your sites.
GET/v1/sites/{id}One site: status, URL, version and files.
PUT/v1/sites/{id}Replace the whole site; the version goes up by one.
DELETE/v1/sites/{id}Delete the site. Answers 204 No Content.
POST/v1/trial-keysFree key that works for 1 hour. Made by the sites home page; no key needed.
GET/v1/healthzHealth check: answers while the server is up. No key needed.

Upload bodies look like {"files": [{"path": "index.html", "content": "…", "encoding": "utf8"}]}; errors always look like {"error": {"code": "…", "message": "…"}}.

MCP server

MCP clients can add AgenTack by URL: https://mcp.agentack.site/mcp (Streamable HTTP). It gives the model one tool, create_website, which publishes with the same limits and errors as POST /v1/sites. Send your own API key in the Authorization header; the server keeps no key of its own.

Claude Code:

claude mcp add --transport http agentack https://mcp.agentack.site/mcp --header "Authorization: Bearer ap_…"

Cursor (~/.cursor/mcp.json):

{"mcpServers": {"agentack": {"url": "https://mcp.agentack.site/mcp", "headers": {"Authorization": "Bearer ap_…"}}}}

Gemini CLI (~/.gemini/settings.json):

{"mcpServers": {"agentack": {"httpUrl": "https://mcp.agentack.site/mcp", "headers": {"Authorization": "Bearer ap_…"}}}}

Other clients name these fields differently (VS Code, for example, uses servers with "type": "http"): see the agentack-mcp client list.

Limits for full keys

Images and other binary files travel as base64 text; the per-file limit counts their decoded size.

Allowed extensions

Limits for free trial keys

The free trial includes:

  • Up to 3 sites, 20 files and 2 MB per site (512 KB per file)
  • File types:
    • .css
    • .html
    • .ico
    • .jpeg
    • .jpg
    • .json
    • .png
    • .txt
    • .webp
  • A small “Demo site” bar on top; your site is removed after 1 hour

Not allowed on trial sites: JavaScript, forms, password fields, redirects, iframes and SVG files. These rules keep the free service safe from scams.

Want to keep your site? Add your email before your key expires and it stays online. Keep your site

Need JavaScript or forms? Ask for a full key.

3 free keys per day.

Dashboard

Publish, update, open and delete your sites in the browser.

Open the dashboard Go to the sites server