Courses API

The Courses API allows you to programmatically manage courses on your Euron Systems platform.

Base URL

https://api.euronsystems.com/v1/courses

Endpoints

List All Courses

GET /v1/courses

Query Parameters:

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 20, max: 100)
statusstringFilter by status: published, draft, archived
categorystringFilter by category slug
searchstringSearch by title or description
sortstringSort field: created_at, title, enrollments, price
orderstringSort order: asc, desc

Response:

{
  "data": [
    {
      "id": "course_abc123",
      "title": "Complete Python Bootcamp",
      "slug": "complete-python-bootcamp",
      "description": "Learn Python from scratch...",
      "status": "published",
      "type": "self-paced",
      "price": 4999,
      "currency": "INR",
      "enrollments_count": 1250,
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-03-01T14:22:00Z"
    }
  ],
  "meta": {
    "total": 45,
    "page": 1,
    "limit": 20,
    "total_pages": 3
  }
}

Get Single Course

GET /v1/courses/:id

Returns the full course object including curriculum, settings, and metadata.

Create Course

POST /v1/courses

Request Body:

{
  "title": "Advanced JavaScript Patterns",
  "description": "Master advanced JavaScript...",
  "type": "self-paced",
  "category": "programming",
  "price": 2999,
  "currency": "INR",
  "status": "draft"
}

Update Course

PATCH /v1/courses/:id

Send only the fields you want to update.

Delete Course

DELETE /v1/courses/:id

Warning: This permanently deletes the course and all associated data (enrollments, progress, etc.). This action cannot be undone.

Enrollment Endpoints

Enroll a Student

POST /v1/courses/:id/enroll
{
  "student_id": "student_xyz789",
  "send_notification": true
}

List Enrollments

GET /v1/courses/:id/enrollments

Was this page helpful? Contact us at support@euronsystems.com