POST
/v1/auth/login
curl \
--request POST 'https://api.classmanager.io/v1/auth/login' \
--header "Content-Type: application/json" \
--data '{"email":"john@gmail.com","password":"********"}'
Request examples
{
"email": "john@gmail.com",
"password": "********"
}
Response examples (200)
{
"user": {
"id": "usr_123123123123",
"firstname": "John",
"lastname": "Doe",
"email": "new Email(john@example.com)",
"phone": "+1 (123) xxx-xxxx",
"emailVerifiedAt": "2023-11-08 14:05:51"
},
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}