Social Learning API

A practical guide to the business rules behind the Social Learning Public API. This is not an endpoint reference — it explains what communities and cohorts are, how they behave, and the rules the API enforces so you know what to expect before you call it.

Reference vs. this guide

Endpoint paths, parameters, and payloads live in the separate Learning API Referenceopen in new window. The paths shown here are logical; the gateway/proxy may rewrite them.

Overview

The Social Learning API covers two related resources:

Communities are the top-level container. They bring people together around a shared interest or goal. A community can be general-community (open discussion) or topic-based-community (organises discussion into topics and can host cohorts).

Cohorts are time-boxed, structured learning programs that live inside a topic-based community. They organise learning content into ordered sections, enroll members, and are managed by authors.

The object model:

community
├── members
├── topics
│   └── posts
│       └── comments
└── cohort  (topic-based communities only)
    ├── sections
    │   └── contents (learning objects / cards)
    ├── members   (learners)
    └── authors   (managers, incl. one creator)

Cohorts API

Two conditions must hold before any cohort call succeeds:

  • The feature must be enabled for the organization. Controlled by the EnableSocialLearningCohorts corp setting. When off, every cohort endpoint returns 403 (cohorts_not_enabled).
  • The community must be topic-based. Cohorts can only exist in topic-based communities. Any other community type returns 422 (community_not_topic_based); a missing community returns 404 (community_not_found).

On top of that, every action is authorized per role — see Roles and permissions.

Shared:

In the Cohorts API section:

Communities API

In the Communities API section: