website.publish
Deploys the latest checkpoint of a website and sets its visibility. Deployment is asynchronous — poll website.status until publish_status becomes published or failed. To change metadata (title, visibility) without redeploying, use website.update instead. See the Website guide.
Headers
API key for direct authentication. Provide either this or Authorization, not both. See Authentication.
Body
Session UID. Mutually exclusive with website_id — exactly one must be provided.
Unique website ID. Mutually exclusive with task_id — exactly one must be provided.
Who can access the published site. public — anyone. team — current team members only. private — owner and invited collaborators only. Setting team requires a team account. Defaults to public when omitted or sent as empty string, replacing the site's current visibility. Sites may cap the maximum allowed visibility — requests that exceed it return 403 permission_denied.
public, team, private Response
Publish triggered successfully. Deployment is still in progress — poll website.status for the final state and effective visibility. This response does not echo visibility.