API authentication method added