Back to Documentation

    API Documentation

    Introduction

    The LearnSphere API allows developers to integrate our platform's functionality into their own applications. Access course data, user progress, and more programmatically.

    Getting Started

    API Keys

    1. Sign up for a developer account
    2. Navigate to Settings → API Keys
    3. Generate a new API key
    4. Keep your key secure and never share it publicly

    Base URL

    https://api.learnsphere.com/v1

    Authentication

    All API requests require authentication using your API key:

    Authorization: Bearer YOUR_API_KEY
    Content-Type: application/json

    Endpoints

    Get Courses

    GET /courses

    Retrieve a list of all available courses

    {
      "courses": [...],
      "total": 100,
      "page": 1
    }

    Get Course Details

    GET /courses/{id}

    Get detailed information about a specific course

    Get User Progress

    GET /users/{userId}/progress

    Retrieve a user's course progress and achievements

    Create Enrollment

    POST /enrollments

    Enroll a user in a course

    Rate Limits

    API requests are rate-limited to ensure fair usage:

    • Free tier: 100 requests per hour
    • Professional tier: 1,000 requests per hour
    • Enterprise tier: 10,000 requests per hour

    SDKs & Libraries

    We provide official SDKs for popular languages:

    JavaScript
    Python
    Node.js
    Ruby
    PHP
    Go

    Example Request

    curl https://api.learnsphere.com/v1/courses \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Support

    Need help with the API?