Fetch Courses
Returns a list of all published courses with user-specific information
GET {{BASE_URL}}/api/courses
Headers
Name
Type
Description
Authentication
string
Authentication token to track down who is emptying our stocks.
{
"status": 200,
"response_code": 0,
"success": true,
"errors": [],
"message": "Courses retrieved successfully",
"data": [
{
"id": 9,
"title": "Understanding loans",
"is_free": true,
"price": 0.0,
"description": "<div data-oe-version=\"1.2\">Learn how borrowing money from Pezesha can help your business grow</div>",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQE…..",
"users_enrolled": 101,
"likes_count": 10,
"rating": 0.0,
"completion_status": "in_progress",
"is_liked": true,
"payment_status": "free",
"can_access": true,
"payment_message": "This course is free",
"payment_id": null
}
]
}{
"status": 401,
"response_code": 0,
"success": false,
"errors": [
"No token provided"
],
"message": "No token, Authorization denied"
}Last updated
Was this helpful?