Skip to main content
POST
/
api
/
login
Obtain a Bearer token
curl --request POST \
  --url https://api.mathfi.ai/api/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "your-password"
}
'
{
  "token": "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJtYXRoZmktYWkiLCJzdWIiOiJ1c2VyQGV4YW1wbGUuY29tIiwibmJmIjoxNzAwMDAwMDAwLCJleHAiOjE3MDAwMDM2MDB9.example"
}

Body

application/json
email
string<email>
required
password
string<password>
required

Response

Authentication successful

token
string
required

JWT Bearer token, valid for 1 hour