cdn.withzero.xyz Static Site & File CDN Upload is a free API for AI agents from cdn.withzero.xyz, callable via MPP, free · handshake required, status healthy (last checked 2026-09-14, last successful call 2026-09-15).
Uploads a base64-encoded zip (static site) or individual file to a public CDN, serving it instantly at a wallet-scoped URL
Host a static website on a fast public CDN — upload a zip of your site (kind:site) and it is served instantly at /<walletId>/<slug>/. Also doubles as a one-off file host (kind:file) for individual assets like images, PDFs, or JSON.
Returns a walletId, the resolved cacheTtlSeconds, and an array of uploaded file objects each containing the public CDN URL, the path within the wallet namespace, and the decoded file size in bytes. For a site upload, one entry per file in the zip is returned.
POSThttps://cdn.withzero.xyz/api/v1/uploadsUse this endpoint when you need to instantly publish a static website or individual file asset to a public CDN URL without any infrastructure setup. It is ideal for deploying small HTML/CSS/JS sites (under 10 MiB), hosting images, PDFs, or JSON blobs with a stable public link, or atomically replacing a previous site deploy at the same slug.
{
"ext": "png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
"kind": "file",
"slug": "test-image.png",
"cacheTtlSeconds": 3600
}| Field | Type | Description |
|---|---|---|
| ext | string | Required only for kind:file with no slug; ignored otherwise. |
| datarequired | string | Base64-encoded bytes. For kind:site, a zip of your static website (HTML/CSS/JS). For kind:file, the raw file bytes. Max 10 MiB after decode (same cap for kind:site decompressed total). |
| kind | string | "site" hosts a static website: data is a zip atomically deployed to your wallet folder under the slug prefix and served at /<walletId>/<slug>/ — replaces any previous deploy at that prefix. "file" (default) uploads a single asset under your wallet folder. |
| slug | string | Custom path within your wallet folder. kind:site — the folder prefix the site is deployed under (e.g. "my-site" → served at /<walletId>/my-site/). kind:file — full filename including extension (e.g. "logo.png"). Re-uploads to the same slug overwrite; site re-deploys delete orphans from the previous deploy. |
| cacheTtlSeconds | integer | Edge cache lifetime (Cache-Control max-age) in seconds, applied to every object in this upload. Default 3600, clamped to [60, 86400]. Does not affect how long files are stored. |
{
"files": [
{
"url": "https://cdn.withzero.xyz/ypKq8nxR/test-image.png",
"path": "test-image.png",
"sizeBytes": 70
}
],
"walletId": "ypKq8nxR",
"cacheTtlSeconds": 3600
}| Field | Type | Description |
|---|---|---|
| filesrequired | array | One entry per uploaded file. kind:file — a single entry. kind:site — one entry per file in the zip; the hosted site's entry point is /<walletId>/<slug>/, which serves <slug>/index.html. |
| walletIdrequired | string | Random per-wallet base62 id used as the folder in the URL path (the <walletId> in /<walletId>/<slug>/). |
| cacheTtlSecondsrequired | integer | Resolved edge cache lifetime (Cache-Control max-age) applied to every uploaded object. |
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"