Adding credentials to the REST API