# Collections

Collections group courses into curated learning paths. You can list, retrieve, create, update, delete, and restore collections.

Collection share traits like `identified` and `private` apply to the **share link only**, not to **embeddables**. Embeddables get the learner identifier from the embed token, not these flags.

<a id="get-collections"></a>

## Get collections

Use this endpoint to get a paginated list of collections.

GET `/v1/headless/collections`

#### Query parameters

| Field | Type | Required | Default | Description | Options |
| --- | --- | --- | --- | --- | --- |
| `identifier` | `string` | No | — | Filter to collections owned by a specific user identifier | — |
| `clientIdentifier` | `string` | No | — | Filter to collections belonging to a specific client | — |
| `length` | `string \| integer` | No | `100` | Maximum number of collections to return (max 100) | — |
| `page` | `string \| integer` | No | `0` | Zero-indexed page number | — |
| `deleted` | `boolean` | No | `false` | Include soft-deleted collections | — |

#### Examples

**cURL request**

```bash
curl --request GET \
  --url "https://api.coassemble.com/api/v1/headless/collections?identifier=user_123&clientIdentifier=client_123&length=100&page=0&deleted=false" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

#### Response

**JSON response**

```json
[
  {
    "id": 1234,
    "clientId": 1234,
    "title": "Workplace Safety",
    "description": "example",
    "key": "abc123",
    "active": false,
    "identifier": "user_123",
    "clientIdentifier": "client_123",
    "paid": false,
    "price": 1,
    "identified": false,
    "private": false,
    "domain": false,
    "themeId": 1234,
    "courses": [
      {
        "createdInTestMode": false,
        "reviewKey": "example",
        "id": 1234,
        "title": "Workplace Safety",
        "description": "example",
        "image": "example",
        "imageAltText": "example",
        "imageSource": 1,
        "thumbnail": "example",
        "thumbnailRevision": "example",
        "thumbnailOutdated": false,
        "start": null,
        "timeEstimateMinutes": 1,
        "calculatedTimeEstimateMinutes": 1,
        "timeEstimateExcluded": [
          {
            "type": "audio",
            "count": 12
          }
        ],
        "finish": null,
        "theme": null,
        "clientId": 1234,
        "active": false,
        "identified": false,
        "private": false,
        "paid": false,
        "domain": false,
        "price": 1,
        "key": "abc123",
        "source": "example",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "language": "en",
        "revision": "example",
        "collabSeq": 1,
        "published": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "narrationLanguage": "en",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "type": "example",
        "legacy": false,
        "documentFlow": "example",
        "deleted": "2026-01-01T00:00:00.000Z",
        "folderId": 1234,
        "parentId": 1234,
        "themeId": 1234,
        "draftId": 1234,
        "startScreenId": 1234,
        "finishScreenId": 1234,
        "sequence": 1,
        "screens": [
          {
            "quizAttemptId": 1234,
            "id": 1234,
            "uid": "example",
            "sequence": 1,
            "title": "Workplace Safety",
            "description": "example",
            "asset": "example",
            "assetAltText": "example",
            "assetSource": 1,
            "typeId": 1234,
            "background": null,
            "courseId": 1234,
            "clientId": 1234,
            "sourceId": 1234,
            "scored": false,
            "passingGrade": 1,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "updatedText": "2026-01-01T00:00:00.000Z",
            "narrationsGenerated": "2026-01-01T00:00:00.000Z",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "deleted": "2026-01-01T00:00:00.000Z",
            "identifier": "user_123",
            "clientIdentifier": "client_123",
            "quizGroupUid": "example",
            "type": {
              "id": 1234,
              "name": "example",
              "title": "Workplace Safety",
              "icon": "example",
              "sequence": 1,
              "completable": false,
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            },
            "questions": [
              {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            ],
            "blocks": [
              {
                "id": 1234,
                "screenId": 1234,
                "uid": "example",
                "type": "example",
                "content": "example",
                "column": 1,
                "row": 1,
                "columnSpan": 1,
                "rowSpan": 1,
                "sequence": 1,
                "revision": 1,
                "questionId": 1234,
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "question": {
                  "id": 1234,
                  "screenId": 1234,
                  "sequence": 1,
                  "text": "example",
                  "typeId": 1234,
                  "sourceId": 1234,
                  "caseSensitive": false,
                  "serverGraded": false,
                  "correct": false,
                  "completed": false,
                  "matchOptions": [
                    "example"
                  ],
                  "narrationAudioPath": "example",
                  "aiGenerated": "2026-01-01T00:00:00.000Z",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z",
                  "questionType": {
                    "id": 1234,
                    "title": "Workplace Safety",
                    "klass": "example",
                    "template": "example",
                    "created": "2026-01-01T00:00:00.000Z",
                    "updated": "2026-01-01T00:00:00.000Z"
                  }
                }
              }
            ]
          }
        ],
        "folder": {
          "id": 1234,
          "clientId": 1234,
          "name": "example",
          "colour": "example",
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z"
        },
        "courseTheme": {
          "id": 1234,
          "name": "example",
          "logoId": 1234,
          "default": false,
          "logo": {
            "id": 1234,
            "path": "example",
            "name": "example"
          },
          "clientId": 1234,
          "clientIdentifier": "client_123",
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "startScreen": {
          "quizAttemptId": 1234,
          "id": 1234,
          "uid": "example",
          "sequence": 1,
          "title": "Workplace Safety",
          "description": "example",
          "asset": "example",
          "assetAltText": "example",
          "assetSource": 1,
          "typeId": 1234,
          "background": null,
          "courseId": 1234,
          "clientId": 1234,
          "sourceId": 1234,
          "scored": false,
          "passingGrade": 1,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "updatedText": "2026-01-01T00:00:00.000Z",
          "narrationsGenerated": "2026-01-01T00:00:00.000Z",
          "aiGenerated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z",
          "identifier": "user_123",
          "clientIdentifier": "client_123",
          "quizGroupUid": "example",
          "type": {
            "id": 1234,
            "name": "example",
            "title": "Workplace Safety",
            "icon": "example",
            "sequence": 1,
            "completable": false,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z"
          },
          "questions": [
            {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          ],
          "blocks": [
            {
              "id": 1234,
              "screenId": 1234,
              "uid": "example",
              "type": "example",
              "content": "example",
              "column": 1,
              "row": 1,
              "columnSpan": 1,
              "rowSpan": 1,
              "sequence": 1,
              "revision": 1,
              "questionId": 1234,
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "question": {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            }
          ]
        },
        "finishScreen": {
          "quizAttemptId": 1234,
          "id": 1234,
          "uid": "example",
          "sequence": 1,
          "title": "Workplace Safety",
          "description": "example",
          "asset": "example",
          "assetAltText": "example",
          "assetSource": 1,
          "typeId": 1234,
          "background": null,
          "courseId": 1234,
          "clientId": 1234,
          "sourceId": 1234,
          "scored": false,
          "passingGrade": 1,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "updatedText": "2026-01-01T00:00:00.000Z",
          "narrationsGenerated": "2026-01-01T00:00:00.000Z",
          "aiGenerated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z",
          "identifier": "user_123",
          "clientIdentifier": "client_123",
          "quizGroupUid": "example",
          "type": {
            "id": 1234,
            "name": "example",
            "title": "Workplace Safety",
            "icon": "example",
            "sequence": 1,
            "completable": false,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z"
          },
          "questions": [
            {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          ],
          "blocks": [
            {
              "id": 1234,
              "screenId": 1234,
              "uid": "example",
              "type": "example",
              "content": "example",
              "column": 1,
              "row": 1,
              "columnSpan": 1,
              "rowSpan": 1,
              "sequence": 1,
              "revision": 1,
              "questionId": 1234,
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "question": {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            }
          ]
        },
        "translations": [
          "example"
        ],
        "translationCount": 12
      }
    ],
    "created": "2026-01-01T00:00:00.000Z",
    "updated": "2026-01-01T00:00:00.000Z",
    "deleted": "2026-01-01T00:00:00.000Z"
  }
]
```

<a id="get-collection"></a>

## Get collection

Use this endpoint to get a collection by ID.

GET `/v1/headless/collections/{id}`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Examples

**cURL request**

```bash
curl --request GET \
  --url "https://api.coassemble.com/api/v1/headless/collections/1234" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

#### Response

**JSON response**

```json
{
  "id": 1234,
  "clientId": 1234,
  "title": "Workplace Safety",
  "description": "example",
  "key": "abc123",
  "active": false,
  "identifier": "user_123",
  "clientIdentifier": "client_123",
  "paid": false,
  "price": 1,
  "identified": false,
  "private": false,
  "domain": false,
  "themeId": 1234,
  "courses": [
    {
      "createdInTestMode": false,
      "reviewKey": "example",
      "id": 1234,
      "title": "Workplace Safety",
      "description": "example",
      "image": "example",
      "imageAltText": "example",
      "imageSource": 1,
      "thumbnail": "example",
      "thumbnailRevision": "example",
      "thumbnailOutdated": false,
      "start": null,
      "timeEstimateMinutes": 1,
      "calculatedTimeEstimateMinutes": 1,
      "timeEstimateExcluded": [
        {
          "type": "audio",
          "count": 12
        }
      ],
      "finish": null,
      "theme": null,
      "clientId": 1234,
      "active": false,
      "identified": false,
      "private": false,
      "paid": false,
      "domain": false,
      "price": 1,
      "key": "abc123",
      "source": "example",
      "identifier": "user_123",
      "clientIdentifier": "client_123",
      "language": "en",
      "revision": "example",
      "collabSeq": 1,
      "published": "2026-01-01T00:00:00.000Z",
      "narrationsGenerated": "2026-01-01T00:00:00.000Z",
      "narrationLanguage": "en",
      "created": "2026-01-01T00:00:00.000Z",
      "updated": "2026-01-01T00:00:00.000Z",
      "type": "example",
      "legacy": false,
      "documentFlow": "example",
      "deleted": "2026-01-01T00:00:00.000Z",
      "folderId": 1234,
      "parentId": 1234,
      "themeId": 1234,
      "draftId": 1234,
      "startScreenId": 1234,
      "finishScreenId": 1234,
      "sequence": 1,
      "screens": [
        {
          "quizAttemptId": 1234,
          "id": 1234,
          "uid": "example",
          "sequence": 1,
          "title": "Workplace Safety",
          "description": "example",
          "asset": "example",
          "assetAltText": "example",
          "assetSource": 1,
          "typeId": 1234,
          "background": null,
          "courseId": 1234,
          "clientId": 1234,
          "sourceId": 1234,
          "scored": false,
          "passingGrade": 1,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "updatedText": "2026-01-01T00:00:00.000Z",
          "narrationsGenerated": "2026-01-01T00:00:00.000Z",
          "aiGenerated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z",
          "identifier": "user_123",
          "clientIdentifier": "client_123",
          "quizGroupUid": "example",
          "type": {
            "id": 1234,
            "name": "example",
            "title": "Workplace Safety",
            "icon": "example",
            "sequence": 1,
            "completable": false,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z"
          },
          "questions": [
            {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          ],
          "blocks": [
            {
              "id": 1234,
              "screenId": 1234,
              "uid": "example",
              "type": "example",
              "content": "example",
              "column": 1,
              "row": 1,
              "columnSpan": 1,
              "rowSpan": 1,
              "sequence": 1,
              "revision": 1,
              "questionId": 1234,
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "question": {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            }
          ]
        }
      ],
      "folder": {
        "id": 1234,
        "clientId": 1234,
        "name": "example",
        "colour": "example",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z"
      },
      "courseTheme": {
        "id": 1234,
        "name": "example",
        "logoId": 1234,
        "default": false,
        "logo": {
          "id": 1234,
          "path": "example",
          "name": "example"
        },
        "clientId": 1234,
        "clientIdentifier": "client_123",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z"
      },
      "startScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "finishScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "translations": [
        "example"
      ],
      "translationCount": 12
    }
  ],
  "created": "2026-01-01T00:00:00.000Z",
  "updated": "2026-01-01T00:00:00.000Z",
  "deleted": "2026-01-01T00:00:00.000Z"
}
```

<a id="create-collection"></a>

## Create collection

Use this endpoint to create a new collection.

Optional share-link gates: `identified`, `private`, `domain`, `domains`, and `emails`. These control who can open the collection share link. They do not apply to embeddables.

POST `/v1/headless/collection`

#### Body parameters

| Field | Type | Required | Desc | Options |
| --- | --- | --- | --- | --- |
| `title` | `string` | Yes | Title shown to learners | — |
| `description` | `string \| null` | No | Description shown on the collection landing screen | — |
| `identifier` | `string` | No | Your stable identifier for the collection owner | — |
| `clientIdentifier` | `string` | No | The client this collection belongs to | — |
| `themeId` | `number \| null` | No | Theme ID applied to the collection | — |
| `courseIds` | `number[]` | No | Initial course IDs to include, in display order | — |
| `identified` | `boolean` | No | Share-link gate: learners must identify (typically by email) before opening the collection share link. Does not apply to embeddables. | — |
| `private` | `boolean` | No | Share-link gate: only invited emails can open the collection share link. Does not apply to embeddables. | — |
| `domain` | `boolean` | No | Share-link gate: only learners on approved email domains can open the collection share link. Does not apply to embeddables. | — |
| `domains` | `string[]` | No | Share-link gate: approved email domains for the collection share link. Does not apply to embeddables. | — |
| `emails` | `string[]` | No | Share-link gate: invited learner emails for the collection share link. Does not apply to embeddables. | — |

#### Examples

**cURL request**

```bash
curl --request POST \
  --url "https://api.coassemble.com/api/v1/headless/collection" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "title": "Workplace Safety",
    "description": "example",
    "identifier": "user_123",
    "clientIdentifier": "client_123"
}'
```

#### Response

**JSON response**

```json
{
  "id": 1234,
  "clientId": 1234,
  "title": "Workplace Safety",
  "description": "example",
  "key": "abc123",
  "active": false,
  "identifier": "user_123",
  "clientIdentifier": "client_123",
  "paid": false,
  "price": 1,
  "identified": false,
  "private": false,
  "domain": false,
  "themeId": 1234,
  "courses": [
    {
      "createdInTestMode": false,
      "reviewKey": "example",
      "id": 1234,
      "title": "Workplace Safety",
      "description": "example",
      "image": "example",
      "imageAltText": "example",
      "imageSource": 1,
      "thumbnail": "example",
      "thumbnailRevision": "example",
      "thumbnailOutdated": false,
      "start": null,
      "timeEstimateMinutes": 1,
      "calculatedTimeEstimateMinutes": 1,
      "timeEstimateExcluded": [
        {
          "type": "audio",
          "count": 12
        }
      ],
      "finish": null,
      "theme": null,
      "clientId": 1234,
      "active": false,
      "identified": false,
      "private": false,
      "paid": false,
      "domain": false,
      "price": 1,
      "key": "abc123",
      "source": "example",
      "identifier": "user_123",
      "clientIdentifier": "client_123",
      "language": "en",
      "revision": "example",
      "collabSeq": 1,
      "published": "2026-01-01T00:00:00.000Z",
      "narrationsGenerated": "2026-01-01T00:00:00.000Z",
      "narrationLanguage": "en",
      "created": "2026-01-01T00:00:00.000Z",
      "updated": "2026-01-01T00:00:00.000Z",
      "type": "example",
      "legacy": false,
      "documentFlow": "example",
      "deleted": "2026-01-01T00:00:00.000Z",
      "folderId": 1234,
      "parentId": 1234,
      "themeId": 1234,
      "draftId": 1234,
      "startScreenId": 1234,
      "finishScreenId": 1234,
      "sequence": 1,
      "screens": [
        {
          "quizAttemptId": 1234,
          "id": 1234,
          "uid": "example",
          "sequence": 1,
          "title": "Workplace Safety",
          "description": "example",
          "asset": "example",
          "assetAltText": "example",
          "assetSource": 1,
          "typeId": 1234,
          "background": null,
          "courseId": 1234,
          "clientId": 1234,
          "sourceId": 1234,
          "scored": false,
          "passingGrade": 1,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "updatedText": "2026-01-01T00:00:00.000Z",
          "narrationsGenerated": "2026-01-01T00:00:00.000Z",
          "aiGenerated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z",
          "identifier": "user_123",
          "clientIdentifier": "client_123",
          "quizGroupUid": "example",
          "type": {
            "id": 1234,
            "name": "example",
            "title": "Workplace Safety",
            "icon": "example",
            "sequence": 1,
            "completable": false,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z"
          },
          "questions": [
            {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          ],
          "blocks": [
            {
              "id": 1234,
              "screenId": 1234,
              "uid": "example",
              "type": "example",
              "content": "example",
              "column": 1,
              "row": 1,
              "columnSpan": 1,
              "rowSpan": 1,
              "sequence": 1,
              "revision": 1,
              "questionId": 1234,
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "question": {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            }
          ]
        }
      ],
      "folder": {
        "id": 1234,
        "clientId": 1234,
        "name": "example",
        "colour": "example",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z"
      },
      "courseTheme": {
        "id": 1234,
        "name": "example",
        "logoId": 1234,
        "default": false,
        "logo": {
          "id": 1234,
          "path": "example",
          "name": "example"
        },
        "clientId": 1234,
        "clientIdentifier": "client_123",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z"
      },
      "startScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "finishScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "translations": [
        "example"
      ],
      "translationCount": 12
    }
  ],
  "created": "2026-01-01T00:00:00.000Z",
  "updated": "2026-01-01T00:00:00.000Z",
  "deleted": "2026-01-01T00:00:00.000Z"
}
```

<a id="update-collection"></a>

## Update collection

Use this endpoint to update an existing collection's metadata and share-link gates.

You can set `title`, `description`, `identifier`, `clientIdentifier`, `themeId`, and the share-link gates `identified`, `private`, `domain`, `domains`, and `emails`. This endpoint does not change which courses are in the collection.

PUT `/v1/headless/collection/{id}`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Body parameters

| Field | Type | Required | Desc | Options |
| --- | --- | --- | --- | --- |
| `title` | `string` | No | Title shown to learners | — |
| `description` | `string \| null` | No | Description shown on the collection landing screen | — |
| `identifier` | `string` | No | Your stable identifier for the collection owner | — |
| `clientIdentifier` | `string` | No | The client this collection belongs to | — |
| `themeId` | `number \| null` | No | Theme ID applied to the collection | — |
| `identified` | `boolean` | No | Share-link gate: learners must identify (typically by email) before opening the collection share link. Does not apply to embeddables. | — |
| `private` | `boolean` | No | Share-link gate: only invited emails can open the collection share link. Does not apply to embeddables. | — |
| `domain` | `boolean` | No | Share-link gate: only learners on approved email domains can open the collection share link. Does not apply to embeddables. | — |
| `domains` | `string[]` | No | Share-link gate: approved email domains for the collection share link. Does not apply to embeddables. | — |
| `emails` | `string[]` | No | Share-link gate: invited learner emails for the collection share link. Does not apply to embeddables. | — |

#### Examples

**cURL request**

```bash
curl --request PUT \
  --url "https://api.coassemble.com/api/v1/headless/collection/1234" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "title": "Workplace Safety",
    "description": "example",
    "identifier": "user_123",
    "clientIdentifier": "client_123"
}'
```

#### Response

**JSON response**

```json
{
  "id": 1234,
  "clientId": 1234,
  "title": "Workplace Safety",
  "description": "example",
  "key": "abc123",
  "active": false,
  "identifier": "user_123",
  "clientIdentifier": "client_123",
  "paid": false,
  "price": 1,
  "identified": false,
  "private": false,
  "domain": false,
  "themeId": 1234,
  "courses": [
    {
      "createdInTestMode": false,
      "reviewKey": "example",
      "id": 1234,
      "title": "Workplace Safety",
      "description": "example",
      "image": "example",
      "imageAltText": "example",
      "imageSource": 1,
      "thumbnail": "example",
      "thumbnailRevision": "example",
      "thumbnailOutdated": false,
      "start": null,
      "timeEstimateMinutes": 1,
      "calculatedTimeEstimateMinutes": 1,
      "timeEstimateExcluded": [
        {
          "type": "audio",
          "count": 12
        }
      ],
      "finish": null,
      "theme": null,
      "clientId": 1234,
      "active": false,
      "identified": false,
      "private": false,
      "paid": false,
      "domain": false,
      "price": 1,
      "key": "abc123",
      "source": "example",
      "identifier": "user_123",
      "clientIdentifier": "client_123",
      "language": "en",
      "revision": "example",
      "collabSeq": 1,
      "published": "2026-01-01T00:00:00.000Z",
      "narrationsGenerated": "2026-01-01T00:00:00.000Z",
      "narrationLanguage": "en",
      "created": "2026-01-01T00:00:00.000Z",
      "updated": "2026-01-01T00:00:00.000Z",
      "type": "example",
      "legacy": false,
      "documentFlow": "example",
      "deleted": "2026-01-01T00:00:00.000Z",
      "folderId": 1234,
      "parentId": 1234,
      "themeId": 1234,
      "draftId": 1234,
      "startScreenId": 1234,
      "finishScreenId": 1234,
      "sequence": 1,
      "screens": [
        {
          "quizAttemptId": 1234,
          "id": 1234,
          "uid": "example",
          "sequence": 1,
          "title": "Workplace Safety",
          "description": "example",
          "asset": "example",
          "assetAltText": "example",
          "assetSource": 1,
          "typeId": 1234,
          "background": null,
          "courseId": 1234,
          "clientId": 1234,
          "sourceId": 1234,
          "scored": false,
          "passingGrade": 1,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z",
          "updatedText": "2026-01-01T00:00:00.000Z",
          "narrationsGenerated": "2026-01-01T00:00:00.000Z",
          "aiGenerated": "2026-01-01T00:00:00.000Z",
          "deleted": "2026-01-01T00:00:00.000Z",
          "identifier": "user_123",
          "clientIdentifier": "client_123",
          "quizGroupUid": "example",
          "type": {
            "id": 1234,
            "name": "example",
            "title": "Workplace Safety",
            "icon": "example",
            "sequence": 1,
            "completable": false,
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z"
          },
          "questions": [
            {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          ],
          "blocks": [
            {
              "id": 1234,
              "screenId": 1234,
              "uid": "example",
              "type": "example",
              "content": "example",
              "column": 1,
              "row": 1,
              "columnSpan": 1,
              "rowSpan": 1,
              "sequence": 1,
              "revision": 1,
              "questionId": 1234,
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "question": {
                "id": 1234,
                "screenId": 1234,
                "sequence": 1,
                "text": "example",
                "typeId": 1234,
                "sourceId": 1234,
                "caseSensitive": false,
                "serverGraded": false,
                "correct": false,
                "completed": false,
                "matchOptions": [
                  "example"
                ],
                "narrationAudioPath": "example",
                "aiGenerated": "2026-01-01T00:00:00.000Z",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z",
                "questionType": {
                  "id": 1234,
                  "title": "Workplace Safety",
                  "klass": "example",
                  "template": "example",
                  "created": "2026-01-01T00:00:00.000Z",
                  "updated": "2026-01-01T00:00:00.000Z"
                }
              }
            }
          ]
        }
      ],
      "folder": {
        "id": 1234,
        "clientId": 1234,
        "name": "example",
        "colour": "example",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z"
      },
      "courseTheme": {
        "id": 1234,
        "name": "example",
        "logoId": 1234,
        "default": false,
        "logo": {
          "id": 1234,
          "path": "example",
          "name": "example"
        },
        "clientId": 1234,
        "clientIdentifier": "client_123",
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z"
      },
      "startScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "finishScreen": {
        "quizAttemptId": 1234,
        "id": 1234,
        "uid": "example",
        "sequence": 1,
        "title": "Workplace Safety",
        "description": "example",
        "asset": "example",
        "assetAltText": "example",
        "assetSource": 1,
        "typeId": 1234,
        "background": null,
        "courseId": 1234,
        "clientId": 1234,
        "sourceId": 1234,
        "scored": false,
        "passingGrade": 1,
        "created": "2026-01-01T00:00:00.000Z",
        "updated": "2026-01-01T00:00:00.000Z",
        "updatedText": "2026-01-01T00:00:00.000Z",
        "narrationsGenerated": "2026-01-01T00:00:00.000Z",
        "aiGenerated": "2026-01-01T00:00:00.000Z",
        "deleted": "2026-01-01T00:00:00.000Z",
        "identifier": "user_123",
        "clientIdentifier": "client_123",
        "quizGroupUid": "example",
        "type": {
          "id": 1234,
          "name": "example",
          "title": "Workplace Safety",
          "icon": "example",
          "sequence": 1,
          "completable": false,
          "created": "2026-01-01T00:00:00.000Z",
          "updated": "2026-01-01T00:00:00.000Z"
        },
        "questions": [
          {
            "id": 1234,
            "screenId": 1234,
            "sequence": 1,
            "text": "example",
            "typeId": 1234,
            "sourceId": 1234,
            "caseSensitive": false,
            "serverGraded": false,
            "correct": false,
            "completed": false,
            "matchOptions": [
              "example"
            ],
            "narrationAudioPath": "example",
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "questionType": {
              "id": 1234,
              "title": "Workplace Safety",
              "klass": "example",
              "template": "example",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z"
            }
          }
        ],
        "blocks": [
          {
            "id": 1234,
            "screenId": 1234,
            "uid": "example",
            "type": "example",
            "content": "example",
            "column": 1,
            "row": 1,
            "columnSpan": 1,
            "rowSpan": 1,
            "sequence": 1,
            "revision": 1,
            "questionId": 1234,
            "aiGenerated": "2026-01-01T00:00:00.000Z",
            "created": "2026-01-01T00:00:00.000Z",
            "updated": "2026-01-01T00:00:00.000Z",
            "question": {
              "id": 1234,
              "screenId": 1234,
              "sequence": 1,
              "text": "example",
              "typeId": 1234,
              "sourceId": 1234,
              "caseSensitive": false,
              "serverGraded": false,
              "correct": false,
              "completed": false,
              "matchOptions": [
                "example"
              ],
              "narrationAudioPath": "example",
              "aiGenerated": "2026-01-01T00:00:00.000Z",
              "created": "2026-01-01T00:00:00.000Z",
              "updated": "2026-01-01T00:00:00.000Z",
              "questionType": {
                "id": 1234,
                "title": "Workplace Safety",
                "klass": "example",
                "template": "example",
                "created": "2026-01-01T00:00:00.000Z",
                "updated": "2026-01-01T00:00:00.000Z"
              }
            }
          }
        ]
      },
      "translations": [
        "example"
      ],
      "translationCount": 12
    }
  ],
  "created": "2026-01-01T00:00:00.000Z",
  "updated": "2026-01-01T00:00:00.000Z",
  "deleted": "2026-01-01T00:00:00.000Z"
}
```

<a id="delete-collection"></a>

## Delete collection

Use this endpoint to soft-delete a collection by ID. It can be restored with the restore endpoint. Closing the workspace or the customer removes it permanently.

DELETE `/v1/headless/collection/{id}`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Examples

**cURL request**

```bash
curl --request DELETE \
  --url "https://api.coassemble.com/api/v1/headless/collection/1234" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

#### Response

**JSON response**

```json
false
```

<a id="restore-collection"></a>

## Restore collection

Restore a soft-deleted collection by ID. If its customer was deleted, create a customer in the same workspace with the same identifier and call this endpoint before the restore deadline. The collection keeps its ID and original creation date. Playback resumes. The old customer and its users stay deleted.

Without a replacement, `409 CUSTOMER_DELETED` gives the deadline and recovery options, including [restoring the whole customer](/api/identities#restore-client) when available. The window ends at the workspace retention period (30 days for keep forever) or an earlier purge deadline. Permanently deleted content cannot be restored. If an earlier purge left no record of which collections lost invitations or access, the endpoint returns 409 and directs you to support.

POST `/v1/headless/collection/{id}/restore`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Examples

**cURL request**

```bash
curl --request POST \
  --url "https://api.coassemble.com/api/v1/headless/collection/1234/restore" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

#### Response

**JSON response**

```json
false
```

<a id="export-scorm"></a>

## Export SCORM

Use this endpoint to let users export a collection for a third party LMS. Use signed URLs to embed collections in your product. [See recommended alternative →](/embeddables/collection-player)

Download a SCORM 1.2 or 2004 package with one SCO per course in the collection.

The default `type=dynamic` package works on every plan. `type=static` (Standalone SCORM) needs the Standalone SCORM add-on, available to Partner customers on approved request.

GET `/v1/headless/collection/scorm/{id}`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Query parameters

| Field | Type | Required | Default | Description | Options |
| --- | --- | --- | --- | --- | --- |
| `type` | `string` | No | — | dynamic (default) or static SCORM package type | `dynamic` `static` |
| `version` | `string` | No | — | SCORM version (default 2004) | `1.2` `2004` |

#### Examples

**cURL request**

```bash
curl --request GET \
  --url "https://api.coassemble.com/api/v1/headless/collection/scorm/1234?type=dynamic&version=1.2" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

Before downloading a Standalone SCORM package, call the estimate endpoint for its size and whether it exceeds the export cap. It accepts only `type=static` and includes per-course and shared-file breakdowns.

GET `/v1/headless/collection/scorm/{id}/estimate`

#### Path parameters

| Field | Description | Options |
| --- | --- | --- |
| `id` | Collection ID | — |

#### Query parameters

| Field | Type | Required | Default | Description | Options |
| --- | --- | --- | --- | --- | --- |
| `type` | `string` | No | — | static SCORM package type | `dynamic` `static` |
| `version` | `string` | No | — | SCORM version (default 2004) | `1.2` `2004` |

#### Examples

**cURL request**

```bash
curl --request GET \
  --url "https://api.coassemble.com/api/v1/headless/collection/scorm/1234/estimate?type=dynamic&version=1.2" \
  --header "Authorization: COASSEMBLE:YOUR_WORKSPACE_ID:YOUR_API_KEY"
```

For unscored quiz reporting, see [Export SCORM](/api/courses#export-scorm) in the Courses API.
