POST /auth/login
이메일과 비밀번호로 사용자가 로그인합니다. 성공하면 이후 API 요청에 사용할 액세스·리프레시 토큰을 반환합니다.요청 본문
string
필수
사용자 이메일 주소입니다.
string
필수
계정 비밀번호입니다.
응답
boolean
로그인 성공 여부입니다.
string
사람이 읽을 수 있는 상태 메시지입니다.
object
object
curl -X POST https://api.llmgenerator.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123"
}'
const response = await fetch('https://api.llmgenerator.com/api/v1/auth/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'user@example.com',
password: 'securePassword123'
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.llmgenerator.com/api/v1/auth/login',
json={
'email': 'user@example.com',
'password': 'securePassword123'
}
)
data = response.json()
{
"success": true,
"message": "Login successful",
"user": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"name": "John Doe",
"emailVerified": true,
"updatedAt": "2026-01-29T12:00:00.000Z"
},
"tokens": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 900,
"tokenType": "Bearer"
}
}
{
"message": "Invalid email or password"
}