POST
/v1/auth/register
curl \
--request POST 'https://api-dev.classmanager.io/v1/auth/register' \
--header "Content-Type: application/json" \
--data '{"firstname":"John","lastname":"Doe","email":"john@example.com","password":"********"}'
Request examples
{
"firstname": "John",
"lastname": "Doe",
"email": "john@example.com",
"password": "********"
}
Response examples (200)
{
"user": {
"id": "usr_123123123123",
"firstname": "John",
"lastname": "Doe",
"email": "new Email(john@example.com)",
"emailVerifiedAt": "2023-11-08 14:05:51"
},
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"
}