Skip to main content
GET
/
api
/
v1
/
collections
/
org
/
{org_id}
/
page
/
{page}
/
limit
/
{limit}
List Collections
curl --request GET \
  --url https://api.example.com/api/v1/collections/org/{org_id}/page/{page}/limit/{limit}
{
  "id": 123,
  "collection_uuid": "<string>",
  "name": "<string>",
  "description": "<string>",
  "public": true,
  "courses": [
    {}
  ],
  "creation_date": "<string>",
  "update_date": "<string>"
}
Retrieve a paginated list of collections for a specific organization.

Path Parameters

org_id
string
required
The unique identifier of the organization
page
integer
required
Page number for pagination (starts at 1)
limit
integer
required
Number of collections to return per page

Response

Returns an array of collection objects.
id
integer
Unique identifier for the collection
collection_uuid
string
UUID of the collection
name
string
Name of the collection
description
string
Description of the collection
public
boolean
Whether the collection is publicly accessible
courses
array
List of course IDs included in this collection
creation_date
string
ISO 8601 timestamp of when the collection was created
update_date
string
ISO 8601 timestamp of when the collection was last updated

Example Request

curl -X GET "https://api.learnhouse.app/api/v1/collections/org/123/page/1/limit/10" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

[
  {
    "id": 1,
    "collection_uuid": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Introduction to Programming",
    "description": "Essential programming courses for beginners",
    "public": true,
    "courses": [101, 102, 103],
    "creation_date": "2024-01-15T10:30:00Z",
    "update_date": "2024-02-20T14:45:00Z"
  },
  {
    "id": 2,
    "collection_uuid": "660e8400-e29b-41d4-a716-446655440001",
    "name": "Advanced Web Development",
    "description": "Advanced courses for experienced developers",
    "public": true,
    "courses": [201, 202, 203, 204],
    "creation_date": "2024-02-01T09:15:00Z",
    "update_date": "2024-03-10T16:20:00Z"
  }
]

Build docs developers (and LLMs) love