cURL
curl --request POST \ --url https://api.example.com/api/v2/auth/google \ --header 'Content-Type: application/json' \ --data ' { "id_token": "<string>" } '
Sign in or register with a Google account
id_token
curl -X POST https://neuralbox.top/api/v2/auth/google \ -H "Content-Type: application/json" \ -d '{"id_token": "eyJhbGciOiJSUzI1NiJ9..."}'
{ "access_token": "eyJhbGciOiJIUzI1NiJ9...", "refresh_token": "eyJhbGciOiJIUzI1NiJ9...", "token_type": "bearer", "is_new_user": false, "user": { "id": 12345, "email": "user@gmail.com", "plan": "free", "token_balance": 50 } }