vltcdn.xyz API

Base URL: https://vltcdn.xyz/api/v1 · OpenAPI spec

Authentication

Create a key on the developer page and send it as Authorization: Bearer vlt_… (or X-API-Key). Keys have a scope:

Upload

curl -H "Authorization: Bearer $KEY" -F "file=@screenshot.png" https://vltcdn.xyz/api/v1/files
{ "file": { "id": "Ab3xK9m", "url": "https://vltcdn.xyz/i/Ab3xK9m", "pageUrl": "https://vltcdn.xyz/i/Ab3xK9m", "rawUrl": "…", "thumbUrl": "…", "size": 81234, … } }

Endpoints

curl -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/some/long/url"}' https://vltcdn.xyz/api/v1/links

Errors

Always JSON: {"error":{"code":"quota_exceeded","message":"…"}}. Codes: unauthorized 401, insufficient_scope / email_unverified / quota_exceeded / plan_required 403, not_found 404, file_too_large 413, unsupported_type 415, rate_limited 429.

Link options, trash and large files

Add expires_in (seconds), password and max_views (1 = one-time link) as extra multipart fields on upload, or change them later with PATCH /files/:id:

curl -X PATCH -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"maxViews":1,"password":"s3cret","expiresAt":"2027-01-01T00:00:00Z"}' https://vltcdn.xyz/api/v1/files/Ab3xK9m

Rate limits

Per key and per IP, per minute. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 includes Retry-After (seconds).

ShareX

  1. Open the developer page and download the uploader .sxcu; double-click it to install.
  2. In ShareX choose Destinations → Image uploader → Custom image uploader (and the same for File uploader).
  3. Optional: download the URL shortener config and select it under Destinations → URL shortener.

Treat the .sxcu file like a password: it contains your key. Revoke it on the developer page if it leaks.