Triggering a workflow
Tadabase workflows are the right place for multi-step logic — sending email, calling external APIs, updating multiple records atomically. Vibe triggers them by workflow ID, optionally scoped to a record. The run is queued; poll for status.
// Run a workflow on one record
const res = await tada.workflows.trigger(workflowId, recordId);
const queueId = res.data?.queue_id;
// Poll until it finishes
const status = await tada.workflows.runStatus(workflowId, queueId);
// Or use the all-in-one helper with live progress:
tada.workflows.run(workflowId, { onDone: (r) => console.log(r) }, recordId); Generating a PDF
Render a builder-defined PDF Page (designed) or PDF Form (fillable). Pass the record id when the design references record data. Choose "base64" to receive the raw bytes inline, or "url" (default) for a hosted CDN link.
const res = await tada.pdfs.generatePage(pdfPageId, invoiceId, 'base64');
// res.data.pdf_base64 — raw bytes (file_format: 'base64')
// res.data.pdf_url — hosted link (file_format: 'url', the default)