Skip to main content

Forms (استمارات) (v1)

Workspace forms allow creating form templates (name, description, dynamic questions) and sending them via a short link. A submission may be tied to a client or created as an open link (no clientId). Each template can optionally set a WhatsApp handoff number (completionHandoffWhatsAppPhone, E.164); after the respondent completes the public form, the UI can open WhatsApp to that number with questions and answers prefilled (wa.me). Customers use the public page without login. Submissions can be listed and analyzed with optional AI.

Endpoints

Additional workspace endpoints: POST /forms/templates, GET/PATCH/DELETE /forms/templates/:templateId, GET /forms/submissions, GET /forms/submissions/:submissionId, POST /forms/submissions/:submissionId/analyze. Create and update template bodies accept optional backgroundImageUrl, backgroundColor, and optional completionHandoffWhatsAppPhone (E.164, e.g. +970591234567) for per-template post-submit WhatsApp handoff.

Public (no auth)

Authentication

Required: Workspace (Bearer) or Staff token. Persona: Workspace Owner and Staff (with existing forms permissions) manage templates and submissions. Customer fills the public form only (no token).