Use TextFormatter in the REST API