How to give the Authentication to REST API

I want to add the lead from another website
Create : POST api/resource/:doctype I am using this REST API, How can give the Authentication to API, and How do generate an access token