cURL
curl --request POST \ --url https://api.example.com/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "password": "password123" } '
{ "access_token": "<string>", "refresh_token": "<string>", "user": { "id": "uuid", "email": "[email protected]", "roles": [ "user" ], "firstName": "John", "lastName": "Doe", "image": "https://example.com/image.jpg" } }
"[email protected]"
"password123"
Login successful
{ "id": "uuid", "email": "[email protected]", "roles": ["user"], "firstName": "John", "lastName": "Doe", "image": "https://example.com/image.jpg"}