Getting Started
1
Obtain credentials
To gain API access, an integrator must contact Centaur Software to set up an integration account. This request should state the intended use case, the scope of required data, and the organisation(s) for which access is being sought.
Once the account is created, the integrator will be provided with an API key and given access to Dental4Web/Dental4Windows organisations. Every request must carry an org-id header identifying the organisation.
2
Add authentication
All HTTP requests should include the following headers. x-api-key and org-id are required; Accept is recommended but not currently enforced:
- x-api-key
This is the integrator’s API key.
- org-id
The organisation ID identifies a specific organisation within Dental4Web/Dental4Windows. Note that an integrator's API key can be used to access multiple organisations, so both the organisation ID and the API key are required for all requests.
The API token grants access only to the data of the mapped org-id. Any attempt to retrieve information for an organisation other than the current one will be rejected by the API.
- Accept: application/json
Recommended, not required. All responses are JSON regardless of this header; sending Accept: application/json is recommended for forward compatibility, but it is not currently enforced: requests without it, or with a different value, still succeed.
3
Try it out
Once you have all the required details, you can test your connection using the curl example below.
curl -X GET "https://api-uat.dental4web.com.au/api/v1/practitioners" \
-H "org-id: YOUR_ORG_ID" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json" Troubleshooting your first call
HTTP 403 | Missing or invalid | Check the header is present and the key matches Sandbox |
HTTP 401 | API key not mapped to an integration account | Contact Centaur Software to have your key mapped |
HTTP 400 "Missing Organisation ID" | Missing | Add |
HTTP 400 | API key valid but not authorised for this organisation | Contact Centaur Software to map your key to the org |
HTTP 429 | Rate limit exceeded | Wait the number of seconds in the |
Timeout | Slow connection or a temporary service slowdown | Set your client timeout to at least 120 seconds for cloud-hosted practices. For on-premise practices use 60 seconds for requests that take the fast route and at least 300 seconds for all others (see Fast and Standard Routes for On-Premise Practices). Do not resend a write after a timeout without checking whether it was saved, or use an |
On this page
- Getting Started