API Reference
authentication
Authenticate User
Authenticates a user session and returns access & refresh tokens.
HTTP Request
POST /api/auth/login
Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
Request Body Parameters
| Field | Type | Description |
|---|---|---|
| string | The email address of the user account. Required. Example: "john@example.com" | |
| password | string | The password of the user account. Required. Example: "secretpassword" |
RESPONSE PAYLOAD
{
"success": true,
"accessToken": "eyJhbGciOiJIUzI1Ni...",
"refreshToken": "e29hN2RhNm..."
}