HouseLearning Docs

API Reference

Everything you need to integrate with HouseLearning’s ecosystem — fully documented, typed, and ready to use.

Authentication

Endpoints for signing in, managing tokens, and validating sessions.

POST /api/auth/login

Login using email and password.

{
  "email": "user@example.com",
  "password": "mypassword123"
}

Returns:

{
  "token": "abcdef123456",
  "expiresIn": 3600
}

Users

Endpoints related to user info, profiles, accounts, and preferences.

GET /api/users/{id}

Gets public data about the specified user.

{
  "id": "6741",
  "name": "Neil Narwhal",
  "joined": "2025-03-09"
}

Content

Endpoints for docs, lessons, and data retrieval.

GET /api/content/docs

Returns a list of all available documentation pages.

Analytics

Track usage, impressions, and performance.

GET /api/analytics/views

Gets total page views for your project.