Api reference
Create a user
Authorization
ApiKeyAuth x-api-key<token>
API key created in CourseLit dashboard settings. The legacy apikey request-body field is still accepted but deprecated.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://school.courselit.app/api/user" \ -H "Content-Type: application/json" \ -d '{ "email": "student@example.com", "name": "Student Example", "permissions": [ "community:manage" ], "subscribedToUpdates": true }'{
"email": "5d41402abc4b2a76b9719d911017c592"
}{
"message": "Bad request"
}{
"message": "Unauthorized"
}{
"message": "Domain not found"
}{
"error": "Internal server error"
}