# Get a status page design template asset — API reference

> Returns a stored status page design template asset by templateID and kind.

Source: https://upfour.io/docs/api/status-page-design-templates/get-a-status-page-design-template-asset

[Developers](https://upfour.io/docs/api.md)/[Status page design templates](https://upfour.io/docs/api/status-page-design-templates.md)

Returns a stored status page design template asset by templateID and kind.

GET https://app.upfour.io/v1/status-page-design-templates/{templateID}/assets/{kind}

scope status_page.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `templateID` required | uuid | path parameter |
| `kind` required | string one of`logo` `logo_dark` `favicon` | path parameter |

## Returns

A successful request returns `200` with image/\*.

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 409 | [design_template_conflict](https://upfour.io/docs/api/errors#code-design_template_conflict) | The design template was changed after the caller read it. **When:** Updating or applying a design template that was changed after the caller read it. **Fix:** Reload the template and apply the change again. |
| 404 | [design_template_not_found](https://upfour.io/docs/api/errors#code-design_template_not_found) | The design template does not exist or is not visible to the caller. **When:** A design template id in the path or body that is unknown or not visible to the caller. **Fix:** List design templates and use an id from the list. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousUpdate a status page design template](https://upfour.io/docs/api/status-page-design-templates/update-a-status-page-design-template.md) [NextDelete a status page design template](https://upfour.io/docs/api/status-page-design-templates/delete-a-status-page-design-template.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/status-page-design-templates/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/assets/logo" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/status-page-design-templates/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/assets/logo", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.text());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/status-page-design-templates/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/assets/logo",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.text)
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/status-page-design-templates/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/assets/logo", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/status-page-design-templates/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/assets/logo");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```
Successful response
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "design_template_not_found",
    "message": "The design template does not exist or is not visible to the caller.",
    "request_id": "req_…"
  }
}
```

### 409

```json
{
  "error": {
    "code": "design_template_conflict",
    "message": "The design template was changed after the caller read it.",
    "request_id": "req_…"
  }
}
```
