Forms
Get a form's AI build
/v1/forms/{formId}/buildGet the form's latest AI build, or null if it never had one. While a build is planning or building, the draft is locked (see AI builds and fixes). Pictures for its image choice questions are made in the background, even after the build is done. They show up in pictures of GET /v1/forms/{formId}.
Path parameters
formIdstringrequiredThe form's id.
Response
Or null.
buildIdstringrequiredThe build's id.
statusenumrequiredplanningwhile AI decides the questions, thenbuildingwhile it adds them to the draft. It ends asdone,failedorstopped.One of
"planning","building","done","failed","stopped"planone of 2requiredThe form AI planned, with its name and the questions of each step. Null until the plan is ready.
Show 2 optionsHide 2 options
Option 1
namestringrequiredstepsarray of objectrequiredShow 2 fieldsHide 2 fields
titlestringrequiredquestionsarray of stringrequired
null
addedintegerrequiredHow many of the
totalquestions are in the draft so far.-9007199254740991–9007199254740991
skippedintegerrequiredHow many questions couldn't be built.
-9007199254740991–9007199254740991
skippedLabelsarray of stringrequiredThe labels of the questions that couldn't be built.
totalintegerrequiredHow many questions AI planned.
-9007199254740991–9007199254740991
errorstring or nullrequiredWhy the build failed. Null unless it failed.
startedAtnumberrequiredendedAtnumber or nullrequired
Errors answer with a status and the error shape.