# Retrieve all sites with optional filters Endpoint: GET /site Version: 1.0 Security: bearer ## Query parameters: - `name` (string) The name of the site Example: "Downtown Clinic" - `clientAccountId` (array) The clientAccountId of the site Example: [1] - `organizationId` (array) The organizationId of the site Example: [1] - `brandId` (array) The brandId of the site Example: [1] - `page` (number) Page number (0-based) - `pageSize` (number) Number of items per page Example: 10 - `sortBy[0][field]` (string) First sort field Enum: "id", "name", "createdAt", "updatedAt", "clientAccountId", "organizationId", "brandId", "practiceManagementSystemId" - `sortBy[0][dir]` (string) First sort direction Enum: "asc", "desc" - `sortBy[1][field]` (string) Second sort field Enum: "id", "name", "createdAt", "updatedAt", "clientAccountId", "organizationId", "brandId", "practiceManagementSystemId" - `sortBy[1][dir]` (string) Second sort direction Enum: "asc", "desc" ## Response 200 fields (application/json): - `data` (array, required) Array of brands - `data.id` (number, required) The ID of the site Example: 123 - `data.name` (string, required) The name of the site Example: "Downtown Clinic" - `data.address` (object, required) The address information of the site - `data.address.lat` (number, required) The latitude coordinate of the address Example: 37.7749 - `data.address.lng` (number, required) The longitude coordinate of the address Example: -122.4194 - `data.address.url` (string, required) The URL associated with the address Example: "https://maps.google.com/?q=123+Main+St" - `data.address.formatted_address` (string, required) The formatted address string Example: "123 Main St, San Francisco, CA 94103" - `data.googlePlaceId` (string, required) The Google Place ID for the site Example: "ChIJN1t_tDeuEmsRUsoyG83frY4" - `data.phoneNumber` (string,null) The phone number of the site Example: "+1 (555) 123-4567" - `data.website` (string,null) The website of the site Example: "https://downtownclinic.com" - `data.anyDeskIp` (string,null) The AnyDesk IP address for remote access Example: "192.168.1.100" - `data.createdByUserId` (number, required) The ID of the user who created the site Example: 202 - `data.createdAt` (string, required) The date and time the site was created Example: "2021-05-01T12:00:00Z" - `data.updatedAt` (string, required) The date and time the site was last updated Example: "2021-05-01T12:00:00Z" - `data.deletedAt` (string,null) The date and time the site was deleted, if applicable Example: "null" - `data.clientAccountId` (number, required) The ID of the client account the site is associated with Example: 456 - `data.organizationId` (number, required) The ID of the organization the site belongs to Example: 789 - `data.brandId` (number, required) The ID of the brand the site is associated with Example: 101 - `data.practiceManagementSystemId` (number,null) The ID of the practice management system used by the site Example: 202 - `data.integrationType` (string, required) Integration type for the site Enum: "PMS", "CUSTOM" - `data.licenseKey` (string,null) The license key for the site Example: "XXX-YYY-ZZZ-AAA-BBB" - `data.fhirStoreId` (string,null) The ID of the FHIR store associated with the site Example: "fhir-store-123" - `data.firstSyncDate` (string,null) The date of the first sync with the site Example: "2021-05-15T12:00:00Z" - `data.latestSyncDate` (string,null) The date of the most recent sync with the site Example: "2021-06-01T12:00:00Z" - `data.synchronizationIsActive` (boolean,null) Indicates whether synchronization is active Example: true - `data.siteManagerUserId` (number, required) The ID of the user who manages the site Example: 303 - `data.cloudUserName` (string,null) The cloud username for the site Example: "downtown.clinic" - `data.cloudUserPassword` (string,null) The cloud user password for the site Example: "encrypted-password" - `data.cloudOrganizationName` (string,null) The name of the cloud organization for the site Example: "HealthCorp Cloud" - `data.cloudLoginUrl` (string,null) The URL for cloud login Example: "https://cloud.healthcorp.com/login" - `data.clientAccount` (object, required) The client account associated with the site - `data.clientAccount.id` (number, required) The ID of the client account Example: 456 - `data.clientAccount.title` (string, required) The title of the client account Example: "HealthCorp Client" - `data.clientAccount.phoneNumber` (string,null) The phone number of the client account Example: "+1 (555) 123-4567" - `data.clientAccount.website` (string,null) The website of the client account Example: "https://healthcorp.com" - `data.clientAccount.isEnabled` (boolean, required) Indicates whether the client account is enabled Example: true - `data.clientAccount.createdAt` (string, required) The date and time the client account was created Example: "2021-05-01T12:00:00Z" - `data.clientAccount.updatedAt` (string, required) The date and time the client account was last updated Example: "2021-05-01T12:00:00Z" - `data.organization` (object, required) The organization the site belongs to - `data.organization.id` (number, required) The ID of the organization the site belongs to Example: 123 - `data.organization.title` (string, required) The title of the organization Example: "HealthCorp" - `data.organization.website` (string,null) The website of the organization Example: "https://healthcorp.com" - `data.organization.isEnabled` (boolean, required) Indicates whether the organization is enabled Example: true - `data.organization.clientAccountId` (number,null) The ID of the client account the organization is associated with Example: 456 - `data.organization.createdAt` (string, required) The date and time the organization was created Example: "2021-05-01T12:00:00Z" - `data.organization.updatedAt` (string, required) The date and time the organization was last updated Example: "2021-05-01T12:00:00Z" - `data.brand` (object, required) The brand the site is associated with - `data.brand.id` (number, required) The ID of the brand the site is associated with Example: 789 - `data.brand.title` (string, required) The title of the brand Example: "HealthCorp Brand" - `data.brand.isEnabled` (boolean, required) Indicates whether the brand is enabled Example: true - `data.brand.organizationId` (number,null) The ID of the organization the brand is associated with Example: 123 - `data.brand.clientAccountId` (number,null) The ID of the client account the brand is associated with Example: 456 - `data.brand.createdAt` (string, required) The date and time the brand was created Example: "2021-05-01T12:00:00Z" - `data.brand.updatedAt` (string, required) The date and time the brand was last updated Example: "2021-05-01T12:00:00Z" - `data.practiceManagementSystem` (object, required) The practice management system used by the site - `data.practiceManagementSystem.id` (number, required) The ID of the practice management system Example: 101 - `data.practiceManagementSystem.title` (string, required) The title of the practice management system Example: "MedicalSoft Pro" - `data.practiceManagementSystem.isCloudBased` (boolean, required) Indicates whether the system is cloud-based Example: true - `data.practiceManagementSystem.isEnabled` (boolean, required) Indicates whether the system is enabled Example: true - `data.practiceManagementSystem.createdAt` (string, required) The date and time the system was created Example: "2021-05-01T12:00:00Z" - `data.practiceManagementSystem.updatedAt` (string, required) The date and time the system was last updated Example: "2021-05-01T12:00:00Z" - `data.createdByUser` (object, required) The user who created the site - `data.createdByUser.id` (number, required) The ID of the user who created the site Example: 202 - `data.createdByUser.email` (string, required) The email of the user Example: "john.doe@healthcorp.com" - `data.createdByUser.firstName` (string, required) The first name of the user Example: "John" - `data.createdByUser.lastName` (string, required) The last name of the user Example: "Doe" - `data.createdByUser.role` (string, required) The role of the user Example: "ADMIN" - `data.createdByUser.isEnabled` (boolean, required) Indicates whether the user is enabled Example: true - `data.createdByUser.createdAt` (string, required) The date and time the user was created Example: "2021-05-01T12:00:00Z" - `data.createdByUser.updatedAt` (string, required) The date and time the user was last updated Example: "2021-05-01T12:00:00Z" - `data.createdByUser.lastLoginDate` (string,null) The date and time the user last logged in Example: "2021-06-01T12:00:00Z" - `data.siteUsers` (array, required) The users associated with the site - `data.siteUsers.id` (number, required) The ID of the user-site relationship Example: 404 - `data.siteUsers.userId` (number, required) The ID of the user Example: 505 - `data.siteUsers.siteId` (number, required) The ID of the site Example: 606 - `data.siteUsers.createdAt` (string, required) The date and time the relationship was created Example: "2021-05-01T12:00:00Z" - `data.siteUsers.updatedAt` (string, required) The date and time the relationship was last updated Example: "2021-05-01T12:00:00Z" - `data.siteManagerUser` (object, required) The user who manages the site - `data.siteManagerUser.id` (number, required) The ID of the user who manages the site Example: 303 - `data.siteManagerUser.email` (string, required) The email of the site manager Example: "manager@healthcorp.com" - `data.siteManagerUser.firstName` (string, required) The first name of the site manager Example: "Jane" - `data.siteManagerUser.lastName` (string, required) The last name of the site manager Example: "Smith" - `data.siteManagerUser.role` (string, required) The role of the site manager Example: "SITE_MANAGER_USER" - `data.siteManagerUser.isEnabled` (boolean, required) Indicates whether the site manager is enabled Example: true - `data.siteManagerUser.createdAt` (string, required) The date and time the site manager was created Example: "2021-05-01T12:00:00Z" - `data.siteManagerUser.updatedAt` (string, required) The date and time the site manager was last updated Example: "2021-05-01T12:00:00Z" - `data.siteManagerUser.lastLoginDate` (string,null) The date and time the site manager last logged in Example: "2021-06-01T12:00:00Z" - `data.integrationTosAcceptedAt` (string, required) The date and time the site accepted the integration TOS Example: "2021-08-01T00:00:00.000Z" - `meta` (object, required) Pagination metadata - `meta.page` (number, required) Current page number (0-based) - `meta.pageSize` (number, required) Number of items per page Example: 10 - `meta.total` (number, required) Total number of items Example: 150 - `meta.totalPages` (number, required) Total number of pages Example: 15 - `meta.hasNext` (boolean, required) Whether there is a next page Example: true - `meta.hasPrevious` (boolean, required) Whether there is a previous page ## Response 401 fields (application/json): - `message` (string, required) Error message indicating unauthorized access. Example: "Unauthorized" - `statusCode` (number, required) HTTP status code for unauthorized access. Example: 401