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:
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number (default: 1) |
| limit | integer | Items per page (default: 20, max: 100) |
| status | string | Filter by status: published, draft, archived |
| category | string | Filter by category slug |
| search | string | Search by title or description |
| sort | string | Sort field: created_at, title, enrollments, price |
| order | string | Sort 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
Related Documentation
- Authentication — API key setup
- Students API — Student management
- Webhooks — Event notifications