Html rendering in Strapi API

I want to use htmx to get content from the Strapi API. What steps are needed to configure Strapi for server-side html rendering in the API instead of json?