AgentConnect
Artifacts

List the organization’s artifacts

Every artifact the caller can view, most recently updated first, each with listSessionArtifacts’s fields plus its kind, whether it has an active share and an active public one, whether its originating session still exists and is visible to the caller, and which of rename, audience change, public sharing and revoking the caller may do. Another member’s private artifact is never listed, even to an organization owner. Filters: scope=mine keeps what the caller owns; agentId keeps artifacts with a ready revision that agent produced; type keeps those whose latest entry opens as page (HTML), document (Markdown), image, pdf, code (any text, JSON, XML or source) or other; publiclyShared=true keeps those with an active public share. A type filter reads at most 400 artifacts per request, so its page may be shorter than limit, or empty, and still carry a nextCursor. Pass a page’s nextCursor back as cursor for older artifacts.

GET
/v1/orgs/{orgId}/artifacts

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string

Query Parameters

limit?integer
Range1 <= value <= 50
Default25
cursor?string
Length1 <= length <= 200
scope?string
Default"org"

Value in

  • "mine"
  • "org"
agentId?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
type?string

Value in

  • "page"
  • "document"
  • "image"
  • "pdf"
  • "code"
  • "other"
publiclyShared?"true"

Value in

  • "true"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/orgs/string/artifacts"
{  "artifacts": [    {      "id": "string",      "title": "string",      "audience": {        "visibility": "private",        "externalProvider": "string",        "editorsAgentId": "string"      },      "owner": {        "userId": "string",        "displayName": "string",        "email": "string",        "platform": "string"      },      "viewerIsOwner": true,      "originSessionId": "string",      "latestRevision": -9007199254740991,      "createdAt": "string",      "updatedAt": "string",      "latest": {        "number": -9007199254740991,        "entry": "string",        "entryMediaType": "string",        "fileCount": -9007199254740991,        "totalBytes": -9007199254740991,        "producedBy": {          "agentId": "string",          "name": "string"        },        "producedInSessionId": "string",        "createdAt": "string"      },      "kind": "page",      "shared": {        "any": true,        "public": true      },      "originSessionVisible": true,      "permissions": {        "rename": true,        "changeAudience": true,        "sharePublic": true,        "revokeShares": true      }    }  ],  "nextCursor": "string"}