Asset Proxy
Upload and manage project assets from admin panels. Browser sends base64 image + slug, server stores it as a PAPI asset and returns the CDN URL. No vault key or WPA token needed — admin auth (wsa_) is sufficient.
⚡ Built-in — No Setup Required
This integration is built into the WebsitePublisher platform. All endpoints are available immediately — no API key needed.
Endpoints (2)
POST
upload
Upload an asset from the browser. Accepts base64 content or a public source URL. Returns the CDN URL. Overwrites existing asset if overwrite=true.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | Asset path including filename, e.g. "images/product-1.jpg" |
base64 |
string | No | Base64-encoded file content. Required if source_url is not provided. |
source_url |
string | No | Public URL to fetch the file from. Required if base64 is not provided. |
alt |
string | No | Alt text for the image (accessibility) |
overwrite |
boolean | No | If true, replaces existing asset with same slug. Default: false. |
POST
delete
Delete an asset by slug.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | Asset path to delete, e.g. "images/product-1.jpg" |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| upload | asset_proxy_upload |
| delete | asset_proxy_delete |