curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active&limit=20" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active',
{
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
const data = await response.json();
{
"data": [
{
"id": "asset123",
"name": "hero-image.jpg",
"description": "Hero banner image for homepage",
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset123/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg"
},
"tags": ["hero", "homepage"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"lastKey": "eyJpZCI6ImFzc2V0MTIzIn0="
}
}
Assets
List Assets
Retrieve a paginated list of assets with optional filtering
GET
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
assets
curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active&limit=20" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active',
{
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
const data = await response.json();
{
"data": [
{
"id": "asset123",
"name": "hero-image.jpg",
"description": "Hero banner image for homepage",
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset123/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg"
},
"tags": ["hero", "homepage"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"lastKey": "eyJpZCI6ImFzc2V0MTIzIn0="
}
}
Retrieve a paginated list of assets in a project. Supports filtering by type, status, and tags.
Path Parameters
string
required
The unique identifier of the organization
string
required
The unique identifier of the project
Query Parameters
number
default:"1"
Page number for pagination
number
default:"20"
Number of items per page (max: 100)
string
Filter by MIME type (e.g.,
image/jpeg, video/mp4)string
Filter by tags (comma-separated list of tag IDs)
string
Filter by status:
active or deletedstring
Search term for the asset name
Response
Asset[]
Array of asset objects
object
curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active&limit=20" \
-H "Authorization: Bearer YOUR_JWT"
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets?type=image/jpeg&status=active',
{
headers: {
'Authorization': 'Bearer YOUR_JWT'
}
}
);
const data = await response.json();
{
"data": [
{
"id": "asset123",
"name": "hero-image.jpg",
"description": "Hero banner image for homepage",
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset123/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg"
},
"tags": ["hero", "homepage"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"lastKey": "eyJpZCI6ImFzc2V0MTIzIn0="
}
}