admin

Ai Edit Template Endpoint

Propose an AI edit of the template using the caller's own Anthropic key (BYO — calls bill their account). Returns the proposal; nothing is saved — the human reviews the diff in the editor and saves explicitly.

post/api/v1/admin/templates/{template_id}/ai-edit

Request

  • Base URL: https://api.peil.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.peil.app/api/v1/admin/templates/{template_id}/ai-edit
  • Auth: OAuth 2 (password, token URL /api/v1/auth/jwt/login)

Path parameters

template_idinteger required

Request body

instructionstring required

Response

Successful Response

unknown required

Changes

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