API endpoint for caching