$ npm install jotform
#
import Jotform from "jotform";
const client = new Jotform('YOUR_API_KEY');
const response = await client.form.createForm();
const formId = response.content.id;
const questions = await client.form.addQuestions(formId, [
{
type: 'control_email',
name: 'emailfield',
text: 'My email field',
order: '1'
}, {
type: 'control_email',
name: 'emailfield2',
text: 'My email field 2',
order: '2'
}
]);
#