Skip to main content
POST
/
auth
/
login
Login
curl --request POST \
  --url https://api.casexchange.com/api/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>"
}
'
{
  "success": true,
  "data": {
    "user": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "[email protected]",
      "firstName": "<string>",
      "lastName": "<string>",
      "role": "<string>",
      "firmId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "isActive": true
    },
    "accessToken": "<string>",
    "refreshToken": "<string>"
  }
}
Authenticate with email and password to receive a JWT access token. The response includes user profile data and sets HttpOnly cookies for browser-based clients.

Body

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

Response

Login successful

success
boolean
data
object