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 リクエスト用のアクセストークンおよびリフレッシュトークンが返されます。
リクエストボディ
レスポンス
ユーザー情報を含むオブジェクト。
最終更新日時の ISO 8601 タイムスタンプ。
認証トークンを含むオブジェクト。
以降のリクエスト認証用のアクセストークン。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"
}
}