# dont forget the content type, else it will throw an error curl -X POST -H "Content-Type: application/json" -d '{"username":"abc","password":"abc"}' https://api.example.com/v2/login