# Get Assets

<mark style="color:blue;">`GET`</mark> `/api/v2/spaces/:space_id/assets`

#### Path Parameters

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| space\_id | string | Space UUID  |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | [Bearer token](https://products.monterosa.co/mic/overview#authentication) |
| Content-Type  | string | application/vnd.api+json                                                  |

#### Response

```
200 OK
```

```json
{
  "data": [
    {
      "id": "a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d",
      "type": "assets",
      "attributes": {
        "name": "My Asset",
        "alt_text": "My Asset",
        "file_name": "my-asset.jpg",
        "path": "assets/43/43f6358e-dcbb-45f9-a9d7-25156a3f9707/orig",
        "thumbnail_path": "assets/43/43f6358e-dcbb-45f9-a9d7-25156a3f9707/thumbnail",
        "size": 123456,
        "mime_type": "image/jpeg",
        "image_width": 1920,
        "image_height": 1080,
        "created_at": "2021-01-01T00:00:00Z",
        "uploader_name": "John Doe",
        "uploader_email": "user@example.com"
      },
      "relationships": {
        "asset_tags": {
          "data": [
            {
              "type": "asset_tags",
              "id": "123e4567-e89b-12d3-a456-426614174000"
            }
          ]
        }
      }
    }
  ],
  "meta": {
    "page": {
      "current": 1,
      "total_pages": 13,
      "total_count": 1239,
      "per_page": 100
    }
  }
}
```

## Example

```bash
curl -i --request GET \
  --url https://environment.monterosa.cloud/api/v2/spaces/2dae6dc6-c2c5-4220-b69d-4bda57f79bf2/assets \
  --header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
  --header 'Content-Type: application/vnd.api+json'
```

<mark style="color:blue;">`GET`</mark> `/api/v2/spaces/:space_id/assets`

#### Path Parameters

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| space\_id | string | Space UUID  |

#### Headers

<table><thead><tr><th width="248">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Bearer token</td></tr><tr><td>Content-Type</td><td>string</td><td>application/vnd.api+json</td></tr></tbody></table>

#### Response

```
200 OK
```

```json
{
  "data": [
    {
      "id": "a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d",
      "type": "assets",
      "attributes": {
        "name": "My Asset",
        "alt_text": "My Asset",
        "file_name": "my-asset.jpg",
        "path": "assets/43/43f6358e-dcbb-45f9-a9d7-25156a3f9707/orig",
        "thumbnail_path": "assets/43/43f6358e-dcbb-45f9-a9d7-25156a3f9707/thumbnail",
        "size": 123456,
        "mime_type": "image/jpeg",
        "image_width": 1920,
        "image_height": 1080,
        "created_at": "2021-01-01T00:00:00Z",
        "uploader_name": "John Doe",
        "uploader_email": "user@example.com"
      },
      "relationships": {
        "asset_tags": {
          "data": [
            {
              "type": "asset_tags",
              "id": "123e4567-e89b-12d3-a456-426614174000"
            }
          ]
        }
      }
    }
  ],
  "meta": {
    "page": {
      "current": 1,
      "total_pages": 13,
      "total_count": 1239,
      "per_page": 100
    }
  }
}
```

## Example

```bash
curl -i --request GET \
  --url https://environment.monterosa.cloud/api/v2/spaces/2dae6dc6-c2c5-4220-b69d-4bda57f79bf2/assets \
  --header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
  --header 'Content-Type: application/vnd.api+json'
```
