---
title: "Get a design"
---

> 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 › Designs

`GET /rest/v1/designs/{id}`

## Path parameters

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

## Code samples

### cURL

```curl
curl --request GET \
  --url 'https://svgdiagram.ai/rest/v1/designs/<id>'
```

### TypeScript

```typescript
const url = 'https://svgdiagram.ai/rest/v1/designs/<id>';
const options = {method: 'GET'};

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/designs/<id>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Design

#### Example

```json
{}
```

### 404

Design not found

#### Example

```json
{}
```


Source: https://docs.svgdiagram.ai/api/Designs/getRestV1DesignsById/index.md
