# Get form template by ID Retrieve detailed information about a form template including all form elements/fields. Use this to understand the structure of a form for integration purposes. Endpoint: GET /partner/v2/account/{accountId}/location/{locationId}/form/template/{formTemplateId} Version: 2.0 Security: PartnerOAuth ## Path parameters: - `formTemplateId` (integer, required) Form template ID Example: 12345 - `accountId` (integer, required) Account identifier - `locationId` (integer, required) Location identifier ## Query parameters: - `includeElements` (boolean) Include form elements/fields in response Example: true ## Response 200 fields (application/json): - `appointmentTypeIds` (array) Associated appointment type IDs - `createdAt` (string) Creation timestamp Example: "2024-06-15T10:00:00Z" - `description` (string) Template description Example: "Collects basic patient information and medical history" - `elementCount` (integer) Number of form elements Example: 15 - `elements` (array) Form elements/fields (if requested) - `elements.attributeName` (string) Mapped attribute name for data mapping Example: "patient_first_name" - `elements.colClass` (integer) Column width class (1-12) Example: 6 - `elements.helpText` (string) Help text displayed below the field - `elements.id` (integer) Unique element identifier Example: 11111 - `elements.isPatientViewable` (boolean) Whether this field is visible to patients Example: true - `elements.isRequired` (boolean) Whether this field is required Example: true - `elements.label` (string) Field label displayed to users Example: "First Name" - `elements.options` (array) Available options for select/radio/checkbox fields - `elements.options.id` (integer) Option ID Example: 22222 - `elements.options.sortOrder` (integer) Display order Example: 1 - `elements.options.text` (string) Option display text Example: "Male" - `elements.placeholder` (string) Placeholder text Example: "Enter your first name" - `elements.sortOrder` (integer) Display order within the form Example: 1 - `elements.type` (string) Element type Enum: "TEXT", "TEXTAREA", "SELECT", "MULTI_SELECT", "CHECKBOX", "RADIO", "DATE", "TIME", "DATETIME", "SIGNATURE", "FILE", "IMAGE", "HEADER", "PARAGRAPH" - `id` (integer) Unique form template identifier Example: 12345 - `isActive` (boolean) Whether this template is active Example: true - `isDirectlyLinkable` (boolean) Whether this template can be directly linked (public form) Example: true - `isFillablePdf` (boolean) Whether this template is a fillable PDF - `isStaffOnly` (boolean) Whether this template is staff-only (not visible to patients) - `name` (string) Template name Example: "Patient Intake Form" - `publicLink` (string) Public link for directly linkable templates Example: "https://forms.lobbie.com/t/abc123" - `updatedAt` (string) Last update timestamp Example: "2025-01-10T14:30:00Z" ## Response 401 fields ## Response 403 fields ## Response 404 fields