POST
/
v1
/
auth
/
login
curl --location --request POST 'https://api.lawg.dev/v1/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "",
    "password": ""
}'
{
  "success": true,
  "data": {
    "token": "session_xxxxx"
  }
}
You can not be authenticated to access this route

Body

username
string
required
The username of the user you want to login as, this could also be an email
password
string
required
The password of the user you want to login as

Response

success
boolean
Indicates whether the call was successful. true if successful, false if not.
data
object
The contents of the data object
curl --location --request POST 'https://api.lawg.dev/v1/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "",
    "password": ""
}'
{
  "success": true,
  "data": {
    "token": "session_xxxxx"
  }
}