# Fetch Lessons

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

#### Path Parameters

| Name       | Type    | Description      |
| ---------- | ------- | ---------------- |
| course\_id | integer | ID of the course |

#### 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": "Lessons retrieved successfully",
  "data": [
    {
      "id": 123,
      "course_id": 45,
      "title": "Introduction to Financial Planning",
      "slide_type": "video",
      "content": "https://youtube.com/watch?v=example",
      "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...",
      "learning_outcomes": [
        "Understand basic financial concepts"
      ],
      "completed": false,
      "status": "not_started"
    },
    {
      "id": 124,
      "course_id": 45,
      "title": "Creating Your Budget",
      "slide_type": "document",
      "content": "UERGLTEuNA0KJcOkw4zDqcS9...",
      "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...",
      "learning_outcomes": [
        "Create a personal budget"
      ],
      "completed": true,
      "status": "completed"
    }
  ]
}
```

{% endtab %}

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

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

{% endtab %}

{% tab title="404 Not Found" %}

```json
{
    "status": 404,
    "message": "Course Not Found"
}
```

{% endtab %}
{% endtabs %}
