Docs

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.

GET/v1/headless/clients

Query parameters

FieldTypeRequiredDefaultDescriptionOptions
lengthstring | integerNo100Maximum number of clients to return (max 100)—
pagestring | integerNo0Zero-indexed page number—

Get client

Use this endpoint to get a client by identifier.

GET/v1/headless/client/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour 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.

GET/v1/headless/users

Query parameters

FieldTypeRequiredDefaultDescriptionOptions
lengthstring | integerNo100Maximum number of users to return (max 100)—
pagestring | integerNo0Zero-indexed page number—
clientIdentifierstringNo—Filter users by the headless client they belong to—
creatorbooleanNo—When true, return only creators; when false, only non-creators—

Get user

Use this endpoint to get a user by identifier.

GET/v1/headless/user/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour stable user identifier—

Update client

Use this endpoint to update a client's metadata.

PUT/v1/headless/client/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour stable client identifier. Do not use personal data such as names or email addresses: this identifier is kept after deletion.—

Body parameters

FieldTypeRequiredDescOptions
metadataobjectNoArbitrary 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.

DELETE/v1/headless/client/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour 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_EXCEEDED or 403 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.
POST/v1/headless/client/{identifier}/restore

Path parameters

FieldDescriptionOptions
identifierThe 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.

PUT/v1/headless/user/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour stable user identifier—

Body parameters

FieldTypeRequiredDescOptions
clientIdentifierstringNoThe client this user belongs to—
metadataobjectNoArbitrary metadata for the user. Replaces the existing metadata; the stored name and avatar are kept unless set here or by name/avatar.—
namestringNoDisplay name (shorthand for metadata.name)—
avatarstringNoAvatar 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.

DELETE/v1/headless/user/{identifier}

Path parameters

FieldDescriptionOptions
identifierYour stable user identifier—

Query parameters

FieldTypeRequiredDefaultDescriptionOptions
clientIdentifierstringNo—Restrict the operation to a specific client—
actionstringNo—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
reallocateTostringNo—When action=reallocate, the user identifier to reassign authored courses to—