Identities
Endpoints for managing clients and users. Both clients and users support metadata which can be used to store arbitrary key-value pairs. Note that when updating a client or user, metadata will replace the existing metadata and not be merged with it.
Do not use personal data such as names or email addresses as customer identifiers (clientIdentifier); the identifier is kept after deletion.
Get clients
Use this endpoint to get a paginated list of client identifiers.
/v1/headless/clientsQuery parameters
| Field | Type | Required | Default | Description | Options |
|---|---|---|---|---|---|
length | string | integer | No | 100 | Maximum number of clients to return (max 100) | — |
page | string | integer | No | 0 | Zero-indexed page number | — |
Get client
Use this endpoint to get a client by identifier.
/v1/headless/client/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable client identifier. Do not use personal data such as names or email addresses: this identifier is kept after deletion. | — |
Get users
Use this endpoint to get a paginated list of users. You can optionally filter by clientIdentifier.
Each user includes a creator flag. A creator is an identifier that has been used to build content (an edit embed or AI creation) and counts towards API seats. Pass creator=true to return only creators, or creator=false for only non-creators.
/v1/headless/usersQuery parameters
| Field | Type | Required | Default | Description | Options |
|---|---|---|---|---|---|
length | string | integer | No | 100 | Maximum number of users to return (max 100) | — |
page | string | integer | No | 0 | Zero-indexed page number | — |
clientIdentifier | string | No | — | Filter users by the headless client they belong to | — |
creator | boolean | No | — | When true, return only creators; when false, only non-creators | — |
Get user
Use this endpoint to get a user by identifier.
/v1/headless/user/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable user identifier | — |
Update client
Use this endpoint to update a client's metadata.
/v1/headless/client/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable client identifier. Do not use personal data such as names or email addresses: this identifier is kept after deletion. | — |
Body parameters
| Field | Type | Required | Desc | Options |
|---|---|---|---|---|
metadata | object | No | Arbitrary metadata to attach to the client | — |
Delete client
Use this endpoint to delete all objects associated with a clientIdentifier. The client, its users and its courses are deleted, and its courses and SCORM links are switched off.
Undo this delete with POST /v1/headless/client/{identifier}/restore before the workspace's retention period ends or permanent deletion starts.
/v1/headless/client/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable client identifier. Do not use personal data such as names or email addresses: this identifier is kept after deletion. | — |
Restore client
Use this endpoint to undo the most recent recorded delete of a client. The client, the users and courses that delete removed, and the courses and SCORM links it switched off come back as they were. Courses and users you deleted independently stay deleted.
For clients deleted before this endpoint was available, contact support to recover the whole client. To recover individual content within its deadline, create the client again with the same identifier, then restore a course or restore a collection.
A restore does not change your subscription. Seat charges the delete reversed are not re-applied automatically, and deleting the client again does not reverse them a second time.
You can restore a client until the workspace's retention period ends, counted from the delete. Workspaces that keep deleted content forever have 30 days. Restoring never extends the period. Once permanent deletion of the client's content has started, it cannot be restored, even if the retention period is lengthened afterwards.
Send the identifier URL-encoded once, exactly as when you created the client.
The response reports how many users and courses came back. activeRestored is true on success.
404: no deleted client has this identifier.409 CUSTOMER_EXISTS: a client was created again under the identifier after the delete.409 CUSTOMER_DELETE_UNRECORDED: the delete predates this endpoint or its undo record is incomplete. Contact support.409 CUSTOMER_CLOSED: Coassemble closed the client before it was deleted. Contact support.410 CUSTOMER_PURGED: the retention period has ended or permanent deletion has started.403 CLIENT_LIMIT_EXCEEDEDor403 API_SEAT_LIMIT_EXCEEDED: your plan has no room for the restored client or for the creator seats it adds.403 CLIENTS_DISABLED: clients are no longer enabled for the workspace.
/v1/headless/client/{identifier}/restorePath parameters
| Field | Description | Options |
|---|---|---|
identifier | The identifier of the deleted client, URL-encoded once | — |
Update user
Use this endpoint to update a user's metadata. Sending metadata replaces the stored metadata; the user's name and avatar are kept unless you set them. Sending only name or avatar leaves the rest of the metadata unchanged.
/v1/headless/user/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable user identifier | — |
Body parameters
| Field | Type | Required | Desc | Options |
|---|---|---|---|---|
clientIdentifier | string | No | The client this user belongs to | — |
metadata | object | No | Arbitrary metadata for the user. Replaces the existing metadata; the stored name and avatar are kept unless set here or by name/avatar. | — |
name | string | No | Display name (shorthand for metadata.name) | — |
avatar | string | No | Avatar URL (shorthand for metadata.avatar) | — |
Delete user
Use this endpoint to delete a user by their identifier. You can choose what to do with any courses associated with this identifier.
/v1/headless/user/{identifier}Path parameters
| Field | Description | Options |
|---|---|---|
identifier | Your stable user identifier | — |
Query parameters
| Field | Type | Required | Default | Description | Options |
|---|---|---|---|---|---|
clientIdentifier | string | No | — | Restrict the operation to a specific client | — |
action | string | No | — | For authored courses, use `reallocate` to transfer ownership to `reallocateTo`, `delete` to soft-delete and clear ownership, `ignore` to clear ownership, or omit this optional action to leave courses as they are. | reallocatedeleteignore |
reallocateTo | string | No | — | When action=reallocate, the user identifier to reassign authored courses to | — |