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

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

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

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

print(response.text)
"<string>"

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 preview bytes

The response is of type file.