# Read the workspace idle policy

Read the explicit activity deadline. A null policy means the organization's default sandbox idle policy applies. Finishing a run starts a fresh idle interval.

`GET /api/platform/v1/apps/{appId}/threads/{threadId}/workspace/policy`

Required permission: `thread:read`.

## Parameters

| Name | In | Type | Required | Description |

| --- | --- | --- | --- | --- |

| `appId` | path | `string` | Yes | — |

| `threadId` | path | `string` | Yes | — |

## Example request

```bash
curl --request GET \
  --url https://api.hoplite.sh/api/platform/v1/apps/appId/threads/threadId/workspace/policy \
  --header "X-Api-Key: $HOPLITE_API_KEY"
```

## 200 response

Success

Content type: `application/json`. Response type: `object`.

| Field | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| `ok` | `boolean` | Yes | true | — |
| `policy` | `object` | Yes | — | — |
| `policy.idleTimeoutMinutes` | `integer` | Yes | min -9007199254740991, max 9007199254740991 | — |
| `policy.lastActivityAt` | `string<date-time>` | Yes | — | — |
| `policy.expiresAt` | `string<date-time>` | No | — | — |
| `policy.workspaceStatus` | `string` | No | — | — |

```json

```

## Status codes

- `200` — Success

- `400` — Invalid request

- `401` — Authentication required

- `403` — Permission, app scope or entitlement denied

- `404` — App, source or thread not found

- `409` — Idempotency conflict or request in progress

- `413` — Request too large

- `503` — Source storage or execution unavailable