Skip to content

Get twin space composition

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

Returns the twin layer descriptor. Scope: read:twin.

# ... script setup ...
TWIN_ID = "your-twin-id"
space = api_get(f"/v1/twin/{TWIN_ID}/space")
print(json.dumps(space, indent=2))