Skip to content
中文

List Session Artifacts (Extension)

Call Create session first and replace the example session ID with its returned ID.

GET/agent/v1/sessions/{session_id}/artifacts● Supported

Request parameters

  • session_idstringrequired

    path: Session id from session creation or listing.

Returns

200

Own-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
# Call Create session first and replace the example session ID with its returned ID.
curl https://api.deepraxis.com/agent/v1/sessions/sesn_123/artifacts \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create session first and replace the example session ID with its returned ID.
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
    f"{opts['base_url']}/v1/sessions/sesn_123/artifacts",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
// Call Create session first and replace the example session ID with its returned ID.
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/sessions/sesn_123/artifacts`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());

Response 200

{
  "data": [
    {
      "object": "artifact",
      "id": "art_9249050b16a742c2986b705dc82370ea",
      "session_id": "ags_be76892863b54ea0adc168384f0925c6",
      "run_id": "run_78dc5e38-48cd-4a25-8d1d-c3bacf28b526",
      "name": "weekly-report.md",
      "version": 1,
      "parts": [
        {
          "kind": "file",
          "file_id": "file-B30i73NBODdI7TNcnIo55zes",
          "filename": "weekly-report.md",
          "mime_type": "text/markdown",
          "bytes": 1599
        }
      ],
      "source_hrefs": [
        "/mnt/session/outputs/weekly-report.md"
      ],
      "create_time": "2026-11-14T14:15:01.486Z",
      "update_time": "2026-11-14T14:15:01.486Z"
    }
  ]
}

Response

HTTP 200

Artifacts this session delivered

application/json

Name Type Description
data array<object> Items of this page, in the order requested by the call.
data[].object string Object type, always artifact.
data[].id string Artifact id (art_...). Stays the same when the same path is delivered again.
data[].session_id string Id of the session.
data[].run_id string | null The run that produced this version; null when it cannot be told.
data[].name string Path of the file inside the session's outputs directory, such as report.pdf or charts/q3.png.
data[].version integer 1 on first delivery; each later delivery of the same path with new content adds one.
data[].parts array<object> The files this artifact holds; the latest version's parts only.
data[].source_hrefs array<string> Link addresses from the reply text that point at this artifact, verbatim; render a link whose address equals one of these as this artifact.
data[].create_time string When the artifact was first registered, RFC 3339; set by the service.
data[].update_time string When the latest version was registered, RFC 3339; equals create_time for version 1.