---
title: "Embed the course list | Docs | eLearning by R&D Copilot"
description: "Render the course catalogue inside your own staff portal with a server-side API call."
canonical: "https://elearning.rdcopilot.com/docs/guides/embed-the-course-list/"
language: en
updated: 2026-11-22
---

# Embed the course list

Render the course catalogue inside your own staff portal with a server-side API call.

## Fetch the catalogue on the server

Authenticate in your portal backend and read `items` from the course list. Keep the bearer token and client credentials on the server. Check that the signed-in portal user can see the company whose catalogue you request.

curl

```bash
curl "$RDC_BASE_URL/elearning/v1/courses" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/courses`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/elearning/v1/courses',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/courses');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/courses");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 200

```json
{
  "items": [
    {
      "id": "receiving-goods",
      "title": "Receiving goods",
      "kind": "course",
      "lessonIds": [
        "receiving-reading",
        "receiving-checklist",
        "receiving-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 5,
      "validityDays": 365
    },
    {
      "id": "workplace-safety",
      "title": "Workplace safety",
      "kind": "course",
      "lessonIds": [
        "safety-reading",
        "safety-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 4,
      "validityDays": 365
    },
    {
      "id": "new-hire-onboarding",
      "title": "New-hire onboarding",
      "kind": "path",
      "lessonIds": [],
      "courseIds": [
        "workplace-safety",
        "receiving-goods"
      ],
      "durationMinutes": 9
    },
    {
      "id": "receiving-review",
      "title": "Receiving review",
      "kind": "course",
      "lessonIds": [
        "delivery-note",
        "delivery-checklist",
        "delivery-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 5,
      "validityDays": 365
    }
  ],
  "nextCursor": null
}
```

Return only the fields the page needs, such as ID, title, kind and duration in minutes. Render titles as text. If the API returns `nextCursor`, use it unchanged to fetch the next page with the same filters.
