Documentation Index
Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /auth/login
이메일과 비밀번호로 사용자가 로그인합니다. 성공하면 이후 API 요청에 사용할 액세스·리프레시 토큰을 반환합니다.
요청 본문
인증 토큰을 담는 객체입니다.
이후 요청 인증용 액세스 토큰입니다. Authorization 헤더에 Bearer 형식으로 사용합니다. 15분 후 만료됩니다.
새 액세스 토큰 발급에 쓰이는 리프레시 토큰입니다. 7일 후 만료됩니다.
토큰 만료 시간(초 단위, 900 = 15분)입니다.
curl -X POST https://api.llmgenerator.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123"
}'
{
"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"
}
}