> For the complete documentation index, see [llms.txt](https://docs.patascore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patascore.com/financial-education-1/courses/fetch-modules-by-program-identifier.md).

# Fetch Courses

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/courses`

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

{% tabs %}
{% tab title="200 OK" %}

```json
{
    "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
        }
 ]
}
```

{% endtab %}

{% tab title="401 Authentication Failed" %}

```json
{
  "status": 401,
  "response_code": 0,
  "success": false,
  "errors": [
    "No token provided"
  ],
  "message": "No token, Authorization denied"
}
```

{% endtab %}
{% endtabs %}
