API
Publish and manage sites from scripts.
Create a key in Settings → API keys. Send it as a Bearer token. Keys are shown once, so copy yours when you create it.
curl -X POST https://YOUR-DOMAIN/api/sites \
-H "Authorization: Bearer vl_..." \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello</h1>","ttl":"7d"}'Sites
POST /api/sitescreates a site.ttlis1d,7d,30dornever(Pro).GET /api/siteslists your sites.GET /api/sites/IDreads one.PUT /api/sites/IDre-publishes it in place.DELETE /api/sites/IDremoves it.
Other endpoints
GET /api/sites/ID/formslists a site's form responses (add?format=csvto download them).GET /api/medialists your files and storage use.POST /api/media?name=photo.pnguploads a file (send the file itself as the request body).DELETE /api/media/IDremoves one.GET /api/clips,POST /api/clips,PATCH /api/clips/IDandDELETE /api/clips/IDmanage your clipboard.
Creating and managing API keys themselves needs a signed-in browser session; a key can't create other keys.