Skip to main content
POST
/
auth
/
login
Authenticate a user
curl --request POST \
  --url https://grosh.muathye.com/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>",
  "device_name": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "email": "[email protected]",
    "base_currency_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "token": "<string>",
  "token_type": "Bearer"
}

Body

application/json
email
string<email>
required
password
string<password>
required
device_name
string | null

Response

200 - application/json

Successful response

data
object
token
string
token_type
string
Example:

"Bearer"