Learning API authentication