API reference

Programmatic uploads to ZXC. One endpoint, zero cost. Generate a key in the console — keys are prefixed zxc_ and passed via the X-API-Key header.

Max upload
1 GB
Cost
$0
Auth
X-API-Key
Expiry
Never
Upload
POST a multipart form. The response contains a permanent CDN link.
POSThttps://upload.zxcinc.dev/upload

Multipart form upload — the file goes in the file field. An X-API-Key header (or Authorization: Bearer zxc_...) ties the upload to your account so it appears in your console; without a key it's anonymous.

FieldTypeDescription
file REQUIREDbinaryThe file to upload
Response 200
{ "ok": true, "key": "a1b2c3d4e5_screenshot.png", "url": "https://cdn.zxcinc.dev/a1b2c3d4e5_screenshot.png", "directUrl": "https://cdn.zxcinc.dev/raw/a1b2c3d4e5_screenshot.png", "size": 482113, "contentType": "image/png" }
Serving
Every upload gets two URLs on the CDN.
GEThttps://cdn.zxcinc.dev/<key>

Viewer page — image viewer, video/audio player, or download card by content type. Custom slugs resolve here too: https://cdn.zxcinc.dev/my-file.

GEThttps://cdn.zxcinc.dev/raw/<key>

Raw bytes. Images and video serve inline, everything else downloads as attachment. Hotlinking is allowed and free.

API keys
Self-serve, unlimited, free.
Sign in at console.zxcinc.dev → API Keys → Create. The full key is shown once at creation. Uploads made with your key appear in your console, where you can rename their links or delete them.
Home
Docs
Console
Copy page link