> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transaction.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Login

> Login with email and password

Login with email and password to get a JWT token.

<ParamField path="email" type="string" required>
  User's email address
</ParamField>

<ParamField path="password" type="string" required>
  User's password
</ParamField>

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data.token" type="string">
  JWT token for authenticated requests
</ResponseField>

<ResponseField name="error" type="object">
  Error details if the request failed
</ResponseField>

## Example Request

```bash theme={null}
curl -X POST https://api.transaction.gg/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "password123"
  }'
```

## Example Response

```json theme={null}
{
  "success": true,
  "error": null,
  "data": {
    "token": "jwt_token"
  }
}
```

## Error Responses

<ResponseExample name="Invalid Credentials">
  ```json theme={null}
  {
    "success": false,
    "error": {
      "status": 401,
      "code": "INVALID_CREDENTIALS",
      "message": "Invalid login credentials"
    },
    "data": null
  }
  ```
</ResponseExample>
