Macademia Tree logo Macademia Tree
Sign In

Domains

Get a domain

Returns a single domain with its list of disciplines.

GET /api/v2/domains/:slug

Authentication

Requires Bearer token in the Authorization header.

Path Parameters

slug string required

The URL slug of the domain (e.g., natural-sciences)

Response

id uuid

Unique identifier

name string

Domain name

slug string

URL-safe identifier

description string

Brief description

disciplines_count integer

Number of disciplines

disciplines array

List of disciplines belonging to this domain

curl -X GET "https://macademiatree.com/api/v2/domains/natural-sciences" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Natural Sciences",
  "slug": "natural-sciences",
  "description": "Study of the physical world",
  "disciplines_count": 2,
  "disciplines": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "name": "Physics",
      "slug": "physics",
      "description": "Study of matter and energy",
      "sub_disciplines_count": 5
    }
  ]
}