For AI agents: every API docs page in one plain-text file is at /docs/llms-full.txt, and the documentation index is at /llms.txt. This page is available as Markdown at https://diffio.ai/docs/api-reference/list-project-generations.md, and every docs URL returns Markdown when requested with Accept: text/markdown.

List a project's generations
Lists a project's generations (both full restores and transcript edits) newest first, one page at a time.
GET https:/
- Key scope:
generations:read - Auth header:
Authorization: Bearer <apiKey> - Body: None
- GET
/projects/ {project_ id}/ generations data[]newest first,next_cursor - Pick
status: completeitsid - GET/
projects/ {project_ id}/ generations/ {generation_ id}/ media filesURLs
Request
Pass project_id in the path and optional limit and cursor query parameters.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
#project_id | string | Required: Yes | Unique identifier of the project. |
Query parameters
Headers
| Field | Type | Required | Description |
|---|---|---|---|
#Diffio-End-User | string | Required: 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. |
Request
import os
from diffio import DiffioClient
key = os.environ["DIFFIO_API_KEY"]
client = DiffioClient(api_key=key)
page = client.generations.list(
"62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
)Response
Returns a list page of Generation objects ordered newest first, with next_cursor.
Success: 200OK.
Response fields
| Field | Type | Present | Description |
|---|---|---|---|
#object | string | Always | Resource type, always "list".list |
#data | array | Always | Page of Generation objects (same fields as Get a generation), newest first. |
#next_cursor | string | null | Always | Opaque cursor to pass as cursor for the next page, or null on the final page. |
Response 200OK.
{
"object": "list",
"data": [
{
"id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
"status": "complete",
"model": "diffio-4.7-flash"
}
],
"next_cursor": null
}Return codes
200OK.Returns a page of generations for the project.400Bad request.Invalidlimitorcursorquery value, orDiffio-End-Userexceeds 128 characters.invalid_parameterinvalid_header403Forbidden: the key lacks permission.Key is inactive or lacksgenerations:read.permission_denied404Not found.No project with thatproject_idexists for this account and end user.project_not_found401Unauthorized: the API key is missing or invalid.405Client error.Same on every endpoint401Unauthorized: the API key is missing or invalid. Missing API key (code missing_api_key), or invalid API key (code invalid_api_key).405Client error. 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 401Unauthorized: the API key is missing or invalid.:
{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key.",
"request_id": "dead773b60e148fd9e22d680a22fa701"
}
}Notes
- Includes both
kind: "restore"generations andkind: "edit"generations created by Edit a generation's transcript. - Use
client.generations.iter(project_id)in Python orfor await (const gen of client.generations.list(projectId))in Node.js to iterate through every page.