> For the complete documentation index, see [llms.txt](https://diffio.ai/llms.txt). This page is also available as HTML at https://diffio.ai/docs/api-reference/list-projects/.

# List projects

Lists the account's projects newest first, including each project's `latest_generation`. Pass `Diffio-End-User` to restrict results to one end user.

GET `https://api.diffio.ai/v2/projects`

- Key scope: `projects:read`
- Auth header: `Authorization: Bearer <apiKey>`
- Body: None

1. GET `/projects?limit=20` `data[]` newest first, `next_cursor`
2. GET `/projects?cursor={next_cursor}` until `next_cursor` is `null`
3. Next [/projects/{project_id}/generations](https://diffio.ai/docs/api-reference/list-project-generations/) with a project's `id`

## Request

Pass optional `limit` and `cursor` query parameters to page through projects.

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | No | Maximum number of items to return per page, from `1` to `100` (default `20`). |
| `cursor` | string | No | Opaque pagination token from the previous page's `next_cursor`. |

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Diffio-End-User` | string | No | Optional end-user identifier (up to 128 characters). Scopes the request to that end user's projects; omit to act across the whole account. |

## Example request

**Python**

```python
import os
from diffio import DiffioClient

key = os.environ["DIFFIO_API_KEY"]
client = DiffioClient(api_key=key)

page = client.projects.list()
```

**Node.js**

```javascript
import { DiffioClient } from "diffio"

const client = new DiffioClient({
  apiKey: process.env.DIFFIO_API_KEY,
})

const page = await client.projects.list()
```

**cURL**

```bash
curl "https://api.diffio.ai/v2/projects" \
  -H "Authorization: Bearer $DIFFIO_API_KEY"
```

## Response

Returns a `list` page of `project` objects ordered from newest to oldest, with `next_cursor` for the next page.

Success: `200`

### Response fields

| Field | Type | Present | Description |
| --- | --- | --- | --- |
| `object` | string | Always | Resource type, always `"list"`. |
| `data` | array | Always | Page of `Project` objects (same fields as [Get a project](https://diffio.ai/docs/api-reference/get-project/)), newest first. |
| `next_cursor` | string \| null | Always | Opaque cursor to pass as `cursor` for the next page, or `null` on the final page. |

## Example response (200)

**Response, key fields: Response: key fields**

```json
{
  "object": "list",
  "data": [
    {
      "id": "73118d99-36cf-4039-8005-b962d522fff7",
      "status": "ready",
      "file_name": "sermon clip.mp3"
    },
    {
      "id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
      "status": "ready",
      "file_name": "interview.mp3"
    }
  ],
  "next_cursor": null
}
```

**Full response: Successful response**

```json
{
  "object": "list",
  "data": [
    {
      "id": "73118d99-36cf-4039-8005-b962d522fff7",
      "object": "project",
      "status": "ready",
      "file_name": "sermon clip.mp3",
      "content_type": "audio/mpeg",
      "size_bytes": 510957,
      "duration_seconds": 31.9,
      "has_video": false,
      "end_user": "customer-mwe8tm1g",
      "metadata": {},
      "generation_count": 1,
      "video_preview_status": null,
      "latest_generation": {
        "id": "73c84c4a-c1ca-5485-b396-171ab632d4b7",
        "object": "generation",
        "project_id": "73118d99-36cf-4039-8005-b962d522fff7",
        "status": "complete",
        "stage": "complete",
        "stage_progress": null,
        "queue": null,
        "warnings": [],
        "label": "First pass",
        "kind": "restore",
        "source_generation_id": null,
        "edit": null,
        "transcript_editable": true,
        "duration_seconds": 31.8,
        "quality_score": 4.518,
        "transcription_status": "ready",
        "files_available": [
          "audio",
          "audio_mixed",
          "hls_master",
          "hls_original",
          "hls_restored",
          "metadata",
          "stems_manifest",
          "transcript",
          "waveform_original",
          "waveform_restored"
        ],
        "error": null,
        "model": "diffio-4.7-pro",
        "requested_model": "diffio-pro",
        "substituted": false,
        "price_per_hour_usd": 10,
        "stems_status": "ready",
        "created_at": "2026-11-13T00:33:29.591679Z",
        "updated_at": "2026-11-13T00:33:47.290000Z"
      },
      "share_id": null,
      "created_at": "2026-11-13T00:33:29.384479Z",
      "updated_at": "2026-11-13T00:33:31.899000Z",
      "error": null
    },
    {
      "id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
      "object": "project",
      "status": "ready",
      "file_name": "interview.mp3",
      "content_type": "audio/mpeg",
      "size_bytes": 510957,
      "duration_seconds": 31.9,
      "has_video": false,
      "end_user": "customer-mwe8tm1g",
      "metadata": {
        "order_id": "1042"
      },
      "generation_count": 1,
      "video_preview_status": null,
      "latest_generation": {
        "id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
        "object": "generation",
        "project_id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
        "status": "complete",
        "stage": "complete",
        "stage_progress": null,
        "queue": null,
        "warnings": [],
        "label": "Take 1",
        "kind": "restore",
        "source_generation_id": null,
        "edit": null,
        "transcript_editable": false,
        "duration_seconds": 31.8,
        "quality_score": 4.572,
        "transcription_status": "ready",
        "files_available": [
          "audio",
          "audio_mixed",
          "hls_master",
          "hls_original",
          "hls_restored",
          "metadata",
          "stems_manifest",
          "transcript",
          "waveform_original",
          "waveform_restored"
        ],
        "error": null,
        "model": "diffio-4.7-flash",
        "requested_model": "diffio-flash",
        "substituted": false,
        "price_per_hour_usd": 5,
        "stems_status": "ready",
        "created_at": "2026-11-13T00:33:27.117344Z",
        "updated_at": "2026-11-13T00:33:40.864000Z"
      },
      "share_id": null,
      "created_at": "2026-11-13T00:33:21.812909Z",
      "updated_at": "2026-11-13T00:33:27.117344Z",
      "error": null
    }
  ],
  "next_cursor": null
}
```

## Return codes

- `200` Returns a page of projects and `next_cursor`.
- `400` Invalid `limit` or `cursor` query value, or `Diffio-End-User` exceeds 128 characters. [`invalid_parameter`](https://diffio.ai/docs/api-reference/errors/#invalid_parameter) [`invalid_header`](https://diffio.ai/docs/api-reference/errors/#invalid_header)
- `403` Key is inactive or lacks `projects:read`. [`permission_denied`](https://diffio.ai/docs/api-reference/errors/#permission_denied)
- **`401` `405` Same on every endpoint**

  - `401` Missing API key (code missing_api_key), or invalid API key (code invalid_api_key).
  - `405` HTTP method not supported on this path; check the Allow header (code method_not_allowed).

### Example error response

Errors are JSON: an `error` object with `code`, `message` and `request_id`. An unrecognized key returns `401`:

**Error response**

```json
{
  "error": {
    "code": "invalid_api_key",
    "message": "Invalid API key.",
    "request_id": "dead773b60e148fd9e22d680a22fa701"
  }
}
```

## Notes

- Without `Diffio-End-User`, the response lists every project on the account regardless of which API key or end user created it.
- Each item includes `latest_generation` so a project list UI can show restore progress without extra calls.
- In Python use `client.projects.iter()`, and in Node.js use `for await (const project of client.projects.list())`, to walk every page automatically.

## Related pages

- Previous: [Create a project](https://diffio.ai/docs/api-reference/create-project/): Create a project for one audio or video file and receive multipart upload instructions.
- Next: [Get a project](https://diffio.ai/docs/api-reference/get-project/): Retrieve one project's upload status, media metadata, and latest generation.

- [Full API guide](https://diffio.ai/docs/developers/full-api-guide/): Every topic, limit and concept in one index.
- [Diffio API overview](https://diffio.ai/api-overview/): The cloud batch workflow and SDKs on one page.
