Skip to main content
GET
/
v1
/
sandboxes
/
{id}
/
code
/
contexts
List kernel contexts
import requests

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

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

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

print(response.text)
[
  {
    "id": "<string>",
    "language": "<string>",
    "cwd": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Response

List of contexts

id
string
required
language
string
required
cwd
string
required

Normalized kernel working directory for this context.