---
title: "Download session artifact"
method: GET
path: "/v1/agents/sessions/{session_id}/artifacts/{artifact_id}/content"
tags: ["Sessions"]
---

# Download session artifact

`GET /v1/agents/sessions/{session_id}/artifacts/{artifact_id}/content`

## Request

- Base URL: `https://api.sandbase.ai`
- URL: `https://api.sandbase.ai/v1/agents/sessions/{session_id}/artifacts/{artifact_id}/content`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Download a complete immutable artifact, up to 200 MiB. No query parameters. Range is unsupported and returns 416 after access checks. Content-Type follows the file extension, with application/octet-stream as fallback.

## Response `200`

Complete artifact bytes; Content-Disposition is attachment and Cache-Control is no-store.

## Other responses

- `400`: invalid_request: invalid query parameters
- `401`: unauthorized
- `402`: spending_limit_exceeded: API key spending limit or organization balance exhausted
- `403`: insufficient_scope or org_disabled
- `404`: not_found: resource not found in this organization
- `416`: invalid_request: Range downloads are unsupported
- `503`: executor_unavailable, authorization_unavailable, or storage_unavailable

---

[API](https://skmtc.dev/sandbase/apis/sandbase-api.md) · [All operations](https://skmtc.dev/sandbase/apis/sandbase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sandbase/apis/sandbase-api/revisions/d40df2467ba2?raw)
