Skip to main content
Use the FiveMesh CDN API when a server-side integration needs to prepare uploads, organize public media paths or operate CDN objects without opening the dashboard.

Common operations

OperationDescription
Prepare uploadRequest a server-side upload target for an asset.
List objectsRead files and folders under a scoped CDN path.
Rename objectMove a file to a new public path.
Delete objectRemove a single object or a selected batch.
Purge pathRefresh delivery state for a path after a change.
Read settingsInspect retention intent and workspace CDN settings.

Path scopes

Service keys can be restricted to path prefixes. Use prefixes when one script should only manage one media area:
/phone
/tablet
/mugshots
/uploads

Upload flow

Use presigned upload targets for integrations such as LB-Phone and LB-Tablet.
1

Call FiveMesh from the server

Your server-side script requests an upload target using a scoped service key.
2

Return the upload target

The script returns the generated upload URL to the LB-Scripts upload method.
3

Upload media

The client uploads media to the generated URL without receiving the service key.