Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
GET | /knowledge-bases/:id/artifacts | List artifacts in a knowledge base | [User+Key] |
POST | /knowledge-bases/:id/artifacts | Create an artifact | [User+Key] |
GET | /artifacts/:id | Get an active artifact | [User+Key] |
PATCH | /artifacts/:id | Update metadata or apply text edits | [User+Key] |
POST | /artifacts/:id/archive | Archive an artifact | [User+Key] |
POST | /artifacts/:id/restore | Restore an archived artifact | [User+Key] |
GET | /artifacts/:id/revisions | List revision history | [User+Key] |
POST | /artifacts/:id/publish | Publish a hosted artifact | [User] |
DELETE | /artifacts/:id/publish | Unpublish an artifact | [User] |
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
Filter to
markdown or html.Search string, up to 200 characters.
active, archived, or all.Create an artifact
POST /knowledge-bases/:id/artifacts
markdown or html.Display title, up to 500 characters.
Short description, up to 2,000 characters.
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.
New title.
New summary.
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.
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.