Skip to main content
POST
/
login
User login
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com",
  "password": "secret123"
}
'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "user": {}
}

Body

application/json
email
string<email>
required
Example:

"user@example.com"

password
string<password>
required
Example:

"secret123"

Response

Login successful

access_token
string
token_type
string
Example:

"Bearer"

user
object