cURL
curl --request POST \ --url https://api.example.com/api/v2/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
Аутентификация по email и паролю
curl -X POST https://neuralbox.top/api/v2/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "user@example.com", "password": "your_password"}'
{ "access_token": "eyJhbGciOiJIUzI1NiJ9...", "refresh_token": "eyJhbGciOiJIUzI1NiJ9...", "token_type": "bearer", "user": { "id": 12345, "email": "user@example.com", "username": "user", "plan": "pro", "token_balance": 543 } }
access_token
refresh_token
401
403
429