Endpoints
API-key management uses
artifacts:read and artifacts:write. Publishing and unpublishing are signed-in dashboard-user actions.List artifacts
GET /knowledge-bases/:id/artifacts
string
Filter to
markdown or html.string
Search string, up to 200 characters.
string
active, archived, or all.Create an artifact
POST /knowledge-bases/:id/artifacts
string
required
markdown or html.string
required
Display title, up to 500 characters.
string
required
Short description, up to 2,000 characters.
string
required
Complete artifact content.
Get an artifact
GET /artifacts/:id
Returns an active artifact by ID or slug, subject to access to its knowledge base.
Update an artifact
PATCH /artifacts/:id
Use this endpoint either to update metadata or to apply exact text replacements.
string
New title.
string
New summary.
object[]
One to 50 edits with
oldText, newText, and optional replaceAll.Update a title separately from a request that applies
edits. Each edit operation creates revision history.Archive and restore
POST /artifacts/:id/archive removes an artifact from the active set without deleting its history. POST /artifacts/:id/restore makes an archived artifact active again.
List revisions
GET /artifacts/:id/revisions
Returns revision history for an active artifact so clients can present its evolution.
Publish and unpublish
POST /artifacts/:id/publish publishes the artifact as a hosted page.
string
required
private or public.DELETE /artifacts/:id/publish removes the hosted publication while preserving the artifact and its revisions.
Next steps
Chats API
Attach artifacts to a chat turn with
attached_artifact_ids.Agents API
Run agents that can produce artifacts.