Skip to main content
GET
/
v1
/
sandboxes
/
{id}
/
code
/
artifacts
List execution artifacts
import requests

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

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

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

print(response.text)
{
  "items": [
    {
      "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": {}
    }
  ],
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Query Parameters

context_id
string
execution_count
integer
kind
enum<string>
Available options:
image,
document,
html,
file
limit
integer
cursor
string

Response

Artifact list

items
object[]
required
next_cursor
string | null