Is there a way to return a task body as html in API response?


I am currently querying the phab api to get the body of a task ( which I want to send in an email. The response comes in as the plaintext remarkup so I have to manipulate it quite a bit to get the email to look nicely formatted. Is there an api parameter I can set to get the response as HTML so I can paste it directly into the email without any manipulation?


Not directly, but you can use conduit method remarkup.process to get HTML from the body.

Also, you should use instead of, which is deprecated.