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

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID

Query Parameters

page
number
default:"1"
Page number
limit
number
default:"20"
Items per page
folderId
string
Filter by folder (null for root level)

Response

data
Collection[]
Array of collection objects
pagination
object
Pagination information

Example Response

{
  "data": [
    {
      "id": "coll123",
      "name": "UI Components",
      "folderId": null,
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedAt": "2024-03-20T10:00:00Z"
    },
    {
      "id": "coll124",
      "name": "Layout Components",
      "folderId": null,
      "createdAt": "2024-03-21T10:00:00Z",
      "updatedAt": "2024-03-21T10:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 5,
    "pages": 1
  }
}

Code Examples

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