# Sites ## Retrieve all sites with optional filters - [GET /site](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_findsites.md) ## Create a new site - [POST /site](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_createsite.md) ## Retrieve a site by ID - [GET /site/{siteId}](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_findsite.md) ## Update an existing site - [PUT /site/{siteId}](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_updatesite.md) ## Delete a site - [DELETE /site/{siteId}](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_deletesite.md) ## Retrieve active site analytics (admin only) - [GET /site/billing-analytics-admin](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_getadminbillinganalytics.md): Returns sites grouped by clientAccountId with optional date filters. ## Retrieve active site analytics for client account users (or admin) - [GET /site/billing-analytics-client-account](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_getclientaccountbillinganalytics.md): If the user is a ClientAccount user, returns only the clientAccountIds they have access to. An Admin can also use this endpoint, seeing all data if no clientAccountIds is provided. ## Reset the FHIR store for a site - [POST /site/{siteId}/fhir-reset](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_resetfhirstore.md) ## Accept the integration TOS for a site - [POST /site/integration-tos/accept](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_acceptintegrationtos.md) ## Resend the integration TOS for a site - [POST /site/{siteId}/integration-tos/resend](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_resendintegrationtos.md) ## Retrieve the list of site FHIR mapping state records - [GET /site/{siteId}/fhir-mapping-state](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_getfhirmappingstate.md) ## Retrieve the list of distinct FHIR resource types for the given site ID - [GET /site/{siteId}/fhir-mapping-state/resource-types](https://docs.heydonto.com/apis/heydonto/openapi/sites/sitecontroller_getdistinctfhirresourcetypes.md)