cURL
curl --request POST \ --url https://api.superbox.ai/v1/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>", "remember_me": true } '
{ "user": {}, "token": "<string>", "refresh_token": "<string>", "expires_in": 123 }
POST /auth/login - Authenticate user credentials
POST /auth/login
cURL curl -X POST https://api.superbox.ai/v1/auth/login \ -H "Content-Type: application/json" \ -d '{ "email": "areeb@example.com", "password": "SecurePass123!", "remember_me": true }'
{ "user": { "id": "usr_1234567890", "email": "areeb@example.com", "username": "areeb", "avatar_url": "https://avatars.superbox.ai/areeb.jpg" }, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "rt_abcdef123456...", "expires_in": 86400 }
{ "error": "Authentication failed", "message": "Invalid email or password" }
curl https://api.superbox.ai/v1/servers \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."