Skip to main content
The official Node SDK lives in the public Pxxl repository:

Upload an Image

Use a File, Blob, or file buffer and keep the original image extension in fileName. Public image uploads return a publicUrl that you can use directly in an <img> tag, Open Graph image, avatar, or product gallery.

Common Operations

Return Values

The Node SDK unwraps the CDN API response envelopes so the common values are easier to use: Asset objects include id, userId, optional projectId, optional deploymentId, storageName, key, fileName, contentType, size, publicUrl, sha256, etag, visibility, kind, metadata, createdAt, and updatedAt.
Use scope=cdn and permission=read_write for upload services. Use permission=read for reporting jobs that only list or download assets.