Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve Paubox Form schemas and submit form responses using the Node.js SDK.
const pbMail = require('paubox-node'); const formsService = pbMail.formService();
const form = await formsService.getForm('your-form-uuid'); console.log('Title:', form.title); console.log('HTML:', form.form_html);
title
form_json
form_html
form_css
active
submission_count
await formsService.submitForm('your-form-uuid', { first_name: 'Jane', last_name: 'Smith', email: 'jane@example.com' }); // Resolves to null on success (HTTP 201)
const fs = require('fs'); const attachments = [ { name: 'consent.pdf', content: fs.readFileSync('consent.pdf').toString('base64') } ]; await formsService.submitForm( 'your-form-uuid', { first_name: 'Jane' }, attachments );
name
content
try { const form = await formsService.getForm('your-form-uuid'); await formsService.submitForm('your-form-uuid', formData); } catch (err) { console.error('Forms error:', err.message); }