> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.crehana.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.crehana.com/_mcp/server.

# Get Learning Course Progress Report

GET https://www.crehana.com/api/v5/rest/org/{organization_slug}/reports/learning/course-progress/

Learning report: progress of each user in each enrolled course.

One row per user and course — the same population as the "Curso" sheet of
the courses Excel, deleted enrollments excluded. The learning routes of the
course come as lists (`track_ids`, `track_names`), so a course in several
routes is still one row. Rows come ordered by enrollment; page through them
with `cursor` / `next_cursor`.

Reference: https://developer.crehana.com/api-reference/endpoints/reports/get-learning-course-progress-report

## Authentication

- `Api-Key` header (required) — API key of the organization. Always sent together with the `Secret-Access` header.

## Servers

- `https://www.crehana.com` (Production, default)
- `https://qa.creha.co` (QA)

## Request

### Path parameters

- `organization_slug` (string, required)

### Query parameters

- `user_id` (integer, optional) — Learning user id.
- `user_email` (string, optional) — Exact match on the user email.
- `course_id` (list of integer, optional) — Learning course ids to filter by. Repeat the parameter for several courses (`course_id=1&course_id=2`), up to 100. A course that does not belong to the organization simply matches no row.
- `track_id` (integer, optional) — Only the courses of this active learning route.
- `is_completed` (boolean, optional) — `true` for completed courses, `false` for the rest.
- `certificate_obtained` (boolean, optional) — `true` for the courses with the certificate obtained, `false` for the rest.
- `from_date` (string, optional) — Start of the range, in YYYY-MM-DD format. Inclusive. With no `to_date` the range stays open going forward. Applies to the last activity of the user in the course (`last_activity_at`), interpreted in UTC — the same zone the report returns that field in.
- `to_date` (string, optional) — End of the range, in YYYY-MM-DD format. Inclusive: the whole day is covered, not just its midnight. For a single day, send the same date in `from_date` and in `to_date`. Applies to the last activity of the user in the course (`last_activity_at`), interpreted in UTC — the same zone the report returns that field in.
- `limit` (integer, optional, default: 1000) — Rows per page, up to 1000. Defaults to 100 when omitted.
- `cursor` (string, optional) — Cursor for the next page. Take it from `next_cursor` in the previous response and send it back unchanged; it is opaque. Omit it for the first page.

## Response

### 200

Successful Response

- `results` (list of LearningCourseProgressReport, required)
- `total` (integer, optional) — Rows matching the filters, ignoring pagination.
- `next_cursor` (string, optional) — Cursor of the next page. Send it back unchanged in `cursor`; null on the last page.
- `has_next_page` (boolean, optional, default: false) — Whether there is a page after this one.

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, required)
- `errors` (list of string, required)
- `datetime` (string, optional)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### LearningCourseProgressReport

One row per user × course enrollment.

- `user_id` (integer, optional) — Learning user id — the same `user_id` the other `/reports/learning/…` reports use.
- `user_name` (string, optional)
- `user_email` (string, optional)
- `identification_number` (string, optional) — Identity document as loaded in the organization. Always a string, so leading zeros are kept. Null when the person has none.
- `user_status` (string, optional) — Membership status of the user in the organization: `active`, `inactive`, `pending` or `deleted`.
- `course_id` (integer, optional) — Learning course id.
- `course_name` (string, optional)
- `course_type` (enum, optional) — `crehana` (Crehana catalog) or `organization` (own library).
  - Allowed values: `crehana`, `organization`
- `track_ids` (list of integer, optional) — Active learning routes that include this course for the user. A course in several routes is still one row; empty when it is in none.
- `track_names` (list of string, optional) — Names of the routes, in the same order as `track_ids`.
- `assigned_by_admin` (boolean, optional) — True when an administrator assigned the course.
- `enrollment_active` (boolean, optional) — True while the enrollment is active.
- `progress_percentage` (double, optional) — Course progress, 0–100.
- `progress_hours` (double, optional) — Hours of progress in the course (course duration × progress), rounded to 2 decimals. Same value as the courses Excel.
- `is_completed` (boolean, optional) — True when the course reached 100 %.
- `certificate_obtained` (boolean, optional) — True when the user obtained the certificate.
- `certificate_url` (string, optional) — Link to the course certificate page (absolute URL, e.g. `https://crehana.com/diplomas/489ca922`). Null without a certificate. The PDF is `certificate_pdf_url`.
- `certificate_pdf_url` (string, optional) — Direct download of the course certificate PDF (absolute URL). Null without a certificate or when its PDF was not generated.
- `enrolled_at` (datetime, optional) — Enrollment date, UTC.
- `started_at` (datetime, optional) — Date the user started the course, UTC.
- `completed_at` (datetime, optional) — Date the user completed the course, UTC.
- `last_activity_at` (datetime, optional) — Last activity of the user in the course, UTC.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

- string
- integer

## Examples

**Response**

```json
{
  "results": [
    {
      "user_id": 1,
      "user_name": "string",
      "user_email": "string",
      "identification_number": "string",
      "user_status": "string",
      "course_id": 1,
      "course_name": "string",
      "course_type": "crehana",
      "track_ids": [
        1
      ],
      "track_names": [
        "string"
      ],
      "assigned_by_admin": true,
      "enrollment_active": true,
      "progress_percentage": 1.1,
      "progress_hours": 1.1,
      "is_completed": true,
      "certificate_obtained": true,
      "certificate_url": "string",
      "certificate_pdf_url": "string",
      "enrolled_at": "2024-01-15T09:30:00Z",
      "started_at": "2024-01-15T09:30:00Z",
      "completed_at": "2024-01-15T09:30:00Z",
      "last_activity_at": "2024-01-15T09:30:00Z"
    }
  ],
  "total": 1,
  "next_cursor": "string",
  "has_next_page": false
}
```

**SDK Code**

```python
import requests

url = "https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/"

headers = {
    "Secret-Access": "Secret-Access",
    "Api-Key": "<apiKey>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/';
const options = {
  method: 'GET',
  headers: {'Secret-Access': 'Secret-Access', 'Api-Key': '<apiKey>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Secret-Access", "Secret-Access")
	req.Header.Add("Api-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Secret-Access"] = 'Secret-Access'
request["Api-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/")
  .header("Secret-Access", "Secret-Access")
  .header("Api-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/', [
  'headers' => [
    'Api-Key' => '<apiKey>',
    'Secret-Access' => 'Secret-Access',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/");
var request = new RestRequest(Method.GET);
request.AddHeader("Secret-Access", "Secret-Access");
request.AddHeader("Api-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Secret-Access": "Secret-Access",
  "Api-Key": "<apiKey>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://www.crehana.com/api/v5/rest/org/organization_slug/reports/learning/course-progress/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```