Skip to main content
POST
/
auth
/
login
{
  "success": false,
  "error": {
    "status": 401,
    "code": "INVALID_CREDENTIALS",
    "message": "Invalid login credentials"
  },
  "data": null
}
Login with email and password to get a JWT token.
email
string
required
User’s email address
password
string
required
User’s password
success
boolean
Indicates if the request was successful
data.token
string
JWT token for authenticated requests
error
object
Error details if the request failed

Example Request

curl -X POST https://api.transaction.gg/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "password123"
  }'

Example Response

{
  "success": true,
  "error": null,
  "data": {
    "token": "jwt_token"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 401,
    "code": "INVALID_CREDENTIALS",
    "message": "Invalid login credentials"
  },
  "data": null
}