Everstack
API ReferenceOpenai agents restGet Artifact Download

Get Artifact Download

GET/v1/openai-agents/sessions/{session-id}/artifacts/{artifact-id}/download
GET/v1/openai-agents/sessions/{session-id}/artifacts/{artifact-id}/download

Your instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.

Parameters

NameInTypeRequiredDescription
session-idpathstringYes
artifact-idpathstringYes

Responses

200 Success

PropertyTypeDescription
object_idstring
filenamestring
content_typestring
size_bytesinteger
sha256string
kindstring
created_atstring
urlstring
expires_atstring

400 Invalid request

PropertyTypeDescription
errorobject

403 Permission denied

PropertyTypeDescription
errorobject

404 Not found

PropertyTypeDescription
errorobject

500 Internal error

PropertyTypeDescription
errorobject

503 Unavailable

PropertyTypeDescription
errorobject

Request

curl -X GET "http://localhost:8089/v1/openai-agents/sessions/{session-id}/artifacts/{artifact-id}/download" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
const response = await fetch("http://localhost:8089/v1/openai-agents/sessions/{session-id}/artifacts/{artifact-id}/download", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
});
const data = await response.json();
import requests

response = requests.get(
    "http://localhost:8089/v1/openai-agents/sessions/{session-id}/artifacts/{artifact-id}/download",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
)
data = response.json()

Response

{
  "object_id": "string",
  "filename": "string",
  "content_type": "string",
  "size_bytes": 0,
  "sha256": "string",
  "kind": "string",
  "created_at": "string",
  "url": "string",
  "expires_at": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}