Login

Client

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.

Get clients

GET /api/v1/headless/clients

Use this endpoint to get a paginated list of client identifiers.

Query parameters

FieldTypeDescriptionRequiredDefaultOptions
lengthintegerNumber of results to returnNo"100" N/A
pageintegerPage numberNo"0" N/A

Responses

CodeDescription
200A list of client identifiers

Get users

GET /api/v1/headless/users

Use this endpoint to get a paginated list of users. You can optionally filter by clientIdentifier.

Query parameters

FieldTypeDescriptionRequiredDefaultOptions
lengthintegerNumber of results to returnNo"100" N/A
pageintegerPage numberNo"0" N/A
clientIdentifierstringFilter users by clientIdentifierNo N/A N/A

Responses

CodeDescription
200A list of users

Update client

PUT /api/v1/headless/client/{identifier}

Use this endpoint to update a client’s metadata.

Path parameters

FieldDescriptionOptions
identifierClient identifier N/A

Body properties

FieldTypeDescriptionRequiredOptions
metadataobjectArbitrary key value pairs to set on the clientNo N/A

Responses

CodeDescription
200Client updated
404Client not found

Delete client

DELETE /api/v1/headless/client/{identifier}

Use this endpoint to delete all objects associated with a clientIdentifier.

Path parameters

FieldDescriptionOptions
identifierClient identifier N/A

Responses

CodeDescription
200All related objects and creators deleted

Update user

PUT /api/v1/headless/user/{identifier}

Use this endpoint to update a user’s metadata.

Path parameters

FieldDescriptionOptions
identifierIdentifier N/A

Body properties

FieldTypeDescriptionRequiredOptions
clientIdentifierstringClient identifier to filter the user byNo N/A
metadataobjectArbitrary key value pairs to set on the userNo N/A

Responses

CodeDescription
200User updated
404User not found

Delete user

DELETE /api/v1/headless/user/{identifier}

Use this endpoint to delete a user by their identifier. You can choose what to do with any courses associated with this identifier.

Path parameters

FieldDescriptionOptions
identifierIdentifier N/A

Query parameters

FieldTypeDescriptionRequiredDefaultOptions
actionstringHow to handle courses allocated to this userYes N/A reallocate  delete  ignore 
reallocateTostringIf action is reallocate, the identifier to reallocate toNo N/A N/A
clientIdentifierstringOptionally provide a clientIdentifier to filter the user byNo N/A N/A

Responses

CodeDescription
200Success