---
title: "List the attempts of a generation's idea"
description: "Every attempt made from the same first generation (tries again, edited prompts, other designs, copies), oldest first, failed ones included."
---

> 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/{id}/attempts`

Every attempt made from the same first generation (tries again, edited prompts, other designs, copies), oldest first, failed ones included.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `getRestV1GenerationsByIdAttempts.path.id` (string, required)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://svgdiagram.ai/rest/v1/generations/<id>/attempts';
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/<id>/attempts"

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

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

print(response.text)
```

## Responses

### 200

Attempts

#### Example

```json
{}
```

### 404

Generation not found

#### Example

```json
{}
```


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