---
title: "Retrieve agent session artifact content"
method: GET
path: "/agents/sessions/{session_id}/artifacts/{artifact_id}/content"
tags: ["Agents"]
---

# Retrieve agent session artifact content

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

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/agents/sessions/{session_id}/artifacts/{artifact_id}/content`
- Auth: HTTP bearer

Downloads immutable session artifact bytes after the execution environment expires. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts).

## Path parameters

- `session_id` string, required
- `artifact_id` string, required

## Response `200`

The immutable artifact contents.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication or project context was missing.
- `403`: The API key lacks the required permission.
- `404`: The requested session or event was not found.
- `409`: The request conflicted with the current session state.
- `500`: An internal error occurred.
- `503`: The service is temporarily unavailable.

## Changes

- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/agents/sessions/:session_id/artifacts/:artifact_id/content/get.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
