POST /v1/artifacts/{id}/publish
Publishes an artifact as a page at https://artifacta.io/a/{slug}. The slug is minted on the first publish and stays stable across re-publishes. Calling this endpoint again on the same artifact upserts the existing page and keeps the same URL — it is safe to call repeatedly.
Publishing is a lifecycle transition and does not increment the monthly request counter.
Authentication
Requires a Bearer token. See Authentication.Path parameters
Request body
Response
Error codes
Notes
- HTML and passwords:
access="password"is rejected fortext/htmlorapplication/xhtml+xmlartifacts — there is no safe gated render path for HTML in the current viewer. - Re-publish: Calling publish again on the same artifact updates the page title, visibility, and access, keeping the existing
page_idand URL. pagefield on artifacts: After a successful publish,GET /v1/artifacts/{id}returns apagesub-object on the artifact — see the artifact response page field.