Skip to main content
Use the FiveMesh CDN API when a server-side integration needs to list, upload or delete CDN objects without opening the dashboard. The API manages objects only. Public file delivery happens through the publicUrl returned by object responses.
Do not call these endpoints with a service key from client-side Lua, browser code or NUI bundles. Keep service keys on the server side.

Base URL

All authenticated CDN routes require a service key with the matching cdn permission.
Every response includes success and requestId. The same request ID is returned as the X-Request-Id header.

Permissions

Service keys can be limited to CDN path prefixes such as /phone, /tablet or /uploads.
Path checks run against the final normalized object path. Encoded traversal, backslashes, absolute paths and dot-prefixed path segments are rejected or hidden from customer-facing listings.

Endpoints

Object shape

Idempotency

Upload and delete routes accept Idempotency-Key. Use this header when retrying a request after a network timeout. Reusing the same idempotency key with a different request returns CONFLICT.

Error format

Common CDN error codes: