Skip to main content

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 for text/html or application/xhtml+xml artifacts — 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_id and URL.
  • page field on artifacts: After a successful publish, GET /v1/artifacts/{id} returns a page sub-object on the artifact — see the artifact response page field.

Example