Skip to main content
Use CDN endpoints for directly served assets. Use Storage endpoints for buckets, objects, access keys, billing, and analytics. Both need a key scoped to all or cdn, and a paid plan. Storage buckets and access keys need Pro or Enterprise.

Create a bucket

POST /storage/buckets
string
required
Display name, 3 to 120 characters. Must be unique in your account.
private | public
default:"private"
Bucket visibility.
string
Preferred region when available.
string
Optional public cache behavior.
boolean
default:"false"
Enables supported object versioning.
Response 201
A duplicate name returns 409. A plan without Storage returns 403 with requiredPlan.

Bucket endpoints

Objects

Read and write bucket objects by key with these routes. For large files and bulk transfers, use the S3 API with a bucket access key. sort is key, newest, oldest, largest, or smallest. With content=true, text objects up to 256 KB include their content. PUT accepts text content up to 1 MB and returns 413 above that.

Upload a file

POST /cdn/assets This endpoint uses multipart/form-data. Without bucketId the file goes to your CDN space. With bucketId it goes into that bucket.
file
required
File contents.
string
Destination bucket ID.
string
Object path inside the bucket.
private | public
default:"public"
Per-file visibility.
string
default:"file"
Asset kind.
string
Project to link the asset to.
Response 201

Create an S3 access key

POST /storage/buckets/{bucketId}/access-keys
string
Label for the integration using the key.
read | read_write
default:"read"
Allowed S3 operations.
Response 201
secretAccessKey is returned once. Store it securely and never include it in logs.
Use the Pxxl API key only for bucket and key management. Send S3 requests to the returned endpoint with the bucket-scoped accessKeyId and secretAccessKey. Do not send PXXL_API_KEY to https://storage.pxxl.app/s3.

Storage analytics

CDN endpoints