Custom template for PM via API?

No. The API is how the front end does all of its work. There is no distinction between the API and the ux.

You would need a plugin that either created a new endpoint or took a parameter to change the subject.