> 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 User General Report V2

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

Return the general learning report per user. This version adds fields that
the first one does not expose; new integrations should use it.

Reference: https://developer.crehana.com/api-reference/endpoints/reports/get-user-general-report-v-2

## 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)
- `user_email` (string, optional)
- `user_status` (string, optional)
- `course_id` (string, optional)
- `limit` (integer, optional, default: 100) — Rows per page, up to 500. Defaults to 100 when omitted.
- `offset` (integer, optional) — Rows to skip before the page. Use it together with `limit` to walk the report: 0, then `limit`, then twice `limit`, and so on.
- `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 course enrollment date — the `course_enroll_date` field of the response —, interpreted in the organization's time zone, the same one the report returns that date 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 course enrollment date — the `course_enroll_date` field of the response —, interpreted in the organization's time zone, the same one the report returns that date in.

## Response

### 200

Successful Response

- `results` (list of LearningGeneralReportV2, required)
- `total` (integer, optional)

## 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

### LearningGeneralReportV2

- `user_id` (string, required)
- `user_name` (string, required)
- `user_email` (string, required)
- `user_status` (string, required)
- `is_enroll_active` (boolean, required)
- `course_id` (string, required)
- `course_name` (string, required)
- `is_admin_assigned` (boolean, required)
- `course_type` (string, required)
- `course_is_reward` (string, required)
- `course_duration_hours` (double, required)
- `course_progress` (double, required)
- `course_progress_hours` (double, required)
- `course_is_completed` (boolean, required)
- `course_has_participation_certificate` (boolean, required)
- `user_info_extra` (string, optional)
- `course_category` (string, optional)
- `course_subcategory` (string, optional)
- `assigned_by_name` (string, optional)
- `project_status` (string, optional)
- `project_date` (date, optional)
- `quiz_status` (string, optional)
- `quiz_attemps` (string, optional)
- `quiz_best_correct_answers` (integer, optional)
- `quiz_best_wrong_answers` (integer, optional)
- `quiz_total_questions` (integer, optional)
- `quiz_best_result` (double, optional)
- `course_is_certified` (boolean, optional)
- `course_enroll_date` (date, optional)
- `course_start_date` (date, optional)
- `course_complete_date` (date, optional)
- `project_url` (string, optional)
- `course_certificated_url` (string, optional)
- `course_participation_certificate_url` (string, optional)
- `course_certificated_date` (string, optional)
- `certificate_type_name` (string, optional)
- `course_last_action_date` (date, optional)
- `user_division` (string, optional)
- `user_subsidiary` (string, optional)
- `user_job` (string, optional)
- `user_level` (string, optional)
- `user_role` (string, optional)
- `track_id` (string, optional)
- `track_name` (string, optional)
- `track_is_hidden` (boolean, optional)
- `user_custom_fields` (list of LearningGeneralReportV2UserCustomField, optional)

### ValidationError

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

### LearningGeneralReportV2UserCustomField

- `field_name` (string, required)
- `field_answer` (string, required)

### ValidationErrorLocItems

## Examples

**Response**

```json
{
  "results": [
    {
      "user_id": "string",
      "user_name": "string",
      "user_email": "string",
      "user_status": "string",
      "is_enroll_active": true,
      "course_id": "string",
      "course_name": "string",
      "is_admin_assigned": true,
      "course_type": "string",
      "course_is_reward": "string",
      "course_duration_hours": 1.1,
      "course_progress": 1.1,
      "course_progress_hours": 1.1,
      "course_is_completed": true,
      "course_has_participation_certificate": true,
      "user_info_extra": "string",
      "course_category": "string",
      "course_subcategory": "string",
      "assigned_by_name": "string",
      "project_status": "string",
      "project_date": "2023-01-15",
      "quiz_status": "string",
      "quiz_attemps": "string",
      "quiz_best_correct_answers": 1,
      "quiz_best_wrong_answers": 1,
      "quiz_total_questions": 1,
      "quiz_best_result": 1.1,
      "course_is_certified": true,
      "course_enroll_date": "2023-01-15",
      "course_start_date": "2023-01-15",
      "course_complete_date": "2023-01-15",
      "project_url": "string",
      "course_certificated_url": "string",
      "course_participation_certificate_url": "string",
      "course_certificated_date": "string",
      "certificate_type_name": "string",
      "course_last_action_date": "2023-01-15",
      "user_division": "string",
      "user_subsidiary": "string",
      "user_job": "string",
      "user_level": "string",
      "user_role": "string",
      "track_id": "string",
      "track_name": "string",
      "track_is_hidden": true,
      "user_custom_fields": [
        {
          "field_name": "string",
          "field_answer": "string"
        }
      ]
    }
  ],
  "total": 1
}
```

**SDK Code**

```python
import requests

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

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/general-v2/';
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/general-v2/"

	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/general-v2/")

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/general-v2/")
  .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/general-v2/', [
  '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/general-v2/");
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/general-v2/")! 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()
```