API Modes - Local, Service, and Remote
An API Mode is a way for a third-party application to connect to an Open Dental database. There are three types of modes available: Local, Service, and Remote. Which mode an application should use depends on how the application is developed. In addition, it is encouraged to use these modes in a Cascading way to ensure redundancies and to prevent service disruptions.
Version Added: 22.1
The Local API is an instance of our API that runs on a single workstation. Open Dental automatically launches the Local API on startup after the user has successfully logged in. No other action is required from the user. A specific port (30222) is opened and API requests can be sent locally on that workstation.
Recommended when:
Endpoints:
Open Dental will close this port automatically when the software closes. If more than one instance of Open Dental is opened on the workstation, only the first instance will open a port and listen for API requests. Subsequent concurrent instances will not run the Local API. No firewall setting should need to be changed.
How to Use:
Version Added: 22.2
See API Guide - The API Service.
The API Service is an instance of our API that continuously runs on a machine. A specific port (30223) is opened and API requests can be sent locally or from in-network workstations. Customers will run this service on the server that is also hosting their database. Installation occurs automatically from the OpenDentalAPIService.exe that is included when updating Open Dental. When started, the API Service will connect to the database specified in the OpenDentalWebConfig.xml file created at installation. It will also attempt to create a localhost firewall rule for port 30223. Log files are also created. These files are located in the \\OpenDental\OpenDentalAPIService directory.
Recommended when:
Endpoints:
An Inbound Rule for port 30223 must be created on the server to allow API requests from other workstations.
How to Use:
Manual Installation:
The API Service is automatically installed and started for dental offices that have the API enabled. However, to manually install the service follow the steps below.
For versions 22.2.42 and later:
For versions 22.2.41 and earlier:
The API Service can be uninstalled by clicking the Uninstall button within this same window.
Version Added: 22.3
Users of Open Dental Cloud are able to use the API Service. The virtual machine hosting Open Dental has both the eConnector and the API Service installed for the dental office. The Open Dental Cloud Client passes API requests from the user's workstation to and from the virtual machine. The endpoint is the same as the cloudless API Service. Therefore, a third party software does not even need to distinguish between the customer utilizing Cloud or not.
How to Use:
Version Added: 21.1
For customers that want to access data across many practices without requiring a local network configuration.
Recommended when:
Endpoint:
How to Use:
To ensure redundancies and to prevent service interruptions, we recommend developers utilize a "cascade" strategy of API endpoints for their application
Developers may elect to use either the Local or Service modes in addition to our Remote API. Both the Local and Service modes operate on the customer's network, which greatly decreases execution time. They make a single remote web call automatically to validate credentials. Subsequent API requests in these modes can be made without an internet connection. This web call is made once per instance of the Local API and API Service and is valid for six hours until another web call will need to be made.
Most implementations will prefer to use the API Service but will be programmed in such a way to use the Remote API instead, if the API Service were unavailable at the dental office (their server is offline, etc). Similarly, applications using the Local mode should fall back upon the Service and Remote modes, if necessary.