---
title: "List diagrams"
description: "One item per diagram, shown by its latest completed attempt or else its latest attempt, most recent activity first; pass the returned nextCursor as before for the next page. With clientActionId, returns the one attempt that request created."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.svgdiagram.ai/llms.txt
> Use this file to discover all available pages before exploring further.

Path: svgdiagram API › Generations

`GET /rest/v1/generations`

One item per diagram, shown by its latest completed attempt or else its latest attempt, most recent activity first; pass the returned nextCursor as before for the next page. With clientActionId, returns the one attempt that request created.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```curl
curl --request GET \
  --url https://svgdiagram.ai/rest/v1/generations \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://svgdiagram.ai/rest/v1/generations';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://svgdiagram.ai/rest/v1/generations"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Diagrams

#### Example

```json
{}
```


Source: https://docs.svgdiagram.ai/api/Generations/getRestV1Generations/index.md
