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
Bring Your Own Code

Bring Your Own Code

⚡ Built-in — Platform Built-in

Show the results of your own code on your site. Your code runs at the cloud provider you choose (any language, on a schedule) and publishes files plus a small latest.json manifest at your own https location, such as a storage bucket. Add that location as a source: the platform fetches and checks the manifest, keeps the last good version and gives your pages one stable endpoint to read it, with a stale flag when your worker stops. Large files (images, tiles, video) load straight from your location; a private bucket works too, with a read-only key from the project vault and short-lived signed URLs for pages. 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 connect the latest.json at [manifest URL] as a source called [source name] and test it
@WebsitePublisher build a page that shows the latest results from my own code, with the update time and a delay notice
@WebsitePublisher check my code sources and tell me which ones are stale or have errors
With WebsitePublisher, connect the latest.json at [manifest URL] as a source called [source name] and test it
With WebsitePublisher, build a page that shows the latest results from my own code, with the update time and a delay notice
With WebsitePublisher, check my code sources and tell me which ones are stale or have errors
With WebsitePublisher, connect the latest.json at [manifest URL] as a source called [source name] and test it
With WebsitePublisher, build a page that shows the latest results from my own code, with the update time and a delay notice
With WebsitePublisher, check my code sources and tell me which ones are stale or have errors

Endpoints (7)

POST set-source

Add a source or change one (only send what changes). Project owner only, paid plans. manifest_url: the https URL of your latest.json. allowed_hosts: extra hosts that base_url in the manifest may point to (the manifest host is always allowed). Changing manifest_url or allowed_hosts clears the stored manifest. Then run test-source.

Field Type Required Description
source_key string ✓ Yes Name of the source, e.g. "weather": 2-40 characters, lowercase letters, digits, - and _.
manifest_url string No https URL of latest.json. Needed when the source is new.
allowed_hosts array No Host names base_url may use, e.g. ["my-data.ams3.cdn.digitaloceanspaces.com"]. Max 5 including the manifest host.
cache_ttl integer No Seconds a fetched manifest stays fresh, 60-3600. Default 300. At most one fetch per source per cache_ttl, also under heavy page traffic.
max_manifest_bytes integer No Size cap for latest.json in bytes, 1024-1048576. Default 262144.
stale_after integer No Seconds after generated_at that the data counts as stale (get-manifest returns stale true). 60-2592000; 0 turns it off.
is_active boolean No false pauses the source; pages then get an error and should show their fallback.
auth object No Private bucket (S3-compatible: AWS, DO Spaces, R2, Hetzner, UpCloud, Backblaze, Wasabi, Scaleway, GCS HMAC): {"type": "s3", "key_id_vault": "<vault name of the access key id>", "secret_vault": "<vault name of the secret key>", "region": "<storage region, e.g. eu-central-1, fsn1, auto>"}. Store a READ-ONLY key for this one bucket in the project vault first; only the vault names are sent here, never the key. {"type": "none"} makes the source public again. Changing auth clears the stored manifest.
data_files boolean No true lets pages read small .json and .csv files of the current run through get-data (max 2 MB each), so the owner's location needs no CORS. Default false.
GET list-sources

All sources of this project with their status (last run, last fetch, last error, stale), how many sources the plan allows and the platform limits.

No input parameters required.

POST remove-source

Remove a source and its stored manifest. Project owner only; works on every plan. To pause instead, use set-source with is_active false.

Field Type Required Description
source_key string ✓ Yes
POST test-source

Fetch and check the manifest of a source once, without storing it. Returns ok true with run, generated_at, file count and a sample, or ok false with exactly what is wrong (https, host not allowed, size, missing or invalid fields). Paid plans.

Field Type Required Description
source_key string ✓ Yes
POST get-manifest

The last good manifest of a source, for your page: run, generated_at, source, base_url, files, meta, plus fetched_at and stale. Refreshed from your location at most once per cache_ttl. Page pattern: POST to /sapi/project/{id}/execute/byoc/get-manifest with {source_key}; build file URLs only as base_url + file (private source: private true and base_url null, use get-urls); always show generated_at; when stale is true say the data is delayed; on an error show a short "temporarily unavailable" text.

Field Type Required Description
source_key string ✓ Yes
POST get-data

One small .json or .csv file of the current run, read through the platform (no CORS needed on your location). Only when the source has data_files true, only paths listed in the current manifest, max 2 MB. Returns data (parsed JSON) or text (CSV), plus run, generated_at, path and stale. Cached per run. Images and other large files: load them from base_url instead.

Field Type Required Description
source_key string ✓ Yes
path string ✓ Yes A path exactly as listed in files of the current manifest, e.g. "summary.json".
POST get-urls

URLs of files of the current run for your page. Public source: base_url + path. Private source (auth set): presigned URLs valid about 15 minutes (expires_at); request them again when the page stays open longer. Only paths listed in the current manifest, 1-100 per call. Use these URLs as img/src; never build URLs yourself for a private source (get-manifest returns base_url null for it).

Field Type Required Description
source_key string ✓ Yes
paths array ✓ Yes File paths exactly as listed in files of the current manifest, max 100.

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-source byoc_set_source
list-sources byoc_list_sources
remove-source byoc_remove_source
test-source byoc_test_source
get-manifest byoc_get_manifest
get-data byoc_get_data
get-urls byoc_get_urls
← Back to all integrations