How to get service apis from rancher to scala application

I want to get some service apis(which are jsons) to my Application.I am sending the request from postman for now…sending CATTLE_ACCESS_KEY,CATTLE_SECRET_KEY,X-Api-Csrf in headers. But i’m getting this error var data = {"id":"b94a31d0-6f26-4626-a1a6-b06f87b46880","type":"error","links":{},"actions":{},"status":401,"code":"Unauthorized","message":"Unauthorized","detail":null,"baseType":"error"}; Please suggest