HI swathy,
If you are sending acess token in the header then you need to add header value as follows
Authorization:Bearer (accesstoken)
if you are sending username and password in header then you need to add Basic in the header as follows
Authorizarion:Basic Base64encode(username:password)
Please correct me if i am wrong
Regards,
Irfan