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. Each site is served at its own address, https://<slug>.agentack.site/. Last updated .

Open the dashboard Read the API

curl -X POST https://agentack.app/v1/sites \
  -H "Authorization: Bearer $AGENTACK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"files":[{"path":"index.html","content":"<h1>Hello</h1>"}]}'
✓ published https://<slug>.agentack.site/
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 web address.

  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.app

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>.

Using AgenTack means you agree to the Terms and Privacy Policy.

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.
PATCH/v1/sites/{id}Rename the site; the old name redirects to the new one for 90 days.
GET/v1/names/{name}Whether you can give a new site this name, with a suggestion if not.
GET/v1/accountYour key's kind, limits and usage, and how to get past the limits.
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": "…"}}.

Site names

A site’s name is the first part of its address: https://<slug>.agentack.site/. To choose it, add "name" to the POST /v1/sites body, for example {"name": "my-portfolio", "files": […]}. A name is 3 to 30 characters: lowercase letters, digits and hyphens. It starts with a letter, ends with a letter or a digit, and has no two hyphens in a row.

Without a name, the site is named after the page’s <title> (or its first <h1>), with -2 to -9 added if that name is taken, or else gets a random one such as calm-river-4821. Free trial keys always get a random one.

Some names can’t be used: the names of services, offensive words, and words often used to imitate other companies or trick people (such as login or bank). When a site is deleted, its name stays unavailable to every other key for 90 days. Every such case answers 409 name_unavailable; a name in the wrong format answers 400 name_invalid, and a name from a free trial key 403 name_not_allowed. GET /v1/names/{name} checks a name first and suggests another if it’s taken (at most 30 checks a minute per key).

To rename a site, send PATCH /v1/sites/{id} with {"name": "new-name"}: the same rules apply, and free trial keys can’t. The old name answers with a redirect (301) to the new one for 90 days, and only your key can take it back in that time. A site can be renamed 5 times a day.

MCP server

MCP clients can add AgenTack by URL: https://mcp.agentack.app/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.

Using the Claude app? Follow the steps to connect Claude. The MCP server guide describes the server and its tool.

Claude Code:

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

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

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

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

{"mcpServers": {"agentack": {"httpUrl": "https://mcp.agentack.app/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