API for HTMX