Skip to main content
GET
/
v1
/
sandboxes
/
{id}
/
code
/
artifacts
/
{artifact_id}
Get artifact metadata
import requests

url = "https://api.13-215-85-171.sslip.io/v1/sandboxes/{id}/code/artifacts/{artifact_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "<string>",
  "context_id": "<string>",
  "mime_type": "<string>",
  "name": "<string>",
  "size_bytes": 123,
  "sha256": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "execution_count": 123,
  "expires_at": "2023-11-07T05:31:56Z",
  "preview_url": "<string>",
  "download_url": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

artifact_id
string
required

Response

Artifact metadata

id
string
required
context_id
string
required
kind
enum<string>
required
Available options:
image,
document,
html,
file
mime_type
string
required
name
string
required
size_bytes
integer<int64>
required
sha256
string
required
created_at
string<date-time>
required
execution_count
integer
expires_at
string<date-time> | null
preview_url
string | null
download_url
string | null
metadata
object

Artifact metadata produced by the Jupyter sidecar and passed through (with rewritten URLs); shape owned by the sidecar, deliberately open.