Skip to main content
GET
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
components
/
{componentId}
/
assets
List Component Assets
curl --request GET \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/components/{componentId}/assets
{
  "data": [
    {}
  ],
  "pagination": {}
}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
componentId
string
required
Component ID

Query Parameters

page
number
default:"1"
Page number
limit
number
default:"20"
Items per page
type
string
Filter by MIME type (e.g., image/png)
Search term for asset name
tags
string[]
Filter by tags

Response

data
Asset[]
Array of asset objects
pagination
object
Pagination information

Example Response

{
  "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": {
    "page": 1,
    "limit": 20,
    "total": 2,
    "pages": 1
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/components/c123/assets" \
  -H "Authorization: Bearer YOUR_API_KEY"