Add authentication to endpoint calls