Portfolio Supported AIs Solutions Tasks Email Archive Bring Your Own Code Integrations Pricing

Get Started

ChatGPT

ChatGPT

Start directly →

Ready
Claude

Claude

Directory Connector →

Ready
Mistral

Mistral

Directory Connector →

Ready

Dashboard Always available
Private Assets

Private Assets

⚡ Built-in — Platform Built-in

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.

⚡ Built-in — No Setup Required This integration is built into the WebsitePublisher platform. All endpoints are available immediately — no API key needed.

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 need
With 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 need
With 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 need

Endpoints (8)

POST set-visibility

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.
POST create-share

Create a download link for a private asset. The link expires (default 7 days), can be capped by downloads and revoked at any time. Returns the url once; give it to the user. Executables and archives cannot be shared by link. Paid plans.

Field Type Required Description
slug string ✓ Yes Path of the private asset.
expires_in_hours integer No Lifetime in hours (default 168 = 7 days, max 2160 = 90 days).
max_downloads integer No Optional cap on downloads; the link stops after this many.
label string No Who or what the link is for, shown in list-shares.
POST list-shares

List share links of this project, newest first: status (active, expired, exhausted, revoked), expiry, downloads. Never returns the link itself.

Field Type Required Description
slug string No Only links of this private asset.
POST revoke-share

End a share link at once. Allowed on every plan.

Field Type Required Description
share_id integer ✓ Yes share_id from create-share or list-shares.
POST promote

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.
POST list-promotions

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).
POST get-config

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.

POST set-config

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:

EndpointMCP 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
← Back to all integrations