Added optional headers object for API endpoints
Version 0.3.0
Headers added to apis.