Returns the data-model version (for example V19) the calling org is currently running.
Use cases
Gate use of newer fields or endpoints (such as patients_lite, introduced in V18) on the org’s actual data-model version rather than assuming every org is current.
Surface data-model context in a support or diagnostics tool.
No query parameters (any that are sent are ignored). Requires the org-id header (see Authentication); the org is resolved from that header, not from the API key alone.
Response fields
org_id
| string | The calling org's identifier. |
data_model_version
| string | The org's current data-model version, e.g. V19. |
Important notes
On-premise data-model lag: on-premise organisations may, from time to time, lag behind the latest data model depending on their local database build. Use this endpoint to check an org’s current data_model_version before relying on newer fields or endpoints, and contact us if an org’s data model needs to be updated.
Timeouts are retryable: a slow admin service returns 504.
Errors: An org-id that is not linked to your API key, including a malformed one, returns 400 with the message Given Organisation <ORG> is not associated with provided token. This endpoint never blocks on the data model version: a practice on an older data model still receives a normal 200 response.
Transient failures return 503, not 502: a transient probe failure is surfaced as 503 ADM-503 with a Retry-After: 30 header. When the practice cannot be asked right now the 503 carries the specific reason instead (RP-5031, RP-5033, RP-5035 or RP-5037) and a retry_after_seconds field. Safe to retry after the indicated delay.
Freshness: the version can be up to 15 minutes old. After a practice upgrade, allow for that before relying on a newer field.
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/admin/data-model-version" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"