v2

latestOpenAPI 3.1.02026-07-2615946107.7 KB
Publish

Publish an artifact

Create a new artifact or push a new version of an existing one.

post/v1/publish

Request body

namestring required

Display name.

slugstring

URL slug. Auto-generated if omitted.

entrypointstring
visibility'public' | 'workspace' | 'private'

'unlisted' was retired 2026-07 — still accepted as input and treated as 'public'.

mobile_htmlstring
access_policyobject

Row-level access policy for per-viewer data filtering.

Example request

{
  "agent": {
    "model": "claude-sonnet-4-20250514"
  }
}

Response

Published

noticestring

Human-readable message when publish was adjusted (governance, caps, email gate).