Skip to main content
POST
Create User
Example

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
name
string
required
email
string
required
role
enum<string> | null

"student" or "teacher". If unset, a home user will be created, unable to join classrooms.

Available options:
student,
teacher
preferredLanguage
string | null
heroConfig
UsersCreateRequestHeroConfig · object | null
birthday
string | null

Response

200 - application/json

The created user

Subset of properties listed here

_id
string | null
email
string | null
name
string | null
slug
string | null
role
string | null

Usually either 'teacher' or 'student'

stats
UserResponseStats · object | null
oAuthIdentities
UserResponseOAuthIdentitiesItem · object[] | null
subscription
UserResponseSubscription · object | null
license
UserResponseLicense · object | null