---
title: "This sandbox's sessions: those still active, and those that ended in the last day."
method: GET
path: "/v1/sandboxes/{id}/sessions"
tags: ["sandboxes"]
---

# This sandbox's sessions: those still active, and those that ended in the last day.

`GET /v1/sandboxes/{id}/sessions`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/sandboxes/{id}/sessions`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Resource identifier (UUID).

## Response `200`

Success

- object
  - `data` object[], required
    - `id` string, uuid
    - `sandboxId` string, uuid
    - `name` string, nullable
    - `origins` string[]
    - `createdBy` string: The agent whose key made it; the session acts as it.
    - `createdAt` string, date-time
    - `expiresAt` string, date-time
    - `revokedAt` string, date-time, nullable
    - `state` 'active' | 'expired' | 'revoked'
  - `nextCursor` unknown, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
