# Get Assets
source: https://developer.mastercard.com/mdes-token-connect/documentation/testing/get-asset-test-case/index.md

The following table summarizes the test scenarios covered in this document.

|                                                                            Scenarios                                                                             | HTTP Status |                             Description                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|----------------------------------------------------------------------|
| [Scenario 1](https://developer.mastercard.com/mdes-token-connect/documentation/testing/get-asset-test-case/index.md#scenario-1--successful-logo-asset-retrieval) | `200`       | Successfully retrieve a Token Requestor logo asset by valid Asset ID |
| [Scenario 2](https://developer.mastercard.com/mdes-token-connect/documentation/testing/get-asset-test-case/index.md#scenario-2--asset-id-not-found)              | `404`       | Request fails when Asset ID does not exist in MDES repository        |

*** ** * ** ***

## Scenario 1 -- Successful Logo Asset Retrieval {#scenario-1--successful-logo-asset-retrieval}

**Assumptions**
> The Asset ID `dbc55444-496a-4896-b41c-5d5e2dd431e2` is a valid, active asset registered in the MDES repository, representing a Token Requestor logo. The caller obtained this Asset ID from a prior `getEligibleTokenRequestors` response.

**When**
> The issuer requests the static asset (logo) for a known Token Requestor using its Asset ID.

Sample Request

    GET https://sandbox.api.mastercard.com/mdes/mtf/issuer-assets/1/0/asset/tokenrequestor/dbc55444-496a-4896-b41c-5d5e2dd431e2

**Then**
> MDES returns the asset's media contents, including all available format variants (e.g., PNG and SVG), with Base64-encoded image data, dimensions, and MIME types.

**Expected HTTP Status Code:** `200`

Sample Response

```json
{
  "mediaContents": [
    {
      "type": "image\/png",
      "data": "iVBORw0KGgoAAAANSUhEUgAAAMAAAADAAAAAABAAAAAAA==",
      "height": "192",
      "width": "192"
    },
    {
      "type": "image\/svg+xml",
      "data": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg=="
    }
  ]
}
```

*** ** * ** ***

## Scenario 2 -- Asset ID Not Found {#scenario-2--asset-id-not-found}

**Assumptions**
> The Asset ID `aaaaaaaa-0000-0000-0000-000000000000` is a valid UUID format but does not correspond to any asset stored in the MDES repository.

**When**
> The issuer requests an asset using an Asset ID that no longer exists or was never registered in MDES.

Sample Request

    GET https://sandbox.api.mastercard.com/mdes/mtf/issuer-assets/1/0/asset/tokenrequestor/aaaaaaaa-0000-0000-0000-000000000000

**Then**
> MDES returns an error indicating the requested asset was not found.

**Expected HTTP Status Code:** `404`

*** ** * ** ***

