Legacy web service authentication using API key

HI team 

I want to connect with legacy web service using API key instead of generic user id and password 

I generated the API key from web API Authentication in admin console also added service account in user groups however it didn't work 

Please suggest

  Discussion posts and replies are publicly visible