# List source-backed threads in an app

List the app's source-backed threads, newest created first, with cursor pagination. Each thread has the shape the single-thread read returns. Pass nextCursor to read older threads until it is null. A cursor is bound to the app and the credential that received it.

`GET /api/platform/v1/apps/{appId}/threads`

Required permission: `thread:read`.

## Parameters

| Name | In | Type | Required | Description |

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

| `limit` | query | `integer` | No | Maximum threads to return, 1-100 (default 100). |

| `cursor` | query | `string` | No | nextCursor from the previous page. |

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

## Example request

```bash
curl --request GET \
  --url https://api.hoplite.sh/api/platform/v1/apps/appId/threads \
  --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 | — |
| `threads` | `object[]` | Yes | — | — |
| `threads.id` | `string` | Yes | — | — |
| `threads.projectId` | `string` | Yes | — | — |
| `threads.sourceId` | `string` | Yes | — | — |
| `threads.latestSourceId` | `string` | Yes | — | — |
| `threads.status` | `string` | Yes | queued · running · waiting · blocked · ready · failed · archived | — |
| `threads.latestRunId` | `string` | No | — | — |
| `threads.[key]` | `object` | No | — | — |
| `nextCursor` | `string` | Yes | — | — |

```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