ai

share an AI session artifact with the workspace

Changed on

Stores a read-only copy that any member of the workspace can open by id. Sharing the same artifact again updates that copy, keeps its id, and restarts its retention window.

post/w/{workspace}/ai/shared_artifacts/share

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/ai/shared_artifacts/share
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required

Request body

artifact_idstring required

the artifact's id in the author's session

namestring required
kind'md' | 'html' required
versioninteger required
contentstring required

Response

the shared copy

idstring uuid required
namestring required
kind'md' | 'html' required
versioninteger required
created_bystring required
shared_atstring date-time required
expires_atstring date-time required

Changes