How can i pass appkey as header through mulesoft using spring?

Getting access Denied when giving client id and client secret

How this related to apigee ?

accessing apigee service throwing appkey verification failed error

Did you see the documentation of service, how it is expecting the client id or client secret? if it is expecting apikey , then you need to pass client id / consumer key which you can get after registering your app .