---
title: "Recover a style generation request"
---

> 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}/style-request`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `getRestV1GenerationsByIdStyle-request.path.id` (string, required)

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Style request status

#### Example

```json
{}
```

### 404

Request not found

#### Example

```json
{}
```


Source: https://docs.svgdiagram.ai/api/Generations/getRestV1GenerationsByIdStyle-request/index.md
