Retrieves a single image record with a short-lived, pre-signed download URL.
Parameters
image_id
| string | Path parameter. DICOM SOP Instance UID. Use the image_id value from GET /api/v1/mwp/images (search) or GET /api/v1/mwp/images/patient/{patient_id} (bulk). It contains 1 to 100 letters, digits, full stops, underscores or hyphens, and starts and ends with a letter or digit. Any other value returns 400, except a value longer than 100 characters, which returns 422. |
jpeg
| boolean | Query parameter. Pass true to receive a JPEG conversion (quality ~98). If conversion fails, the response falls back to DICOM, and the format field reports which format was returned. |
Use cases
Download specific images for diagnostic viewing.
Display images in patient portals or clinical applications.
Archive images to external storage systems.
Response fields
image_id
| string | DICOM SOP Instance UID. |
patient_id
| string | Patient identifier, returned as a string. |
patient_card
| string | Patient card number. |
study_id
| integer | Study identifier. |
study_date
| date | Date of the imaging study. |
series_id
| integer | Series identifier. |
format
| string | Format actually returned: dicom or jpeg. |
url
| string | Pre-signed download URL. |
expires_in
| integer | URL validity in seconds (300 for a single image). |
metadata
| object | Response envelope metadata, including updated_at_available. See API response formats for the full field list. |
pagination
| object | An empty object, because a single image has no pages. |
Important notes
URL expiry: the pre-signed URL expires after 5 minutes (300 seconds).
Format parameter: pass jpeg=true to receive a JPEG conversion. When omitted, the image is returned in DICOM format. The response format field reports the format actually returned.
JPEG quality: JPEG conversion uses quality level 98.
Retries and call time: when the imaging service is busy and returns 429 or 503, the API waits for the time given (up to 5 seconds each time) and tries again, up to 2 times within about 50 seconds, before returning the error. A single image call can therefore take longer than usual when the service is busy.
Imaging limits: requests are subject to per-organisation limits. If a limit is still reached after the retries you receive 429 (MWP-4291) or 503 (MWP-5031, or SVC-503 when no specific code is given) with a Retry-After header and retry_after_seconds. Wait at least that long before retrying, and reduce the number of imaging requests you send in parallel.
Error responses
400 | (none) | The image id is not valid. The message is Invalid image identifier. |
400 | (none) | Unexpected parameters: a query parameter that is not listed on this page was sent. The message is Unexpected parameters followed by the parameter names. |
404 | MWP-4041
| No image exists with that id for your organisation. |
422 | (none) | A value is invalid: image_id is longer than 100 characters, or jpeg is not true or false. |
429 | MWP-4291
| The imaging limit for your organisation has been reached. The API has already retried twice; wait for the number of seconds in Retry-After before retrying. |
503 | MWP-5031
| The imaging service is busy or unavailable (SVC-503 when no specific code is given). The API has already retried twice; wait for the number of seconds in Retry-After before retrying. |
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/mwp/images/1.2.36.18057620390.9700831451752.3?jpeg=true" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"