Templates

Draft a new clause from an instruction

Returns a heading and a clause under it, as markdown. Every merge field in the draft is checked against the fields the product can fill, and the draft is refused if it invented one. Nothing is written to the template.

post/api/v1/templates/compose

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/templates/compose
  • Auth: API key in cookie better-auth.session_token

Request body

instructionstring required

Response

The draft.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.