> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Component Assets

> Retrieve all assets for a component

## Path Parameters

<ParamField path="organizationId" type="string" required>
  Organization ID
</ParamField>

<ParamField path="projectId" type="string" required>
  Project ID
</ParamField>

<ParamField path="componentId" type="string" required>
  Component ID
</ParamField>

## Query Parameters

<ParamField query="limit" type="number" default="20">
  Items per page
</ParamField>

<ParamField query="lastKey" type="string">
  Cursor for pagination (from previous response)
</ParamField>

<ParamField query="type" type="string">
  Filter by MIME type (e.g., `image/png`)
</ParamField>

<ParamField query="search" type="string">
  Search term for asset name
</ParamField>

<ParamField query="tags" type="string[]">
  Filter by tags
</ParamField>

## Response

<ResponseField name="data" type="Asset[]">
  Array of asset objects
</ResponseField>

<ResponseField name="pagination" type="object">
  Pagination information
</ResponseField>

### Example Response

```json theme={null}
{
  "data": [
    {
      "id": "asset123",
      "name": "logo-2x.png",
      "type": "image/png",
      "url": "https://cdn.metabind.ai/.../logo-2x.png",
      "size": 24576,
      "status": "active",
      "metadata": {
        "width": 200,
        "height": 100
      },
      "tags": ["logo", "brand"],
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedAt": "2024-03-20T10:00:00Z"
    },
    {
      "id": "asset456",
      "name": "icon-share.svg",
      "type": "image/svg+xml",
      "url": "https://cdn.metabind.ai/.../icon-share.svg",
      "size": 4096,
      "status": "active",
      "metadata": {},
      "tags": ["icon"],
      "createdAt": "2024-03-20T11:00:00Z",
      "updatedAt": "2024-03-20T11:00:00Z"
    }
  ],
  "pagination": {
    "lastKey": "eyJwayI6Ik9SR..."
  }
}
```

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/components/c123/assets" \
    -H "Authorization: Bearer YOUR_JWT"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/components/c123/assets',
    {
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

  const { data: assets, pagination } = await response.json();
  console.log(`Component has ${assets.length} assets`);
  ```
</CodeGroup>
