Login

Courses

Get courses

GET /api/v1/headless/courses

Use this endpoint to get all your courses.

Query parameters

FieldTypeDescriptionRequiredDefaultOptions
identifierstringFilter to courses created by this identifierYes N/A N/A
clientIdentifierstringFilter to courses created by this clientIdentifierYes N/A N/A
lengthintegerNumber of courses to returnYes N/A N/A
pageintegerPage of courses to returnYes N/A N/A

Responses

CodeDescription
default

Get course

GET /api/v1/headless/courses/{id}

Use this endpoint to get a course by ID.

Path parameters

FieldDescriptionOptions
idCourse ID N/A

Responses

CodeDescription
default

Get a signed URL for a course

GET /api/v1/headless/course/{action}

Use this endpoint to get a signed URL for a course. This URL can be used to embed the Coassemble interface into your application within an iframe.

Note that the edit action is only available to workspaces that have access to Headless course creation.

In edit mode, you can specify the flow to open the course builder with:

FlowDescription
ai Open course builder with the AI flow. This flow will guide the user through creating a course using our AI-powered course creation tool.
document Open course builder with the document flow. This flow will guide the user through creating a course by converting a document.
presentation Open course builder with the convert presentation flow. This flow will allow the user to convert a presentation to a course maintaining the original presentation structure and wording.
preview Open course builder in preview-only mode. This flow will allow the user to preview a course without being able to edit it.

Path parameters

FieldDescriptionOptions
actionAction to perform N/A

Query parameters

FieldTypeDescriptionRequiredDefaultOptions
idintegerCourse ID. If not provided for edit action, will return a URL for a new course.No N/A N/A
identifierstringIdentifier for your user. In view mode will be used to track progress. In edit mode will be used to track course creation.Yes N/A N/A
clientIdentifierstringIdentify a client or group your user may belong to. Useful for multi-tenant situations where you would later like to differentiate between client's courses.No N/A N/A
flowstringFor edit mode, used to start the course builder in either the generate with AI or convert a document flow.No N/A ai  document  presentation  preview 
backstringFor edit mode, used to customise the back button behavior. In `event` mode it emits an event for your application to handle. In `hidden` mode the back button will not be shown.No"event"hidden  event 
colorPrimarystringFor edit mode, used to theme the course builder with a primary color.No N/A N/A
translationsbooleanFor edit mode, opt in to allowing translations to be applied in the course builder.Nofalse N/A

Responses

CodeDescription
200Presigned URL to embed

Duplicate a course
Requires Headless course creation

POST /api/v1/headless/course/{id}/duplicate

Use this endpoint to duplicate an existing course.

You can optionally provide an identifier and clientIdentifier to assign the duplicated course to a new client or user within your environment.

Path parameters

FieldDescriptionOptions
idCourse ID N/A

Body properties

FieldTypeDescriptionRequiredOptions
identifierstringNo N/A
clientIdentifierstringNo N/A

Responses

CodeDescription
200Course created

Delete course

DELETE /api/v1/headless/course/{id}

Use this endpoint to delete an existing course.

Path parameters

FieldDescriptionOptions
idCourse ID N/A

Responses

CodeDescription
200Course deleted

Export SCORM
Requires Headless course creation

GET /api/v1/headless/course/scorm/{id}

Note that this endpoint is designed for you to give your users a way to export their course as a SCORM package for use in a third party LMS. It is not recommended that you use this endpoint instead of Headless signed URLs for embedding courses.

Use this endpoint to export a SCORM package for a course.

Path parameters

FieldDescriptionOptions
idCourse ID N/A

Responses

CodeDescription
default