---
title: "Get Lesson Attempts"
method: GET
path: "/training/analytics/v1/lessons/attempts"
tags: ["Training"]
---

# Get Lesson Attempts

`GET /training/analytics/v1/lessons/attempts`

Retrieves all lesson attempts for users in your organization.

## Query parameters

- `pageSize` integer
- `page` integer
- `userId` string
- `courseId` string
- `courseExternalId` string
- `lessonId` string
- `lessonExternalId` string
- `startedDatetime` string, date-time
- `completedDatetime` string, date-time

## Response `200`

A successful response.

- S12TrainingAnalyticsV1GetLessonAttemptsResponse
  - `totalCount` integer — The total number of lesson attempts matching the request
  - `items` S12TrainingAnalyticsV1LessonAttempt[] — List of lesson attempts
    - `attemptId` string — Unique identifier of the lesson attempt
    - `userId` string — ID of the attempting user
    - `courseId` string — ID of the course attempted
    - `courseExternalId` string — External ID of the course attempted
    - `lessonId` string — ID of the lesson attempted
    - `lessonExternalId` string — External ID of the lesson attempted
    - `startedDatetime` string, date-time — Start date time of the attempt
    - `completedDatetime` string, date-time — End date time of the attempt
    - `score` number, double — Score achieved within attempt
    - `success` boolean — Flag indicating if the attempt was successful

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/safetyculture/apis/safetyculture-api.md) · [All operations](https://skmtc.net/safetyculture/apis/safetyculture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/safetyculture/safetyculture-api/revisions/5be91df61ded/schema)
