Private Assets
Keep project files off the public site and CDN, and share them with expiring, revocable links. Store a private file with upload_asset (private: true) and read it back with get_asset. Use this integration to move an asset between public and private, to create, list and revoke share links, and to promote: publish a copy of an approved private JSON file to a public path while the private file stays private. Paid plans.
Try it with your AI assistant
Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat. Replace the parts in [brackets] with your own details.
@WebsitePublisher make my file [price-list.pdf] private and give me a share link that expires in [7 days]@WebsitePublisher show my share links and revoke the ones I no longer needWith WebsitePublisher, make my file [price-list.pdf] private and give me a share link that expires in [7 days]With WebsitePublisher, show my share links and revoke the ones I no longer needWith WebsitePublisher, make my file [price-list.pdf] private and give me a share link that expires in [7 days]With WebsitePublisher, show my share links and revoke the ones I no longer needEndpoints (8)
Move an existing asset between public and private. private: true takes a public asset off the site and CDN (its public URL stops working; paid plans). private: false publishes a private asset again and ends its share links. The file is moved, never duplicated.
| Field | Type | Required | Description |
|---|---|---|---|
slug |
string | ✓ Yes | Asset path, e.g. "lists/leads.csv". |
private |
boolean | ✓ Yes | true = make private, false = make public. |
Publish a copy of a private JSON asset as a public asset under a different path. The private file stays private. The copy is only written when the private file still has the approved SHA-256 and the public target is still absent or at the expected version hash, so an approved version can never be swapped or published twice. Repeat a call with the same idempotency_key to retry safely. Roll back with the versioning integration (rollback-asset). Paid plans.
| Field | Type | Required | Description |
|---|---|---|---|
source_slug |
string | ✓ Yes | Path of the private JSON asset, e.g. "policy/candidates/2026-10-13.json". |
source_sha256 |
string | ✓ Yes | SHA-256 (hex) of the private asset as it was approved. Refused when the file changed since. |
target_slug |
string | ✓ Yes | Public path for the copy: ends in .json and differs from source_slug, e.g. "policy/active.json". |
expect_target |
string | ✓ Yes | "absent" when the target must not exist yet, otherwise its current version hash (from list-asset-versions or the previous promote result). Refused when the target changed. |
idempotency_key |
string | ✓ Yes | Unique per approval, 8 to 100 characters (letters, digits, . _ : -). The same key returns the first result instead of publishing again. |
note |
string | No | Audit note, e.g. who approved and why. |
alt |
string | No | Description of the public asset. |
Promotion history of this project, newest first: source, SHA-256, target, version hashes, caller type and note. Metadata only, never file content.
| Field | Type | Required | Description |
|---|---|---|---|
target_slug |
string | No | Only promotions to this public path. |
limit |
integer | No | Rows to return (default 25, max 100). |
Promote settings of this project (promote_deny_keys, promote_max_bytes, promote_target_prefixes, promote_allow_admin, source_read_retention_days) with the platform defaults and bounds.
No input parameters required.
Change promote settings; project owner only, never an admin session. promote_deny_keys: key names promote refuses to publish, at any depth (e.g. ["margin", "rebate"]). promote_target_prefixes: public paths promote may write to, e.g. ["policy/"] (empty = any). promote_allow_admin: whether an admin session may promote. promote_max_bytes and source_read_retention_days within the bounds from get-config. reset: setting names to put back to their default.
| Field | Type | Required | Description |
|---|---|---|---|
promote_deny_keys |
array | No | Key names (case-insensitive) that may never appear in a promoted file. |
promote_max_bytes |
integer | No | Largest private asset promote accepts, in bytes (default 2097152). |
promote_target_prefixes |
array | No | Allowed public path prefixes; use a trailing slash for a folder. |
promote_allow_admin |
boolean | No | Allow promote from an admin session (default true). |
source_read_retention_days |
integer | No | Days the private-read log is kept (default 90). |
reset |
array | No | Setting names to put back to their default. |
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 |
|---|---|
| set-visibility | private-assets_set_visibility |
| create-share | private-assets_create_share |
| list-shares | private-assets_list_shares |
| revoke-share | private-assets_revoke_share |
| promote | private-assets_promote |
| list-promotions | private-assets_list_promotions |
| get-config | private-assets_get_config |
| set-config | private-assets_set_config |
Website