Asked by Benjie on April 30, 2024
Given two models — Leads (primary user_id) and Appointments (primary appt_id) — how can I query leads by user_id and return appointment details and vice‑versa?
Answered by Twidget
Add a user_id field to the Appointment table, then create an endpoint that accepts user_id as a path or query parameter and uses it to query the Appointment table to return related appointment details.
Multi‑tenancy integrations (High Level CRM)
Yes. Twidget is well suited for building integrations in a multi‑tenant setup. Its flexible architecture lets you create and manage APIs and integrations for each tenant and scale as needed.
Generating quotes and notifying team via email/WhatsApp
Yes. You can generate quotes and send emails from Twidget. For WhatsApp messaging you will likely need to integrate an external service that offers WhatsApp APIs.
Auto-updating event calendar from Google Sheets/Forms
Yes. Use Twidget’s connector commands to integrate Google Sheets and Google Forms so event submissions update your calendar automatically.
No‑code API creation for non‑coders
Yes — Twidget is suitable for non‑coders. Basic familiarity with API concepts (API keys, headers, parameters) is helpful, but you can create APIs without writing code.
Combining results from multiple external APIs into a single endpoint response
Yes. You can call multiple external APIs from a single Twidget endpoint, transform or combine their responses, and return the combined result from your endpoint.