Macademia Tree logo Macademia Tree
Sign In

Disciplines

Get a discipline

Returns a single discipline with its parent domains and child sub-disciplines.

GET /api/v2/disciplines/:slug

Authentication

Requires Bearer token in the Authorization header.

Path Parameters

slug string required

The URL slug of the discipline (e.g., statistics)

Response

id uuid

Unique identifier

name string

Discipline name

slug string

URL-safe identifier

description string

Brief description

domains array

Parent domains this discipline belongs to

sub_disciplines_count integer

Number of sub-disciplines

sub_disciplines array

List of sub-disciplines (show only)

curl -X GET "https://macademiatree.com/api/v2/disciplines/natural-sciences" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "name": "Statistics",
  "slug": "statistics",
  "description": "Collection and analysis of data",
  "domains": [
    {
      "id": "...",
      "name": "Natural Sciences",
      "slug": "natural-sciences"
    }
  ],
  "sub_disciplines_count": 2,
  "sub_disciplines": [
    {
      "id": "...",
      "name": "Bayesian Statistics",
      "slug": "bayesian-statistics",
      "description": "Statistical inference using Bayes' theorem",
      "topics_count": 4
    }
  ]
}