Document making authenticated API calls