chatform
API referenceV1

Ask a model to change an existing form: add, edit or remove questions and rewire the flow

Returns the proposed document **without saving it** — send it to `PUT /v1/forms/{id}/doc` to keep it. An edit may add no questions at all: most requests about a working form change the routing rather than the wording. Pass `history` (oldest first) when this is a follow-up, or the model cannot resolve 'also', 'it' or 'instead'.

POST
/v1/ai/edit-form

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/ai/edit-form" \  -H "Content-Type: application/json" \  -d '{    "formId": "string",    "prompt": "string"  }'
Empty