Skip to content

List assets

Start from the script setup block, then add the snippet code below.

# ... script setup ...
TWIN_ID = "your-twin-id"
assets = api_get(
f"/v1/twin/{TWIN_ID}/assets",
params={"page": "1", "limit": "20", "includesStructure": "true"},
)
print(json.dumps(assets, indent=2))