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, cached delivery responses and scoped upload URLs. Public file delivery happens through the publicUrl returned by object responses.
Do not call these endpoints with an API key from client-side Lua, browser code or NUI bundles. Keep API keys on the server side.

Base URL

All authenticated CDN routes require an API 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

Server API Keys only include cdn:write. Use a Developer API Key for cdn:read, cdn:delete or cdn:purge. Developer API 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: