SnozeDevelopers
API referenceAgent

List what was made in your agent chats

The Library's Created list: artifacts from the caller's own live chats, newest first, as titles and origins without their content (read an artifact through the ai-artifacts endpoints). `q` narrows to titles containing it; pass the `cursor` from the previous response while `hasMore` is true. An artifact pointing at an item or file the caller cannot open is left out. Requires a Clerk session for a workspace member with the `ai:read` permission.

GET
/v1/workspaces/{workspaceId}/agent/library/created

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Query Parameters

cursor?string|null
q?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/agent/library/created'
Example Response
{  "data": {    "artifacts": [      {        "id": "string",        "kind": "markdown",        "title": "string",        "chatId": "string",        "chatTitle": "string",        "workspaceItemId": "string",        "fileId": "string",        "createdAt": "string"      }    ],    "cursor": "string",    "hasMore": true  }}