---
title: "Create Lesson Completion"
method: POST
path: "/courses/{course_id}/lesson_completions"
tags: ["Courses::LessonCompletion"]
---

# Create Lesson Completion

`POST /courses/{course_id}/lesson_completions`

## Request

- Base URL: `https://myworkspace.myclickfunnels.com/api/v2`
- URL: `https://myworkspace.myclickfunnels.com/api/v2/courses/{course_id}/lesson_completions`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://accounts.myclickfunnels.com/oauth/authorize`
    - Token URL: `https://accounts.myclickfunnels.com/oauth/token`
- TypeScript: <https://skmtc.dev/myclickfunnels/apis/clickfunnels-api/docs/courses/:course_id/lesson_completions/post.ts> (a function with typed inputs; its response is checked against the schema)

Mark a lesson as completed by a specific enrollment. You can only mark a lesson as completed once. Subsequent completions for the same lesson by the same enrollment will return a conflict error.

## Path parameters

- `course_id` string, required

## Request body

- object
  - `courses_lesson_completion` CoursesLessonCompletionParameters: Completed lessons
    - `enrollment_id` integer, required: The ID of the `Courses::Enrollment` record that completed the lesson
    - `lesson_id` integer, required: The ID of the `Courses::Lesson` record that was completed

## Response `201`

Created

- CoursesLessonCompletionAttributes: Completed lessons
  - `id` integer: ID
  - `public_id` string, nullable: Public ID
  - `enrollment_id` integer: The ID of the `Courses::Enrollment` record that completed the lesson
  - `lesson_id` integer: The ID of the `Courses::Lesson` record that was completed
  - `completed_at` string, date-time: The time when the record was completed; It is set automatically to the current time when the record is created

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden — this request's workspace is closed to it. Three cases return this: * The access token is limited to specific workspaces (see the workspace selection made when the key was provisioned, or the workspaces approved on the OAuth consent screen) and the request acts on a workspace outside that set. * The access token is limited to specific workspaces and the request's workspace could not be determined at all. The gate is fail-closed, so a workspace-limited token is denied rather than allowed through when the target workspace is ambiguous. * The workspace's team has no active ClickFunnels subscription: it was canceled, is paused, or is locked out after failed payments. Reads and writes are both refused until the subscription is reactivated, and the body carries `"code": "subscription_inactive"`. A token with no workspace restriction never receives the first two.

## Changes

- **2026-11-03** `511d88b30aea`: 4 info
  - for the `path` request parameter `course_id`, the type was generalized from `integer` to `string`
  - added the non-success response with the status `403`
  - added the optional property `hint` to the response with the `400` status
  - added the optional property `hint` to the response with the `401` status

[Operation history](https://skmtc.dev/myclickfunnels/apis/clickfunnels-api/changes/courses/:course_id/lesson_completions/post.md)

---

[API](https://skmtc.dev/myclickfunnels/apis/clickfunnels-api.md) - [All operations](https://skmtc.dev/myclickfunnels/apis/clickfunnels-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myclickfunnels/apis/clickfunnels-api/revisions/511d88b30aea?raw)
