# Download a brand asset

`GET https://api.parasend.com/v1/brand_assets/{id}/content`

Source: https://parasend.com/docs/api/brand-assets/download

Authentication: `Authorization: Bearer <API key>` (a `ps_test_` key in test mode, `ps_live_` in live mode).

Downloads an asset. A logo: its PNG rendition, the only form Parasend serves. A photo: its large WebP, or with `size=small` the small one. An icon: its 180 pixel PNG, or with `size=small` the 32 pixel one. Cached privately for a day.

## Path parameters

- `id` (string, required): The brand asset's ID, starting `bas_`.

## Query parameters

- `size` (string, optional): One of: `large`, `small`. Default: `"large"`.

## Example: Download a brand asset

```bash
curl "https://api.parasend.com/v1/brand_assets/bas_01M6R27T7R9RDBHE6X72ZRW3YC/content" \
  -H "Authorization: Bearer $PARASEND_KEY"
```

```js
const res = await fetch('https://api.parasend.com/v1/brand_assets/bas_01M6R27T7R9RDBHE6X72ZRW3YC/content', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PARASEND_KEY}`,
  },
});
const data = await res.json();
```

## Response 200

The PNG, or the WebP.

Content type: image/png, image/webp.

Errors: one shape, `{"error": {type, code, message, param, request_id}}`; every code is listed at https://parasend.com/docs/errors.
