# asset query


`asset` is a GraphQL query of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Returns one asset by its MAX id.

- Requires the `company.read` permission.
- `NOT_FOUND` when the asset does not exist or your API key cannot see it, for example because
  its company is outside your API key's legal-entity scope.

## Arguments

- `id`: [`UUID!`](/chameleoon-max/type/uuid) · required

## Returns

[`Asset!`](/chameleoon-max/type/asset)

## Example

**Query**

```graphql
query asset($id: UUID!) {
  asset(id: $id) {
    id
    scope
    legalEntityId
    code
    reference
    name
    kind
    contentType
    width
    height
    sizeBytes
    isPublic
    publicUrl
    createdAt
    updatedAt
  }
}
```

**Variables**

```json
{
  "id": "00000000-0000-4000-8000-000000000001"
}
```

**Response**

```json
{
  "data": {
    "asset": {
      "id": "00000000-0000-4000-8000-000000000001",
      "scope": "TENANT",
      "legalEntityId": "00000000-0000-4000-8000-000000000001",
      "code": "example",
      "reference": "example",
      "name": "example",
      "kind": "LOGO",
      "contentType": "example",
      "width": 1,
      "height": 1,
      "sizeBytes": 1,
      "isPublic": true,
      "publicUrl": "example",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
